2.1.0-beta.1 (2026-05-12)
Features Added
- Added new
ToolboxesClientandToolboxesAsyncClientsub-clients (preview, opt-in viaFoundryFeaturesOptInKeys.TOOLBOXES_V1_PREVIEW) for managing toolboxes and toolbox versions, with operations includingcreateToolboxVersion,getToolbox,getToolboxVersion,listToolboxes,listToolboxVersions,updateToolbox,deleteToolbox, anddeleteToolboxVersion. NewbuildToolboxesClient()andbuildToolboxesAsyncClient()methods onAgentsClientBuilder. - Added new
AgentSessionFilesClientandAgentSessionFilesAsyncClientsub-clients for working with files in an agent session, withuploadSessionFile,downloadSessionFile,getSessionFiles, anddeleteSessionFile. NewbuildAgentSessionFilesClient()andbuildAgentSessionFilesAsyncClient()methods onAgentsClientBuilder. - Added
buildAgentScopedOpenAIClient(String agentName)andbuildAgentScopedOpenAIAsyncClient(String agentName)toAgentsClientBuilderfor constructing OpenAI clients targeting a specific agent's endpoint (base URL{endpoint}/agents/{agentName}/endpoint/protocols/openai). The defaultbuildOpenAIClient()/buildOpenAIAsyncClient()continue to target{endpoint}/openai/v1. - Added agent-session operations to
AgentsClientandAgentsAsyncClient:createSession,getSession,deleteSession,listSessions, andgetSessionLogStreamWithResponse. New related models:AgentSessionResource,AgentSessionStatus,SessionDirectoryEntry,SessionDirectoryListResponse,SessionFileWriteResponse,SessionLogEvent,SessionLogEventType,IsolationKeySource(withKind),EntraIsolationKeySource, andHeaderIsolationKeySource. - Added
updateAgentDetails(String, UpdateAgentDetailsPatchRequest, ...)andupdateAgentDetailsWithResponseonAgentsClient/AgentsAsyncClientfor patching agent details, plus newUpdateAgentDetailsPatchRequestmodel. - Added new agent-endpoint and identity model types for hosted agents:
AgentEndpoint,AgentEndpointProtocol,AgentEndpointAuthorizationScheme(withType),EntraAuthorizationScheme,BotServiceAuthorizationScheme,BotServiceRbacAuthorizationScheme,AgentIdentity,AgentBlueprintReference(withType),ManagedAgentIdentityBlueprintReference,AgentCard, andAgentCardSkill.AgentDetailsnow exposesgetAgentEndpoint,getInstanceIdentity,getBlueprint,getBlueprintReference, andgetAgentCard.AgentVersionDetailsnow exposesgetInstanceIdentity,getBlueprint,getBlueprintReference, andgetAgentGuid. - Added agent-versioning model types:
VersionIndicator(withType),VersionRefIndicator,VersionSelector(withType),VersionSelectionRule,FixedRatioVersionSelectionRule, andCreateAgentVersionInput. HostedAgentDefinitionnow supports both container-based and code-based deployments: addedContainerConfigurationandCodeConfigurationmodel types, with newgetContainerConfiguration/setContainerConfiguration,getCodeConfiguration/setCodeConfiguration,getProtocolVersions/setProtocolVersions, andsetContainerProtocolVersionsaccessors. Container vs. code configuration is mutually exclusive (validated server-side).- Added new preview tool
WorkIqPreviewTool(and parametersWorkIQPreviewToolParameters) with discriminator valuework_iq_preview. AddedToolType.WORK_IQ_PREVIEW. - Added optional
nameanddescriptionproperties (with getters and setters) toCodeInterpreterTool,CaptureStructuredOutputsTool,FileSearchTool,ImageGenTool,WebSearchTool, andWorkIqPreviewToolfor user-defined tool labels. - Added new feature-flag values to
FoundryFeaturesOptInKeys:TOOLBOXES_V1_PREVIEW(Toolboxes=V1Preview) andSKILLS_V1_PREVIEW(Skills=V1Preview). - Added new feature-flag values to
AgentDefinitionOptInKeys:CONTAINER_AGENTS_V1_PREVIEW(ContainerAgents=V1Preview) andAGENT_ENDPOINT_V1_PREVIEW(AgentEndpoints=V1Preview). - Added new toolbox samples under
com.azure.ai.agents.toolboxes:CreateToolboxVersion,GetToolbox,GetToolboxVersion,ListToolboxes,ListToolboxVersions,UpdateToolbox,DeleteToolbox, andDeleteToolboxVersion.
Breaking Changes
HostedAgentDefinition's canonical (@Generated) constructor changed fromHostedAgentDefinition(List<ProtocolVersionRecord> containerProtocolVersions, String cpu, String memory)toHostedAgentDefinition(String cpu, String memory);containerProtocolVersionsis now a mutable property set viasetContainerProtocolVersions(...). The previous 3-argument constructor is retained for source compatibility but is no longer the recommended entry point.
Other Changes
- Regenerated client from the updated TypeSpec specification.