Skip to content

Updates to support release of version 2.2.0 of azure-ai-projects package#46894

Open
dargilco wants to merge 20 commits into
mainfrom
feature/azure-ai-projects/2.2.0-new
Open

Updates to support release of version 2.2.0 of azure-ai-projects package#46894
dargilco wants to merge 20 commits into
mainfrom
feature/azure-ai-projects/2.2.0-new

Conversation

@dargilco
Copy link
Copy Markdown
Member

@dargilco dargilco commented May 14, 2026

See CHANGELOG.md

dargilco and others added 2 commits May 14, 2026 10:15
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dargilco dargilco marked this pull request as ready for review May 14, 2026 22:26
Copilot AI review requested due to automatic review settings May 14, 2026 22:26
Copy link
Copy Markdown
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

Note

Copilot was unable to run its full agentic suite in this review.

Updates azure-ai-projects for the upcoming 2.2.0 release, including new preview tools, API surface renames, and telemetry fixes.

Changes:

  • Fix span recording guards in telemetry instrumentors by correctly calling is_recording() and add tests for non-recording spans.
  • Apply breaking API updates/renames across models/operations (e.g., AgentEndpointConfig, PendingUploadResult, SkillDetails, taxonomy arg rename, remove session isolation_key).
  • Update and add samples demonstrating new features (toolbox tool-search) and update hosted agents/evaluations samples to match renamed APIs.

Reviewed changes

Copilot reviewed 31 out of 31 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
sdk/ai/azure-ai-projects/tests/samples/llm_instructions.py Formatting-only change to instruction strings (parenthesized multi-line literals).
sdk/ai/azure-ai-projects/tests/agents/telemetry/test_non_recording_span.py Adds regression tests ensuring instrumentors skip non-recording spans.
sdk/ai/azure-ai-projects/samples/hosted_agents/sample_sessions_crud_async.py Updates session CRUD sample for removal of isolation_key.
sdk/ai/azure-ai-projects/samples/hosted_agents/sample_sessions_crud.py Updates session CRUD sample for removal of isolation_key.
sdk/ai/azure-ai-projects/samples/hosted_agents/sample_session_log_stream_async.py Updates endpoint config type rename (AgentEndpointConfig).
sdk/ai/azure-ai-projects/samples/hosted_agents/sample_session_log_stream.py Updates endpoint config type rename (AgentEndpointConfig).
sdk/ai/azure-ai-projects/samples/hosted_agents/sample_agent_endpoint_async.py Updates endpoint config type rename (AgentEndpointConfig).
sdk/ai/azure-ai-projects/samples/hosted_agents/sample_agent_endpoint.py Updates endpoint config type rename (AgentEndpointConfig).
sdk/ai/azure-ai-projects/samples/hosted_agents/hosted_agents_util.py Updates helper to remove isolation_key usage when creating/deleting sessions.
sdk/ai/azure-ai-projects/samples/evaluations/sample_scheduled_evaluations.py Updates evaluation taxonomy create call to use taxonomy= parameter.
sdk/ai/azure-ai-projects/samples/evaluations/sample_redteam_evaluations.py Updates evaluation taxonomy create call to use taxonomy= parameter.
sdk/ai/azure-ai-projects/samples/agents/sample_toolboxes_with_search_preview_async.py Adds async sample for Toolbox tool-search preview via MCP.
sdk/ai/azure-ai-projects/samples/agents/sample_toolboxes_with_search_preview.py Adds sync sample for Toolbox tool-search preview via MCP.
sdk/ai/azure-ai-projects/cspell.json Adds spelling exceptions and normalizes ordering.
sdk/ai/azure-ai-projects/azure/ai/projects/telemetry/_utils.py Fixes is_recording guard to call is_recording() correctly.
sdk/ai/azure-ai-projects/azure/ai/projects/telemetry/_responses_instrumentor.py Fixes multiple is_recording guards to call is_recording().
sdk/ai/azure-ai-projects/azure/ai/projects/telemetry/_ai_project_instrumentor.py Fixes is_recording guards to call is_recording().
sdk/ai/azure-ai-projects/azure/ai/projects/operations/_patch_sessions.py Updates session file upload return type rename to SessionFileWriteResult.
sdk/ai/azure-ai-projects/azure/ai/projects/operations/_patch_datasets.py Updates pending upload type rename to PendingUploadResult.
sdk/ai/azure-ai-projects/azure/ai/projects/operations/_operations.py Applies API surface renames/removals (sessions isolation key removal, taxonomy arg rename, skill result renames, etc.).
sdk/ai/azure-ai-projects/azure/ai/projects/models/_models.py Introduces/renames models and tools (e.g., FabricIQPreviewTool, ToolboxSearchPreviewTool, AgentEndpointConfig, target config renames).
sdk/ai/azure-ai-projects/azure/ai/projects/models/_enums.py Updates enums (adds MCP protocol/tool types, removes isolation key source enum).
sdk/ai/azure-ai-projects/azure/ai/projects/models/init.py Re-exports updated/renamed models and enums.
sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/_patch_sessions_async.py Async session file upload return type rename to SessionFileWriteResult.
sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/_patch_datasets_async.py Async pending upload type rename to PendingUploadResult.
sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/_operations.py Async operations updated for the same API renames/removals as sync operations.
sdk/ai/azure-ai-projects/assets.json Bumps assets tag reference.
sdk/ai/azure-ai-projects/apiview-properties.json Updates APIView type map for renamed/new models.
sdk/ai/azure-ai-projects/CHANGELOG.md Adds 2.2.0 entry describing new features, breaking changes, and telemetry fix.
sdk/ai/azure-ai-projects/.github/skills/azure-ai-projects-emit-from-typespec/SKILL.md Adds internal skill documentation for emitting SDK from TypeSpec.
sdk/ai/azure-ai-projects/.github/skills/README.md Adds README for using the local Copilot skills workflow.

Comment on lines +5365 to 5368
self, agent_name: str, body: JSON, *, content_type: str = "application/json", **kwargs: Any
) -> _models.AgentSessionResource:
"""Creates a new session for an agent endpoint. The endpoint resolves the backing agent version
from ``version_indicator`` and enforces session ownership using the provided isolation key for
Comment thread sdk/ai/azure-ai-projects/azure/ai/projects/models/_models.py
Comment thread sdk/ai/azure-ai-projects/samples/agents/sample_toolboxes_with_search_preview.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants