04aaf0c1fe
Python: Add support for Foundry Toolboxes ( #5346 )
...
* Add support for the Foundry Toolbox in MAF
Introduces a Foundry Toolbox integration: FoundryChatClient gains a
get_toolbox() helper plus select_toolbox_tools(), normalize_tools in
the core package flattens tool-collection wrappers (ToolboxVersionObject
and generic iterables, while leaving Pydantic BaseModel instances
alone), and the new agent_framework.foundry namespace re-exports the
toolbox helpers. Ships with unit tests, a sample, and a design doc.
azure-ai-projects is pinned to the public >=2.0.0,<3.0 range and the
lockfile resolves from public PyPI. The toolbox test module skips when
Toolbox* types are unavailable so CI stays green until the public 2.1.0
SDK lands. OMC tooling directories (.omc/, .omx/) are gitignored.
* Update to latest azure ai projects package
* Improve sample
* Rename ADR to 0025
* Update ADR
* Apply suggestion from @alliscode
Co-authored-by: Ben Thomas <ben.thomas@microsoft.com >
* Improve samples
* Update test
---------
Co-authored-by: Ben Thomas <ben.thomas@microsoft.com >
2026-04-20 23:56:01 +00:00
Eduard van Valkenburg and GitHub
95fd5ec658
Python: [BREAKING] Python: move Azure AI embeddings to Foundry ( #5056 )
...
* renamed AzureAIINferenceEmbeddings and lazy load azure-cosmos and env var rename
* updated coverage
* fix readme
2026-04-02 11:26:35 +00:00
5e056b672e
Python: [BREAKING] Python: Provider-leading client design & OpenAI package extraction ( #4818 )
...
* Python: Provider-leading client design & OpenAI package extraction
Major refactoring of the Python Agent Framework client architecture:
- Extract OpenAI clients into new `agent-framework-openai` package
- Core package no longer depends on openai, azure-identity, azure-ai-projects
- Rename clients for discoverability: OpenAIResponsesClient → OpenAIChatClient,
OpenAIChatClient → OpenAIChatCompletionClient
- Unify `model_id`/`deployment_name`/`model_deployment_name` → `model` param
- New FoundryChatClient for Azure AI Foundry Responses API
- New FoundryAgent/FoundryAgentClient for connecting to pre-configured Foundry agents
- Remove OpenAIBase/OpenAIConfigMixin from non-deprecated client MRO
- Deprecate AzureOpenAI* clients, AzureAIClient, OpenAIAssistantsClient
- Reorganize samples: azure_openai+azure_ai+azure_ai_agent → azure/
- ADR-0020: Provider-Leading Client Design
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* fix: missing Agent imports in samples, .model_id → .model in foundry_local sample
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* fix: CI failures — mypy errors, coverage targets, sample imports
- azure-ai mypy: add type ignores for TypedDict total=, model arg, forward ref
- Coverage: replace core.azure/openai targets with openai package target
- project_provider: add type annotation for opts dict
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* fix: populate openai .pyi stub, fix broken README links, coverage targets
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* fixes
* updated observabilitty
* reset azure init.pyi
* fix errors
* updated adr number
* fix foundry local
* fixed not renamed docstrings and comments, and added deprecated markers to old classes
* fix tests and pyprojects
* fix test vars
* updated function tests
* update durable
* updated test setup for functions
* Fix Foundry auth in workflow samples
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Stabilize Python integration workflows
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Update hosting samples for Foundry
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Trigger full CI rerun
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Trigger CI rerun again
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* trigger rerun
* trigger rerun
* fix for litellm
* undo durabletask changes
* Move Foundry APIs into foundry namespace
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Fix Foundry pyproject formatting
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Split provider samples by Foundry surface
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Restore hosting sample requirements
Also fix the Foundry Local sample link after the provider sample move.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* updated tests
* udpated foundry integration tests
* removed dist from azurefunctions tests
* Use separate Foundry clients for concurrent agents
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* fix client setup in azfunc and durable
* disabled two tests
* updated setup for some function and durable tests
* improved azure openai setup with new clients
* ignore deprecated
* fixes
* skip 11
* remove openai assistants int tests
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-03-25 09:56:29 +00:00
Eduard van Valkenburg and GitHub
9355329dfd
Python: [BREAKING] updated structure and samples ( #875 )
...
* updated structure and samples
* updated names and removed cross tests
* updated projects etc
* updated tests
* updated test
* test fixes
* removed devui for now
* updated all-tests task
* removed old style configs
* remove coverage from tests
* updated to unit tests with all-tests
* updated foundry everywhere
* fix azure ai tests
* fix merge tests
* fix mypy
2025-09-25 07:02:53 +00:00
Eduard van Valkenburg and GitHub
517955ce66
updated builds and release pipeline setup (without pypi publish) ( #219 )
...
* updated builds and release pipeline setup (without pypi publish)
* add label prefix action
* updated uv versions
* final uv updates
* moved uv version semver into variable
2025-07-24 07:15:00 +00:00
Dmytro Struk and GitHub
ccd7a44ec7
Python: Implemented FoundryChatClient ( #193 )
...
* Initial version of FoundryChatClient
* Updates to the tool call streaming wrapper
* Small fixes
* Small updates and addressed PR feedback
* Handle automatic client creation
* Small improvement
* Added credential parameter
* Small improvements
* Made FoundryChatClient disposable
* Small fixes
* Added unit tests
* Refactored samples
* Small improvements
* Small fix
* Addressed PR feedback
* Small fixes
* Small updates
* Small fix
* Addressed PR feedback
2025-07-18 20:10:14 +00:00