github Azure/azure-sdk-for-python azure-ai-agents_1.2.0b4

pre-release6 hours ago

1.2.0b4 (2025-09-12)

Features Added

  • Added Computer Use Preview tool for use with the computer-use-preview model
  • ToolSet now supports adding multiple McpTool instances and OpenApiTool instances.
  • Added static functions get_tool_resources and get_tool_definitions in azure.ai.agents.models to simplify extracting tool resources and definitions from collections of tools, making it easier to configure agents with multiple tool instances.

Bugs Fixed

  • Fix issue with tracing an Agent message, when the message has "in progress" status (related to GitHub Issue 42645).
  • Fix issue with tracing RunStepOpenAPIToolCall (GitHub issues 42645 and 42864).
  • Fix issue when .threads.create(messages=[ThreadMessageOptions(...]) is called on the AgentsClient, when tracing is enabled (GitHub issue 42805)
  • Fix an issue in the code where, when tracing is enabled and the function AgentsClient.runs.create_and_process is used, the span "start_thread_run" appears twice in trace, once as a parent and once as a child span. The parent span name has been changed to "process_thread_run". Note that the semantic conventions used in the traces (including spans and attributes) are still subject to change.

Sample updates

  • Added sample demonstrating multiple McpTool instance usage.
  • Added sample_agents_mcp_stream_eventhandler.py demonstrating how to use MCP tools with streaming and event handlers for real-time processing.
  • Added sample_agents_mcp_stream_iteration.py showing MCP tool usage with streaming iteration for step-by-step response handling.
  • Added sample_agents_multiple_mcp.py illustrating how to configure and use multiple MCP tool.

Don't miss a new azure-sdk-for-python release

NewReleases is sending notifications on new releases.