2.2.0 (2026-05-29)
Features Added
- Support integration of external Agents (in preview). See new
ExternalAgentDefinitionclass. - New Agent tool in preview
FabricIQPreviewTool. - New Agent tool in preview
ToolboxSearchPreviewTool. - New methods on
.beta.agentsfor- Code-based hosted agents:
create_version_from_code,download_code. - Optimization jobs:
create_optimization_job,get_optimization_job,list_optimization_jobs,cancel_optimization_job,list_optimization_candidates. - Optimization candidate management:
list_optimization_candidates,get_optimization_candidate,get_optimization_candidate_config,get_optimization_candidate_results,get_candidate_file,promote_candidate. stop_sessionto stop a running agent session.
- Code-based hosted agents:
- New
.beta.datasetssub-client with data generation job operations:create_generation_job,get_generation_job,list_generation_jobs,cancel_generation_job,delete_generation_job. - New
.beta.modelssub-client to handle AI model weights:create,list_versions,list,get,delete,update,pending_create_version,pending_upload,get_credentials. - New
.beta.routinessub-client with routine operations:create_or_update,get,enable,disable,list,delete,list_runs,dispatch. - New methods on
.beta.evaluatorsfor evaluator generation jobs:create_generation_job,get_generation_job,list_generation_jobs,cancel_generation_job,delete_generation_job. - New methods on
.beta.memory_storesto handle individual memory items:create_memory,update_memory,list_memories,get_memory,delete_memory. - New methods on
.beta.skillsfor versioned skill management:create,list_versions,get_version,download_version,delete_version. - New optional string properties
descriptionandnameadded to Agent tools classes which did not have them before. - New optional
tool_configsadded to Agent tool classes. - New read-only property
content_hashonCodeConfiguration, returning the SHA-256 hex digest of the uploaded code zip. - New optional
forceparameter onagents.deleteandagents.delete_versionmethods. - New optional
blueprint_referenceparameters onagents.create_versionmethod.
Breaking Changes
Breaking changes in beta methods:
- Required keyword
isolation_keyremoved from.beta.agents.create_session()and.beta.agents.delete_session()methods. - Argument
bodyin methods.beta.evaluation_taxonomies.create()and.beta.evaluation_taxonomies.update()renamed totaxonomy. - Argument
bodyin method.beta.skills.create_from_files()renamed tocontent. - Method
.beta.agents.get_session_filesrenamed to.beta.agents.list_session_files. - Method
.beta.skills.createsignature changed — now takesnameand keywordinline_content: SkillInlineContent; returnsSkillVersion. - Method
.beta.skills.create_from_packagerenamed to.beta.skills.create_from_files. - Method
.beta.skills.create_from_filessignature changed — now takesnameandcontent: CreateSkillVersionFromFilesBody; returnsSkillVersion. - Method
.beta.skills.updatesignature changed — now only accepts keyworddefault_version; returnsSkillDetails.
Breaking changes in beta classes:
- Required property
isolation_key_sourceremoved from classEntraAuthorizationScheme. - Renamed class
AgentEndpointtoAgentEndpointConfig. - Renamed class
DeleteSkillResponsetoDeleteSkillResult. - Renamed class
SessionDirectoryListResponsetoSessionDirectoryListResult. - Renamed class
SessionFileWriteResponsetoSessionFileWriteResult. - Renamed class
SkillObjecttoSkillDetails. Propertyskill_idrenamed toid. Propertieshas_blobandmetadatawere removed. - Renamed class
TargettoEvaluationTarget. - Renamed class
TargetConfigtoRedTeamTargetConfig.
Bugs Fixed
- Fixed telemetry instrumentor to correctly call is_recording() as a method on spans, ensuring non-recording spans are properly skipped (e.g., when sampling is configured) (GitHub issue 46544).
Sample updates
- Added new Agent tool samples
sample_agent_work_iq.pyandsample_agent_work_iq_async.pydemonstrating use ofWorkIQPreviewTool. - Added new Agent tool samples
sample_agent_fabric_iq.pyandsample_agent_fabric_iq_async.pydemonstrating use ofFabricIQPreviewTool. - Hosted Agents:
- Added Hosted Agent creation samples
sample_create_hosted_agent.pyandsample_create_hosted_agent_async.py, demonstrating hosted agent version creation and retrieval withAIProjectClient. - Added Hosted Agent code-upload samples
sample_create_hosted_agent_from_code.pyandsample_create_hosted_agent_from_code_async.py, demonstrating uploading a code package (zip) as a new hosted agent version. - The Hosted Agent creation sample also demonstrates assigning the hosted agent managed identity the Azure AI User RBAC role on the backing Azure AI account.
- Updated the other Hosted Agent samples to reuse an existing Hosted Agent as a prerequisite, instead of creating a new hosted agent version in each sample.
- Added Hosted Agent creation samples
- Added Toolbox tool-search sample
sample_toolboxes_with_search_preview.pyandsample_toolboxes_with_search_preview_async.py, demonstrating creating a Toolbox version withToolboxSearchPreviewTooland invokingMCPTool. - Added
.beta.modelssamples undersamples/models/:sample_models_basic.py— synchronous end-to-end registration via thecreatehelper (usesazcopy), followed byget,list_versions,list,get_credentials,update, anddelete.sample_models_create_and_poll.py— alternative synchronous registration that hand-rolls the spec's three-step flow (pending_upload→ upload viaazure-storage-blob→pending_create_version+ poll), without taking a dependency onazcopy.sample_models_basic_async.py— asynchronous version of the same three-step flow usingazure.ai.projects.aio.AIProjectClientandazure.storage.blob.aio.ContainerClient.
- Added new evaluation sample
sample_model_evaluation_instant_model.pydemonstrating model evaluation with an instant model. - Refreshed evaluation samples under
samples/evaluations/andsamples/evaluations/agentic_evaluators/(includingsample_agent_evaluation,sample_agent_response_evaluation,sample_eval_catalog_prompt_based_evaluators,sample_evaluations_ai_assisted,sample_evaluations_builtin_with_csv,sample_evaluations_builtin_with_dataset_id,sample_evaluations_builtin_with_inline_data,sample_evaluations_builtin_with_inline_data_oai,sample_scheduled_evaluations,sample_coherence,sample_fluency,sample_intent_resolution,sample_relevance,sample_response_completeness,sample_tool_call_accuracy,sample_tool_call_success,sample_tool_input_accuracy,sample_tool_output_utilization,sample_tool_selection, andsample_generic_agentic_evaluator). - New sample
sample_dataset_generation_job_simpleqna_with_prompt_source.pyshowing an end-to-end flow that generates a QnA dataset via.beta.datasets.create_generation_joband runs an OpenAI evaluation.