cc0cfaaac8
[BREAKING] Python: fix OpenAI Azure routing and provider samples ( #4925 )
...
* Python: fix OpenAI Azure routing and provider samples
Prefer OpenAI when OPENAI_API_KEY is present unless Azure is explicitly requested. Clarify constructor docs, keep deprecated Azure wrappers compatible with stricter settings validation, and refresh the provider samples and tests to use the current client patterns.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* fix bandit
* Python: align OpenAI embedding Azure routing
Extend the shared OpenAI-vs-Azure routing and credential behavior to the embedding client, add Azure embedding regression coverage, and refresh the embedding samples to use the generic client path.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Python: fix embedding client pyright check
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Python: thin OpenAI embedding wrapper
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Python: document embedding overload routing
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Python: fix callable OpenAI key routing
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Python: fix Azure credential routing tests
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Python: address OpenAI review feedback
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Python: narrow Azure routing markers
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Python: refine OpenAI model fallback order
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Python: narrow Azure deployment docs
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Python: remove embedding routing wording
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Python: run embedding Azure integration tests
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* changed variable name
* Python: expand OpenAI package README
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* clarified readme
* Python: fix Azure OpenAI integration setup
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* Python: correct Azure integration env mapping
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* updated code to fix int tests
* test updates
* test fix
* fix test setup
* updates to tests and setup
* remove openai assistants int tests
* improvements in int tests
* fix env var
* fix env vars
* fix azure responses test
* trigger actions
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-03-27 13:33:39 +00:00
Giles Odigwe and GitHub
7a88af0aef
Python: [BREAKING] Replace Hosted*Tool classes with tool methods ( #3634 )
...
* Replace Hosted*Tool classes with client static factory methods
* fixed failing test
* mypy fix
* mypy fix 2
* declarative mypy fix
* addressed comments
* ToolProtocol removal
* fixed test
* agents mypy fix
* fix failing tests
* mypy fix
* addressed comments
* fixed tests
* addressed comments + added factory method overrides for azureai v2 client
* mypy fix
* added kwargs to azureai tool methods
* fixed in test
* _sessions fix
* test fix
2026-02-11 00:04:27 +00:00
0521f5bed8
Python: [BREAKING] Simplify API: ChatAgent -> Agent, ChatMessage -> Message ( #3747 )
...
* [BREAKING] Rename ChatAgent -> Agent, ChatMessage -> Message, ChatClientProtocol -> SupportsChatGetResponse
Simplify the public API by removing redundant 'Chat' prefix from core types:
- ChatAgent -> Agent
- RawChatAgent -> RawAgent
- ChatMessage -> Message
- ChatClientProtocol -> SupportsChatGetResponse
Also renamed internal WorkflowMessage (was Message in _runner_context) to avoid collision.
No backward compatibility aliases - this is a clean breaking change.
* [BREAKING] Rename Agent chat_client parameter to client
* Fix rebase issues: WorkflowMessage references and broken markdown links
* Fix formatting and lint issues from code quality checks
* Fix import ordering in workflow sample files
* fixed rebase
* Fix test failures: use WorkflowMessage and A2AMessage after ChatMessage→Message rename
- Replace Message(data=..., source_id=...) with WorkflowMessage(...) in workflow tests
- Fix isinstance check in A2A agent to use A2AMessage instead of Message
- Fix import in test_workflow_observability.py (Message→WorkflowMessage)
* Fix lint, fmt, and sample errors after ChatMessage→Message rename
- Auto-fix 70+ ruff lint issues across samples (ChatMessage→Message refs)
- Fix HostedVectorStoreContent→Content.from_hosted_vector_store in file search sample
- Fix _normalize_messages→normalize_messages in custom agent sample
- Fix context.terminate→raise MiddlewareTermination in middleware samples
- Fix with_update_hook→with_transform_hook in override middleware sample
- Add TOptions_co import back to custom_chat_client sample
- Add noqa for FastAPI File() default in chatkit sample
- Fix B023 loop variable capture in weather agent sample
* fix: update Agent constructor calls from chat_client to client in declaration-only tool tests
* fix: add register_cleanup to devui lazy-loading proxy and type stub
* fixed tests and updated new pieces
* fix agui typevar
* fix merge errors
* fix merge conflicts
* fiux merge
* Remove unused links
---------
Co-authored-by: Evan Mattson <evan.mattson@microsoft.com >
2026-02-10 23:04:32 +00:00
Dmytro Struk and GitHub
5687e13221
Python: [BREAKING] Renamed create_agent to as_agent ( #3249 )
...
* Renamed create_agent to as_agent
* Override for as_agent
* Added override
2026-01-16 19:21:52 +00:00
Dmytro Struk and GitHub
cfcb71334a
Renamed async_credential to credential ( #2648 )
2025-12-08 01:21:18 +00:00
d701e796cb
Python: [BREAKING] Replaced AIProjectClient with AgentsClient in Foundry ( #1936 )
...
* Replaced AIProjectClient with AgentsClient in Foundry
* Update python/samples/getting_started/observability/azure_ai_agent_observability.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update python/samples/getting_started/observability/azure_ai_chat_client_with_observability.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Small fix
* Removed TODO item
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-05 21:42:36 +00:00
Eric Zhu and GitHub
1543370027
Python: Lab: Updates to GAIA module ( #1763 )
...
* Lab: Updates to GAIA module
* update
* emoj!
* fix lint
* update lab test workflow to only trigger for python changes
* lint
* lint
* Fix broken OpenAI agents JS documentation link
2025-10-30 22:02:31 +00:00
Eric Zhu and GitHub
514d0209a8
Python: consolidate lab packages into a single one; update contribution guidelines ( #940 )
...
* consolidate lab packages into a single one; update contribution guidelines
* update dep list
* add poe tasks; fix tests and lint erros
* add lab tests for CI
* fix test
* update root pyproject.toml
2025-09-27 03:28:05 +00:00
Tao Chen and GitHub
a480ccfd16
[BREAKING] Python: Observability cleanup ( #905 )
...
* Further observability cleanup and update telemetry samples
* Add VS Code Extension config
* Fix unit tests
* Fix unit tests
* Add more comments
* Remove live metric
2025-09-25 18:50:50 +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
2576e7a091
Python: Telemetry and observability follow-up ( #833 )
...
* updated telemetry work
* updated telemetry
* slight improvement
* updated tests
* fixes for telemetry
* fixes for mypy
* added settings setup to runner to avoid error
* streamline usage
* updated tests
* updated tests
* further refinement
* fix dumped item for otel
* removed enable_workflow_otel
* final fixes
* final fixes
* updated samples
* removed exporters
* fix tests
* fixed last import'
* fixed devui
2025-09-23 06:21:56 +00:00
Eric Zhu and GitHub
a1b0a28f9c
Python: Introduce Agent Framework Lab with GAIA Benchmark and Lighting project for RL ( #719 )
...
* prepare eval package
* add gaia benchmark to eval package
* update telemetry
* renaming
* organization
* organize into namespace packages; rename to labs
* update cookie cutter instruction
* update gaia runner
* use temp directory
* Rename "labs" --> "lab"
* update
* update gaia sample
* update status
* Add lighting project
* Add listing for lighting
2025-09-17 05:59:21 +00:00