Skip to content

Conversation

@dmytrostruk
Copy link
Member

@dmytrostruk dmytrostruk commented Nov 4, 2025

Introducing new AzureAIClient based on azure-ai-projects version 2.0.0b1.

@dmytrostruk dmytrostruk self-assigned this Nov 4, 2025
* Renaming

* Small fixes

* Update python/packages/core/agent_framework/openai/_shared.py

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
@markwallace-microsoft markwallace-microsoft added the documentation Improvements or additions to documentation label Nov 5, 2025
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Nov 5, 2025

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
packages/azure-ai/agent_framework_azure_ai
   _client.py1432284%165–168, 172–173, 175, 320–321, 325, 327–328, 330–338, 340
packages/core/agent_framework
   _clients.py1041288%266, 381, 427–430, 474, 662, 665–666, 797, 799
   _tools.py5976389%225, 271, 322, 324, 487, 519–520, 620, 622, 645, 650, 652, 659, 689, 738–740, 778, 801, 803–812, 819–820, 822–823, 827, 855, 897, 906, 908, 911, 917, 1284–1288, 1388, 1457, 1558, 1564, 1605–1606, 1738, 1777–1778, 1806–1808, 1843–1844, 1907–1908, 1915–1916
packages/core/agent_framework/openai
   _assistants_client.py2062886%176, 189, 192, 198–199, 202, 205, 208–209, 220, 241, 243, 245, 247, 249, 252, 255, 258, 262, 273, 358, 395, 431, 460–463, 514
   _chat_client.py2364580%110–111, 115, 133, 143–144, 146, 157, 171, 173–176, 185, 197, 233, 264, 269–283, 290–292, 367, 373, 376, 378, 380, 398–399, 405, 421, 463
   _responses_client.py4167182%144–145, 148–149, 155–156, 159, 166, 201, 231, 259–260, 287, 291, 308, 313, 355, 416, 421, 496, 501, 505–507, 528, 543–544, 548–550, 598, 618–619, 632–633, 649–650, 688, 690, 728, 730, 739–740, 753, 755, 828–834, 851–856, 875, 893, 903, 905, 923–924, 926–928, 939–940, 943, 945
   _shared.py1001288%65, 71–74, 152, 154, 161, 163, 176, 252, 276
TOTAL13657199085% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
1837 109 💤 0 ❌ 0 🔥 36.515s ⏱️

dmytrostruk and others added 12 commits November 5, 2025 09:21
…IClient (#1959)

* Added use_latest_version parameter to AzureAIClient

* Added unit tests

* Update python/samples/getting_started/agents/azure_ai/azure_ai_use_latest_version.py

Co-authored-by: Copilot <[email protected]>

* Update python/packages/azure-ai/agent_framework_azure_ai/_client.py

Co-authored-by: Evan Mattson <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Evan Mattson <[email protected]>
…reAIClient (#1987)

* Small updates

* Added support for structured outputs

* Added code interpreter example

* More examples and fixes

* Added more examples and README

* Small fix

* Addressed PR feedback
* Fixed store parameter handling

* Small fix
…gent (#2077)

* Updated azure-ai-projects package version

* Added an example of hosted MCP with approval required

* Updated code interpreter example

* Added file search example

* Update python/samples/getting_started/agents/azure_ai/azure_ai_with_file_search.py

Co-authored-by: Copilot <[email protected]>

* Update python/samples/getting_started/agents/azure_ai/azure_ai_with_file_search.py

Co-authored-by: Copilot <[email protected]>

* Small fix

---------

Co-authored-by: Copilot <[email protected]>
@markwallace-microsoft markwallace-microsoft added .NET workflows Related to Workflows in agent-framework lab Agent Framework Lab labels Nov 12, 2025
@github-actions github-actions bot changed the title Python: [WIP] Azure AI feature branch .NET: Python: [WIP] Azure AI feature branch Nov 12, 2025
This reverts commit b8206a8.
@dmytrostruk dmytrostruk changed the title .NET: Python: [WIP] Azure AI feature branch Python: [WIP] Azure AI feature branch Nov 12, 2025
@dmytrostruk dmytrostruk removed .NET workflows Related to Workflows in agent-framework labels Nov 12, 2025
@markwallace-microsoft markwallace-microsoft added .NET workflows Related to Workflows in agent-framework lab Agent Framework Lab labels Nov 12, 2025
@github-actions github-actions bot changed the title Python: [WIP] Azure AI feature branch .NET: Python: [WIP] Azure AI feature branch Nov 12, 2025
@dmytrostruk dmytrostruk removed .NET workflows Related to Workflows in agent-framework lab Agent Framework Lab labels Nov 12, 2025
@dmytrostruk dmytrostruk changed the title .NET: Python: [WIP] Azure AI feature branch Python: [WIP] Azure AI feature branch Nov 12, 2025
@dmytrostruk dmytrostruk changed the title Python: [WIP] Azure AI feature branch Python: Azure AI client based on new azure-ai-projects package Nov 12, 2025
@dmytrostruk dmytrostruk marked this pull request as ready for review November 12, 2025 20:03
Copilot AI review requested due to automatic review settings November 12, 2025 20:03
Copilot finished reviewing on behalf of dmytrostruk November 12, 2025 20:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new Azure AI client implementation (AzureAIClient) based on the azure-ai-projects package version 2.0.0b1. The changes update the framework to support the new Azure AI Projects SDK while maintaining the existing AzureAIAgentClient for backward compatibility.

Key changes:

  • New AzureAIClient class with agent versioning and conversation management support
  • Updated OpenAI base classes to support optional async client initialization
  • New and updated sample files demonstrating the new client capabilities
  • Test coverage for the new client implementation

Reviewed Changes

Copilot reviewed 34 out of 41 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
python/packages/azure-ai/agent_framework_azure_ai/_client.py New AzureAIClient implementation with agent creation, versioning, and conversation management
python/packages/azure-ai/agent_framework_azure_ai/__init__.py Export new AzureAIClient class
python/packages/azure-ai/pyproject.toml Updated azure-ai-projects dependency to version 2.0.0b1
python/packages/azure-ai/tests/test_azure_ai_client.py Comprehensive unit tests for AzureAIClient
python/packages/core/agent_framework/openai/_shared.py Updated OpenAIBase to support optional client/model_id and async initialization
python/packages/core/agent_framework/openai/_responses_client.py Refactored to use async client initialization and improved conversation ID handling
python/packages/core/agent_framework/openai/_chat_client.py Updated to use async client initialization
python/packages/core/agent_framework/openai/_assistants_client.py Updated to use async client initialization
python/packages/core/agent_framework/_tools.py Fixed condition to check conversation_id instead of store flag
python/packages/core/agent_framework/_clients.py Removed redundant warning logs
python/packages/core/agent_framework/azure/__init__.py Added AzureAIClient to exports
python/packages/core/agent_framework/azure/__init__.pyi Added AzureAIClient type stub
python/samples/getting_started/agents/azure_ai_agent/* New sample files demonstrating AzureAIAgentClient usage (legacy client)
python/samples/getting_started/agents/azure_ai/* Updated sample files to use new AzureAIClient
python/samples/README.md Updated sample links (with errors to fix)
python/packages/core/tests/openai/test_openai_responses_client.py Updated test to use async prepare_options method

@dmytrostruk dmytrostruk added this pull request to the merge queue Nov 12, 2025
Merged via the queue into main with commit edb367a Nov 12, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants