2.1.0 (2026-06-01)
Features Added
- Added protocol-style methods on
ResponsesClientandResponsesAsyncClientthat accept a raw JSON request body (BinaryData) and acom.openai.core.RequestOptions, and return the openai-java raw HTTP response. These mirror the existingcreateAzureResponseandcreateStreamingAzureResponsetyped surface:createResponseWithResponse(returnsHttpResponseFor<Response>) andcreateResponseStreamWithResponse(returnsHttpResponseFor<StreamResponse<ResponseStreamEvent>>). They delegate to the underlying openai-javaResponseService.withRawResponse()surface and continue to flow through the Azure HTTP pipeline. - Added preview support for external agents via
ExternalAgentDefinition,AgentKind.EXTERNAL, andAgentDefinitionOptInKeys.EXTERNAL_AGENTS_V1_PREVIEW. - Added preview code-based hosted agent operations on
AgentsClientandAgentsAsyncClient, includingcreateAgentVersionFromCode,updateAgentFromCode, anddownloadAgentCode, plus related code package models such asCreateAgentVersionFromCodeContent,CodeFileDetails, andCodeDependencyResolution.CodeConfigurationnow exposes the service-computed code package hash viagetContentSha256(). - Added preview agent optimization job and candidate management operations on
AgentsClientandAgentsAsyncClient, including creating, listing, retrieving, canceling, and deleting optimization jobs, listing and inspecting candidates, downloading candidate files, and promoting candidates. - Added
stopSessionandstopSessionWithResponseto stop hosted-agent sessions. - Added
forcequery parameter support for hosted-agentdeleteAgentWithResponseanddeleteAgentVersionWithResponserequests throughRequestOptions, allowing active sessions to be cascade-deleted. - Added individual memory item operations to
MemoryStoresClientandMemoryStoresAsyncClient:createMemory,updateMemory,listMemories,getMemory, anddeleteMemory, with newListMemoriesOptions,DeleteMemoryResponse, andMemoryItemKind.PROCEDURALsupport. - Added new preview tools
FabricIqPreviewToolandToolboxSearchPreviewTool, plus related tool call/output models for Azure tools. - Added optional per-tool configuration via
ToolConfigandtoolConfigsaccessors on supported tool classes. - Added
getComparisonFilter()andgetCompoundFilter()convenience getters onFileSearchToolfor retrieving OpenAI filter types. - Added new feature-flag values, including
AgentDefinitionOptInKeys.CODE_AGENTS_V1_PREVIEW,AgentDefinitionOptInKeys.EXTERNAL_AGENTS_V1_PREVIEW, andFoundryFeaturesOptInKeys.AGENTS_OPTIMIZATION_V1_PREVIEW. - Added hosted-agent, Fabric IQ, Toolbox Search, and async toolbox samples.
Breaking Changes
AgentEndpointrenamed toAgentEndpointConfig.- Session file listing methods on
AgentSessionFilesClientandAgentSessionFilesAsyncClientwere renamed fromgetSessionFilestolistSessionFilesand now return pagedSessionDirectoryEntryresults.SessionDirectoryListResponsewas removed. - Hosted-agent session methods no longer take a required
isolationKeyargument. Use overloads that accept the optionaluserIsolationKeyvalue, or set thex-ms-user-isolation-keyheader throughRequestOptions. AgentDefinitionOptInKeys.CONTAINER_AGENTS_V1_PREVIEWwas removed. Use the applicable hosted-agent, code-agent, agent-endpoint, workflow-agent, or external-agent opt-in key instead.HostedAgentDefinitionno longer exposes top-levelimageorcontainerProtocolVersionsaccessors. UseContainerConfigurationfor container images andprotocolVersionsfor ingress protocol configuration.CodeConfigurationconstructor now requiresCodeDependencyResolutionin addition to runtime and entry point.WorkIqPreviewToolnow takes the Work IQ project connection ID directly.WorkIQPreviewToolParameterswas removed.
Other Changes
- Enabled
ResponsesTestsandResponsesAsyncTests(previously@Disabled) with create/retrieve/delete/input-items and background-cancel coverage for the typed (ResponseService/ResponseServiceAsync) surface, plus coverage for the new protocol-method surface. Recordings published toAzure/azure-sdk-assetsand referenced fromassets.json. - Re-enabled
SessionLogSyncTestandSessionLogAsyncTest; both tests are recordable via@RecordWithoutRequestBodyand run live against the configured Foundry project. - Regenerated client from the updated TypeSpec specification.