diff --git a/sdk/ai/azure-ai-agents/CHANGELOG.md b/sdk/ai/azure-ai-agents/CHANGELOG.md index d471baf8fa858..767bbc49f7798 100644 --- a/sdk/ai/azure-ai-agents/CHANGELOG.md +++ b/sdk/ai/azure-ai-agents/CHANGELOG.md @@ -4,9 +4,9 @@ ### Features Added -- Added `BetaAgentTelephonyClient` and `BetaAgentTelephonyAsyncClient`, built through +- Added `BetaVoiceAgentsTelephonyClient` and `BetaVoiceAgentsTelephonyAsyncClient`, built through `AgentsClientBuilder.beta()`, for managing voice-agent outbound call jobs and telephony campaigns. -- Added `BetaAgentEndpointConversationsClient` and `BetaAgentEndpointConversationsAsyncClient`, built through +- Added `BetaVoiceAgentsConversationsClient` and `BetaVoiceAgentsConversationsAsyncClient`, built through `AgentsClientBuilder.beta()`, for managing persisted voice-agent conversations and their responses, items, and audio content. @@ -16,6 +16,9 @@ ### Other Changes +- Regenerated from TypeSpec commit `2ba065c423a4c08ddb4e517a9f16deb17cb378c2`. Customization retains `.beta()` factory + placement and automatic voice preview headers after the upstream voice operation namespace relocation. + ## 2.5.0 (2026-09-09) ### Features Added diff --git a/sdk/ai/azure-ai-agents/assets.json b/sdk/ai/azure-ai-agents/assets.json index 75c7a7d49847d..45b0d8e739ace 100644 --- a/sdk/ai/azure-ai-agents/assets.json +++ b/sdk/ai/azure-ai-agents/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "java", "TagPrefix": "java/ai/azure-ai-agents", - "Tag": "java/ai/azure-ai-agents_9343deca93" + "Tag": "java/ai/azure-ai-agents_6ddbbdb9ab" } diff --git a/sdk/ai/azure-ai-agents/customizations/beta-annotations.csv b/sdk/ai/azure-ai-agents/customizations/beta-annotations.csv index db8c94df1984a..7356d405cc404 100644 --- a/sdk/ai/azure-ai-agents/customizations/beta-annotations.csv +++ b/sdk/ai/azure-ai-agents/customizations/beta-annotations.csv @@ -31,6 +31,8 @@ class;com.azure.ai.agents.models.BrowserAutomationPreviewTool;Preview API. previ class;com.azure.ai.agents.models.BrowserAutomationPreviewToolboxTool;Preview API. preview_tool; class;com.azure.ai.agents.models.BrowserAutomationToolCall;Preview API. preview_tool; class;com.azure.ai.agents.models.BrowserAutomationToolCallOutput;Preview API. preview_tool; +class;com.azure.ai.agents.models.BrowserAutomationToolConnectionParameters;Preview API. preview_tool; +class;com.azure.ai.agents.models.BrowserAutomationToolParameters;Preview API. preview_tool; class;com.azure.ai.agents.models.ChatSummaryMemoryItem;Preview API. MemoryStores=V1Preview; field;com.azure.ai.agents.models.CreateAgentVersionInput;Preview API. DigitalWorker=V1Preview, DraftAgents=V1Preview, ExternalAgents=V1Preview, GitHubCopilot=V1Preview, Skills=V1Preview, VoiceAgents=V1Preview, WorkflowAgents=V1Preview;definition field;com.azure.ai.agents.models.CreateAgentVersionInput;Preview API. DigitalWorker=V1Preview;digital_worker_type diff --git a/sdk/ai/azure-ai-agents/customizations/src/main/java/AgentsCustomizations.java b/sdk/ai/azure-ai-agents/customizations/src/main/java/AgentsCustomizations.java index b61d0f98ac682..3a160d188b7df 100644 --- a/sdk/ai/azure-ai-agents/customizations/src/main/java/AgentsCustomizations.java +++ b/sdk/ai/azure-ai-agents/customizations/src/main/java/AgentsCustomizations.java @@ -3,6 +3,7 @@ import com.azure.autorest.customization.LibraryCustomization; import com.github.javaparser.StaticJavaParser; import com.github.javaparser.ast.Modifier; +import com.github.javaparser.ast.Node; import com.github.javaparser.ast.NodeList; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; import com.github.javaparser.ast.body.FieldDeclaration; @@ -408,8 +409,10 @@ private void makeRealtimeMessageDiscriminatorsFinal(LibraryCustomization customi clazz.getMethodsByName("fromJson") .forEach(method -> method.findAll(AssignExpr.class).stream() .filter(assignment -> assignment.getTarget().toString().endsWith(".role")) - .forEach(assignment -> assignment.findAncestor(ExpressionStmt.class) - .ifPresent(ExpressionStmt::remove))); + .forEach(assignment -> assignment.stream(Node.TreeTraversal.PARENTS) + .filter(ExpressionStmt.class::isInstance) + .findFirst() + .ifPresent(Node::remove))); })); } } @@ -432,13 +435,43 @@ private void renameImageGenToolSize(LibraryCustomization customization, Logger l } private void modifyPollingStrategies(LibraryCustomization customization, Logger logger) { - customization.getClass("com.azure.ai.agents.implementation", "OperationLocationPollingStrategy") - .customizeAst(ast -> ast.getClassByName("OperationLocationPollingStrategy") - .ifPresent(clazz -> clazz.addMember(StaticJavaParser.parseMethodDeclaration("@Override public Mono> poll(PollingContext pollingContext, TypeReference pollResponseType) { return super.poll(pollingContext, pollResponseType).map(AgentsServicePollUtils::remapStatus); }")))); + customizePollingStrategy(customization, "OperationLocationPollingStrategy", + "{ return AgentsServicePollUtils.poll(pollingStrategyOptions, serializer, endpoint, pollingContext, pollResponseType); }"); + customizePollingStrategy(customization, "SyncOperationLocationPollingStrategy", + "{ return AgentsServicePollUtils.pollSync(pollingStrategyOptions, serializer, endpoint, pollingContext, pollResponseType); }"); + } + + private static void customizePollingStrategy(LibraryCustomization customization, String className, + String pollMethodBody) { + customization.getClass("com.azure.ai.agents.implementation", className).customizeAst(ast -> { + ClassOrInterfaceDeclaration clazz = ast.getClassByName(className) + .orElseThrow(() -> new IllegalStateException("Generated " + className + " was not found.")); + if (!clazz.getFieldByName("pollingStrategyOptions").isPresent()) { + clazz.addMember(StaticJavaParser.parseBodyDeclaration( + "private final PollingStrategyOptions pollingStrategyOptions;")); + } + + com.github.javaparser.ast.stmt.BlockStmt constructorBody = clazz.getConstructors().stream() + .filter(constructor -> constructor.getParameters().size() == 2) + .findFirst() + .orElseThrow(() -> new IllegalStateException(className + " two-parameter constructor was not found.")) + .getBody(); + String optionsAssignment = "this.pollingStrategyOptions = pollingStrategyOptions;"; + if (constructorBody.getStatements().stream() + .noneMatch(statement -> optionsAssignment.equals(statement.toString()))) { + constructorBody.addStatement(1, StaticJavaParser.parseStatement(optionsAssignment)); + } - customization.getClass("com.azure.ai.agents.implementation", "SyncOperationLocationPollingStrategy") - .customizeAst(ast -> ast.getClassByName("SyncOperationLocationPollingStrategy") - .ifPresent(clazz -> clazz.addMember(StaticJavaParser.parseMethodDeclaration("@Override public PollResponse poll(PollingContext pollingContext, TypeReference pollResponseType) { return AgentsServicePollUtils.remapStatus(super.poll(pollingContext, pollResponseType)); }")))); + List pollMethods = clazz.getMethodsByName("poll"); + if (pollMethods.isEmpty()) { + String returnType = className.startsWith("Sync") ? "PollResponse" : "Mono>"; + clazz.addMember(StaticJavaParser.parseMethodDeclaration("@Override public " + returnType + + " poll(PollingContext pollingContext, TypeReference pollResponseType) " + + pollMethodBody)); + } else { + pollMethods.get(0).setBody(StaticJavaParser.parseBlock(pollMethodBody)); + } + }); } private void annotateBetaClients(LibraryCustomization customization, Logger logger) { diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaAgentsAsyncClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaAgentsAsyncClient.java index 1ee141c74b5f8..ca14422eb1ed7 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaAgentsAsyncClient.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaAgentsAsyncClient.java @@ -57,7 +57,7 @@ public final class BetaAgentsAsyncClient { * * Retrieves an optimization job by its identifier. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -139,7 +139,7 @@ public final class BetaAgentsAsyncClient {
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -192,7 +192,7 @@ public Mono> getOptimizationJobWithResponse(String jobId, R *
Response Headers
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -246,7 +246,7 @@ public PagedFlux listOptimizationJobs(RequestOptions requestOptions)
      *
      * Requests cancellation of a running or queued job and returns an error if the job is already in a terminal state.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -544,7 +544,7 @@ public Mono deleteOptimizationJob(String jobId) {
      * 
      * You can add these to a request with {@link RequestOptions#addHeader}
      * 

Request Body Schema

- * + * *
      * {@code
      * {
@@ -626,9 +626,9 @@ public Mono deleteOptimizationJob(String jobId) {
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -786,15 +786,15 @@ public PollerFlux beginCreateOptimizationJob(BinaryData
      * Generates and creates an agent from kind-specific high-level inputs.
      * The generated definition remains fully editable through the standard agent versioning operations.
      * 

Request Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaAgentsClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaAgentsClient.java
index 3e63f6123dd4e..e865e96e0708c 100644
--- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaAgentsClient.java
+++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaAgentsClient.java
@@ -51,7 +51,7 @@ public final class BetaAgentsClient {
      *
      * Retrieves an optimization job by its identifier.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -133,7 +133,7 @@ public final class BetaAgentsClient {
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -185,7 +185,7 @@ public Response getOptimizationJobWithResponse(String jobId, Request *
Response Headers
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -239,7 +239,7 @@ public PagedIterable listOptimizationJobs(RequestOptions requestOpti
      *
      * Requests cancellation of a running or queued job and returns an error if the job is already in a terminal state.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -511,7 +511,7 @@ public void deleteOptimizationJob(String jobId) {
      * 
      * You can add these to a request with {@link RequestOptions#addHeader}
      * 

Request Body Schema

- * + * *
      * {@code
      * {
@@ -593,9 +593,9 @@ public void deleteOptimizationJob(String jobId) {
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -753,15 +753,15 @@ public SyncPoller beginCreateOptimizationJob(BinaryData
      * Generates and creates an agent from kind-specific high-level inputs.
      * The generated definition remains fully editable through the standard agent versioning operations.
      * 

Request Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsAsyncClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsAsyncClient.java
index eaed34bda0db5..34baa44371c50 100644
--- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsAsyncClient.java
+++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsAsyncClient.java
@@ -78,7 +78,7 @@ public final class BetaVoiceAgentsConversationsAsyncClient {
      * 
      * You can add these to a request with {@link RequestOptions#addQueryParam}
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -149,7 +149,7 @@ public PagedFlux listAgentConversations(String agentName, RequestOpt
      * Retrieves a single conversation recorded for the specified voice agent endpoint by its id.
      * Returns `404` when the conversation was not persisted (`store = false`) or does not exist.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -269,7 +269,7 @@ public Mono> deleteAgentConversationWithResponse(String agentName
      * 
      * You can add these to a request with {@link RequestOptions#addQueryParam}
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -356,7 +356,7 @@ public PagedFlux listAgentConversationResponses(String agentName, St
      * Retrieves a single response from the specified conversation by its id, including its `output` items,
      * `usage`, and status. Returns `404` when the conversation or response was not persisted (`store = false`).
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -470,7 +470,7 @@ public Mono> getAgentConversationResponseWithResponse(Strin
      * 
      * You can add these to a request with {@link RequestOptions#addQueryParam}
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -524,7 +524,7 @@ public PagedFlux listAgentConversationResponseItems(String agentName
      * 
      * You can add these to a request with {@link RequestOptions#addQueryParam}
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -558,7 +558,7 @@ public PagedFlux listAgentConversationItems(String agentName, String
      * `/items/{item_id}/audio/content`. Returns `404` when the conversation or item was not persisted
      * (`store = false`).
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -598,7 +598,7 @@ public Mono> getAgentConversationItemWithResponse(String ag
      * Requires the conversation to have persisted audio (`store = true`); returns `404` when the conversation,
      * item, or its audio was not persisted.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -650,7 +650,7 @@ public Mono> getAgentConversationAudioItemWithResponse(Stri
      * returned by the item's `/audio` metadata route — so this route returns `409 Conflict` for BYOS recordings.
      * Returns `404` when the conversation, item, or its audio was not persisted (`store = false`).
      * 

Response Body Schema

- * + * *
      * {@code
      * BinaryData
@@ -683,7 +683,7 @@ public Mono> downloadAgentConversationAudioItemWithResponse
      * than the listener heard, including when the response ends as cancelled. Returns `404` when the conversation or
      * item was not persisted, or when no generated audio exists beyond the heard segment.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -732,7 +732,7 @@ public Mono> getAgentConversationGeneratedAudioItemWithResp
      * Returns `404` when the conversation or item was not persisted, or when no generated audio exists beyond the
      * heard segment.
      * 

Response Body Schema

- * + * *
      * {@code
      * BinaryData
@@ -771,7 +771,7 @@ public Mono> downloadAgentConversationGeneratedAudioItemWit
      * For a `completed` conversation, metadata is available subject to the existing BYOS behavior. Requires the
      * conversation to have persisted audio (`store = true`); otherwise returns `404`.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -821,7 +821,7 @@ public Mono> getAgentConversationAudioWithResponse(String a
      * For a `completed` conversation, content is available subject to the existing BYOS behavior. A conversation
      * without persisted audio (`store = false`) returns `404`.
      * 

Response Body Schema

- * + * *
      * {@code
      * BinaryData
diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsClient.java
index 440a0d52938de..002c08c1b388d 100644
--- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsClient.java
+++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsClient.java
@@ -72,7 +72,7 @@ public final class BetaVoiceAgentsConversationsClient {
      * 
      * You can add these to a request with {@link RequestOptions#addQueryParam}
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -143,7 +143,7 @@ public PagedIterable listAgentConversations(String agentName, Reques
      * Retrieves a single conversation recorded for the specified voice agent endpoint by its id.
      * Returns `404` when the conversation was not persisted (`store = false`) or does not exist.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -263,7 +263,7 @@ public Response deleteAgentConversationWithResponse(String agentName, Stri
      * 
      * You can add these to a request with {@link RequestOptions#addQueryParam}
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -350,7 +350,7 @@ public PagedIterable listAgentConversationResponses(String agentName
      * Retrieves a single response from the specified conversation by its id, including its `output` items,
      * `usage`, and status. Returns `404` when the conversation or response was not persisted (`store = false`).
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -464,7 +464,7 @@ public Response getAgentConversationResponseWithResponse(String agen
      * 
      * You can add these to a request with {@link RequestOptions#addQueryParam}
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -518,7 +518,7 @@ public PagedIterable listAgentConversationResponseItems(String agent
      * 
      * You can add these to a request with {@link RequestOptions#addQueryParam}
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -552,7 +552,7 @@ public PagedIterable listAgentConversationItems(String agentName, St
      * `/items/{item_id}/audio/content`. Returns `404` when the conversation or item was not persisted
      * (`store = false`).
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -592,7 +592,7 @@ public Response getAgentConversationItemWithResponse(String agentNam
      * Requires the conversation to have persisted audio (`store = true`); returns `404` when the conversation,
      * item, or its audio was not persisted.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -644,7 +644,7 @@ public Response getAgentConversationAudioItemWithResponse(String age
      * returned by the item's `/audio` metadata route — so this route returns `409 Conflict` for BYOS recordings.
      * Returns `404` when the conversation, item, or its audio was not persisted (`store = false`).
      * 

Response Body Schema

- * + * *
      * {@code
      * BinaryData
@@ -677,7 +677,7 @@ public Response downloadAgentConversationAudioItemWithResponse(Strin
      * than the listener heard, including when the response ends as cancelled. Returns `404` when the conversation or
      * item was not persisted, or when no generated audio exists beyond the heard segment.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -725,7 +725,7 @@ public Response getAgentConversationGeneratedAudioItemWithResponse(S
      * Returns `404` when the conversation or item was not persisted, or when no generated audio exists beyond the
      * heard segment.
      * 

Response Body Schema

- * + * *
      * {@code
      * BinaryData
@@ -764,7 +764,7 @@ public Response downloadAgentConversationGeneratedAudioItemWithRespo
      * For a `completed` conversation, metadata is available subject to the existing BYOS behavior. Requires the
      * conversation to have persisted audio (`store = true`); otherwise returns `404`.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -814,7 +814,7 @@ public Response getAgentConversationAudioWithResponse(String agentNa
      * For a `completed` conversation, content is available subject to the existing BYOS behavior. A conversation
      * without persisted audio (`store = false`) returns `404`.
      * 

Response Body Schema

- * + * *
      * {@code
      * BinaryData
diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyAsyncClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyAsyncClient.java
index 34ad2f837b204..2e8f0cf5aae28 100644
--- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyAsyncClient.java
+++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyAsyncClient.java
@@ -85,7 +85,7 @@ public final class BetaVoiceAgentsTelephonyAsyncClient {
      * 
      * You can add these to a request with {@link RequestOptions#addHeader}
      * 

Request Body Schema

- * + * *
      * {@code
      * {
@@ -95,9 +95,9 @@ public final class BetaVoiceAgentsTelephonyAsyncClient {
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -110,7 +110,7 @@ public final class BetaVoiceAgentsTelephonyAsyncClient {
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -165,7 +165,7 @@ public Mono> createTelephonyBindingWithResponse(String agen *
Response Headers
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -199,7 +199,7 @@ public PagedFlux listTelephonyBindings(String agentName, RequestOpti
      *
      * Retrieves a telephony binding owned by the voice agent named in the path.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -212,7 +212,7 @@ public PagedFlux listTelephonyBindings(String agentName, RequestOpti
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -245,7 +245,7 @@ public Mono> getTelephonyBindingWithResponse(String agentNa * * Updates a telephony binding owned by the voice agent named in the path. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -256,9 +256,9 @@ public Mono> getTelephonyBindingWithResponse(String agentNa
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -271,7 +271,7 @@ public Mono> getTelephonyBindingWithResponse(String agentNa
      * }
      * }
      * 
- * + * *

Response Headers

*
Response Headers
* @@ -358,7 +358,7 @@ public Mono> deleteTelephonyBindingWithResponse(String agentName, *
Response Headers
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -402,7 +402,7 @@ public PagedFlux listTelephonyCalls(String agentName, RequestOptions
      *
      * Retrieves a durable inbound call record owned by the voice agent named in the path.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -489,7 +489,7 @@ public Mono> getTelephonyCallWithResponse(String agentName,
      *
      * Transfers an active inbound call to a configured target for the voice agent named in the path.
      * 

Request Body Schema

- * + * *
      * {@code
      * {
@@ -497,9 +497,9 @@ public Mono> getTelephonyCallWithResponse(String agentName,
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -586,7 +586,7 @@ public Mono> transferTelephonyCallWithResponse(String agent
      *
      * Ends an active inbound call owned by the voice agent named in the path.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -671,7 +671,7 @@ public Mono> endTelephonyCallWithResponse(String agentName,
      *
      * Returns all transfer targets configured for the voice agent named in the path.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -687,7 +687,7 @@ public Mono> endTelephonyCallWithResponse(String agentName,
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -719,7 +719,7 @@ public Mono> getTelephonyTransferTargetsWithResponse(String * * Replaces all transfer targets configured for the voice agent named in the path. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -735,9 +735,9 @@ public Mono> getTelephonyTransferTargetsWithResponse(String
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -753,7 +753,7 @@ public Mono> getTelephonyTransferTargetsWithResponse(String
      * }
      * }
      * 
- * + * *

Response Headers

*
Response Headers
* @@ -787,7 +787,7 @@ public Mono> replaceTelephonyTransferTargetsWithResponse(St * * Creates one durable direct outbound call job. The latest agent definition is resolved when each attempt executes. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -812,9 +812,9 @@ public Mono> replaceTelephonyTransferTargetsWithResponse(St
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -855,7 +855,7 @@ public Mono> replaceTelephonyTransferTargetsWithResponse(St
      * }
      * }
      * 
- * + * *

Response Headers

*
Response Headers
* @@ -890,7 +890,7 @@ public Mono> createTelephonyCallJobWithResponse(String agen * * Retrieves a durable direct or campaign-created outbound call job. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -931,7 +931,7 @@ public Mono> createTelephonyCallJobWithResponse(String agen
      * }
      * }
      * 
- * + * *

Response Headers

*
Response Headers
* @@ -963,7 +963,7 @@ public Mono> getTelephonyCallJobWithResponse(String agentNa * * Requests cancellation of a durable outbound call job. A connected call is allowed to finish. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1004,7 +1004,7 @@ public Mono> getTelephonyCallJobWithResponse(String agentNa
      * }
      * }
      * 
- * + * *

Response Headers

*
Response Headers
* @@ -1039,7 +1039,7 @@ public Mono> cancelTelephonyCallJobWithResponse(String agen * * Creates a draft outbound campaign. Recipients are imported and validated before the campaign can be published. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -1058,9 +1058,9 @@ public Mono> cancelTelephonyCallJobWithResponse(String agen
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1100,7 +1100,7 @@ public Mono> cancelTelephonyCallJobWithResponse(String agen
      * }
      * }
      * 
- * + * *

Response Headers

*
Response Headers
* @@ -1130,7 +1130,7 @@ public Mono> createTelephonyCampaignWithResponse(String age * * Retrieves an outbound campaign, including configuration, execution state, and aggregate call-job counts. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1195,7 +1195,7 @@ public Mono> getTelephonyCampaignWithResponse(String agentN
      *
      * Starts an asynchronous import of campaign recipients from a Dataset CSV, JSON array, or JSONL file.
      * 

Request Body Schema

- * + * *
      * {@code
      * {
@@ -1217,9 +1217,9 @@ public Mono> getTelephonyCampaignWithResponse(String agentN
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1258,7 +1258,7 @@ public PollerFlux beginImportTelephonyCampaignRecipients
      *
      * Retrieves the durable status and counters for a campaign recipient import.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1318,7 +1318,7 @@ public Mono> getTelephonyCampaignRecipientImportWithRespons
      *
      * Starts asynchronous validation of the current campaign draft and imported recipient snapshot.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1354,7 +1354,7 @@ public PollerFlux beginValidateTelephonyCampaign(String
      *
      * Permanently locks the validated campaign draft and starts asynchronous call-job materialization.
      * 

Request Body Schema

- * + * *
      * {@code
      * {
@@ -1362,9 +1362,9 @@ public PollerFlux beginValidateTelephonyCampaign(String
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1401,7 +1401,7 @@ public PollerFlux beginPublishTelephonyCampaign(String a
      *
      * Pauses dispatch of call jobs owned by a published campaign.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1464,7 +1464,7 @@ public Mono> pauseTelephonyCampaignWithResponse(String agen
      *
      * Resumes dispatch of call jobs owned by a paused campaign.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1527,7 +1527,7 @@ public Mono> resumeTelephonyCampaignWithResponse(String age
      *
      * Cancels a campaign and prevents any further call-job dispatch.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1590,7 +1590,7 @@ public Mono> cancelTelephonyCampaignWithResponse(String age
      *
      * Retrieves an asynchronous outbound campaign operation.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyClient.java
index cd760fc3301ac..9166eab3c3b5b 100644
--- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyClient.java
+++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyClient.java
@@ -79,7 +79,7 @@ public final class BetaVoiceAgentsTelephonyClient {
      * 
Response Headers
* You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -89,9 +89,9 @@ public final class BetaVoiceAgentsTelephonyClient {
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -104,7 +104,7 @@ public final class BetaVoiceAgentsTelephonyClient {
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -158,7 +158,7 @@ public Response createTelephonyBindingWithResponse(String agentName, *
Response Headers
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -192,7 +192,7 @@ public PagedIterable listTelephonyBindings(String agentName, Request
      *
      * Retrieves a telephony binding owned by the voice agent named in the path.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -205,7 +205,7 @@ public PagedIterable listTelephonyBindings(String agentName, Request
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -237,7 +237,7 @@ public Response getTelephonyBindingWithResponse(String agentName, St * * Updates a telephony binding owned by the voice agent named in the path. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -248,9 +248,9 @@ public Response getTelephonyBindingWithResponse(String agentName, St
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -263,7 +263,7 @@ public Response getTelephonyBindingWithResponse(String agentName, St
      * }
      * }
      * 
- * + * *

Response Headers

*
Response Headers
* @@ -348,7 +348,7 @@ public Response deleteTelephonyBindingWithResponse(String agentName, Strin *
Response Headers
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -392,7 +392,7 @@ public PagedIterable listTelephonyCalls(String agentName, RequestOpt
      *
      * Retrieves a durable inbound call record owned by the voice agent named in the path.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -478,7 +478,7 @@ public Response getTelephonyCallWithResponse(String agentName, Strin
      *
      * Transfers an active inbound call to a configured target for the voice agent named in the path.
      * 

Request Body Schema

- * + * *
      * {@code
      * {
@@ -486,9 +486,9 @@ public Response getTelephonyCallWithResponse(String agentName, Strin
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -574,7 +574,7 @@ public Response transferTelephonyCallWithResponse(String agentName,
      *
      * Ends an active inbound call owned by the voice agent named in the path.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -658,7 +658,7 @@ public Response endTelephonyCallWithResponse(String agentName, Strin
      *
      * Returns all transfer targets configured for the voice agent named in the path.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -674,7 +674,7 @@ public Response endTelephonyCallWithResponse(String agentName, Strin
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -705,7 +705,7 @@ public Response getTelephonyTransferTargetsWithResponse(String agent * * Replaces all transfer targets configured for the voice agent named in the path. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -721,9 +721,9 @@ public Response getTelephonyTransferTargetsWithResponse(String agent
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -739,7 +739,7 @@ public Response getTelephonyTransferTargetsWithResponse(String agent
      * }
      * }
      * 
- * + * *

Response Headers

*
Response Headers
* @@ -772,7 +772,7 @@ public Response replaceTelephonyTransferTargetsWithResponse(String a * * Creates one durable direct outbound call job. The latest agent definition is resolved when each attempt executes. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -797,9 +797,9 @@ public Response replaceTelephonyTransferTargetsWithResponse(String a
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -840,7 +840,7 @@ public Response replaceTelephonyTransferTargetsWithResponse(String a
      * }
      * }
      * 
- * + * *

Response Headers

*
Response Headers
* @@ -873,7 +873,7 @@ public Response createTelephonyCallJobWithResponse(String agentName, * * Retrieves a durable direct or campaign-created outbound call job. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -914,7 +914,7 @@ public Response createTelephonyCallJobWithResponse(String agentName,
      * }
      * }
      * 
- * + * *

Response Headers

*
Response Headers
* @@ -945,7 +945,7 @@ public Response getTelephonyCallJobWithResponse(String agentName, St * * Requests cancellation of a durable outbound call job. A connected call is allowed to finish. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -986,7 +986,7 @@ public Response getTelephonyCallJobWithResponse(String agentName, St
      * }
      * }
      * 
- * + * *

Response Headers

*
Response Headers
* @@ -1019,7 +1019,7 @@ public Response cancelTelephonyCallJobWithResponse(String agentName, * * Creates a draft outbound campaign. Recipients are imported and validated before the campaign can be published. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -1038,9 +1038,9 @@ public Response cancelTelephonyCallJobWithResponse(String agentName,
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1080,7 +1080,7 @@ public Response cancelTelephonyCallJobWithResponse(String agentName,
      * }
      * }
      * 
- * + * *

Response Headers

*
Response Headers
* @@ -1109,7 +1109,7 @@ public Response createTelephonyCampaignWithResponse(String agentName * * Retrieves an outbound campaign, including configuration, execution state, and aggregate call-job counts. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1174,7 +1174,7 @@ public Response getTelephonyCampaignWithResponse(String agentName, S
      *
      * Starts an asynchronous import of campaign recipients from a Dataset CSV, JSON array, or JSONL file.
      * 

Request Body Schema

- * + * *
      * {@code
      * {
@@ -1196,9 +1196,9 @@ public Response getTelephonyCampaignWithResponse(String agentName, S
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1237,7 +1237,7 @@ public SyncPoller beginImportTelephonyCampaignRecipients
      *
      * Retrieves the durable status and counters for a campaign recipient import.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1296,7 +1296,7 @@ public Response getTelephonyCampaignRecipientImportWithResponse(Stri
      *
      * Starts asynchronous validation of the current campaign draft and imported recipient snapshot.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1332,7 +1332,7 @@ public SyncPoller beginValidateTelephonyCampaign(String
      *
      * Permanently locks the validated campaign draft and starts asynchronous call-job materialization.
      * 

Request Body Schema

- * + * *
      * {@code
      * {
@@ -1340,9 +1340,9 @@ public SyncPoller beginValidateTelephonyCampaign(String
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1379,7 +1379,7 @@ public SyncPoller beginPublishTelephonyCampaign(String a
      *
      * Pauses dispatch of call jobs owned by a published campaign.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1441,7 +1441,7 @@ public Response pauseTelephonyCampaignWithResponse(String agentName,
      *
      * Resumes dispatch of call jobs owned by a paused campaign.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1503,7 +1503,7 @@ public Response resumeTelephonyCampaignWithResponse(String agentName
      *
      * Cancels a campaign and prevents any further call-job dispatch.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1565,7 +1565,7 @@ public Response cancelTelephonyCampaignWithResponse(String agentName
      *
      * Retrieves an asynchronous outbound campaign operation.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/ToolboxesAsyncClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/ToolboxesAsyncClient.java
index 2105c91054015..20c26271bc747 100644
--- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/ToolboxesAsyncClient.java
+++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/ToolboxesAsyncClient.java
@@ -57,7 +57,7 @@ public final class ToolboxesAsyncClient {
      *
      * Creates a new toolbox version, provisioning the toolbox itself if it does not already exist.
      * 

Request Body Schema

- * + * *
      * {@code
      * {
@@ -108,9 +108,9 @@ public final class ToolboxesAsyncClient {
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -188,7 +188,7 @@ public Mono> createToolboxVersionWithResponse(String name,
      *
      * Retrieves the specified toolbox and its current configuration.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -292,7 +292,7 @@ public Mono> getToolboxWithResponse(String name, RequestOpt
      * 
Response Headers
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -394,7 +394,7 @@ public PagedFlux listToolboxes(RequestOptions requestOptions) {
      * 
      * You can add these to a request with {@link RequestOptions#addQueryParam}
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -469,7 +469,7 @@ public PagedFlux listToolboxVersions(String name, RequestOptions req
      *
      * Retrieves the specified version of a toolbox by name and version identifier.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -546,7 +546,7 @@ public Mono> getToolboxVersionWithResponse(String name, Str
      *
      * Updates the toolbox's default version pointer to the specified version.
      * 

Request Body Schema

- * + * *
      * {@code
      * {
@@ -554,9 +554,9 @@ public Mono> getToolboxVersionWithResponse(String name, Str
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1045,21 +1045,21 @@ public Mono deleteToolboxVersion(String name, String version) {
      *
      * Invokes the latest version of the specified toolbox through its MCP endpoint.
      * 

Request Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * *

Response Headers

* * diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/ToolboxesClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/ToolboxesClient.java index 4cb3e0f9ff757..937d13fcafedc 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/ToolboxesClient.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/ToolboxesClient.java @@ -51,7 +51,7 @@ public final class ToolboxesClient { * * Creates a new toolbox version, provisioning the toolbox itself if it does not already exist. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -102,9 +102,9 @@ public final class ToolboxesClient {
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -181,7 +181,7 @@ public Response createToolboxVersionWithResponse(String name, Binary
      *
      * Retrieves the specified toolbox and its current configuration.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -284,7 +284,7 @@ public Response getToolboxWithResponse(String name, RequestOptions r
      * 
Response Headers
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -386,7 +386,7 @@ public PagedIterable listToolboxes(RequestOptions requestOptions) {
      * 
      * You can add these to a request with {@link RequestOptions#addQueryParam}
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -461,7 +461,7 @@ public PagedIterable listToolboxVersions(String name, RequestOptions
      *
      * Retrieves the specified version of a toolbox by name and version identifier.
      * 

Response Body Schema

- * + * *
      * {@code
      * {
@@ -538,7 +538,7 @@ public Response getToolboxVersionWithResponse(String name, String ve
      *
      * Updates the toolbox's default version pointer to the specified version.
      * 

Request Body Schema

- * + * *
      * {@code
      * {
@@ -546,9 +546,9 @@ public Response getToolboxVersionWithResponse(String name, String ve
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -984,21 +984,21 @@ public void deleteToolboxVersion(String name, String version) {
      *
      * Invokes the latest version of the specified toolbox through its MCP endpoint.
      * 

Request Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * *

Response Headers

* * diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsClientImpl.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsClientImpl.java index bc8ba850e5fe0..8a5aa5be7ed15 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsClientImpl.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsClientImpl.java @@ -31,7 +31,7 @@ public final class AgentsClientImpl { * If you only have one Project in your Foundry Hub, or to target the default Project * in your Hub, use the form * "https://{ai-services-account-name}.services.ai.azure.com/api/projects/_project". - * + * * @return the endpoint value. */ public String getEndpoint() { @@ -45,7 +45,7 @@ public String getEndpoint() { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AgentsServiceVersion getServiceVersion() { @@ -59,7 +59,7 @@ public AgentsServiceVersion getServiceVersion() { /** * Gets The HTTP pipeline to send requests through. - * + * * @return the httpPipeline value. */ public HttpPipeline getHttpPipeline() { @@ -73,7 +73,7 @@ public HttpPipeline getHttpPipeline() { /** * Gets The serializer to serialize an object into a string. - * + * * @return the serializerAdapter value. */ public SerializerAdapter getSerializerAdapter() { @@ -87,7 +87,7 @@ public SerializerAdapter getSerializerAdapter() { /** * Gets the BetaVoiceAgentsConversationsImpl object to access its operations. - * + * * @return the BetaVoiceAgentsConversationsImpl object. */ public BetaVoiceAgentsConversationsImpl getBetaVoiceAgentsConversations() { @@ -101,7 +101,7 @@ public BetaVoiceAgentsConversationsImpl getBetaVoiceAgentsConversations() { /** * Gets the BetaVoiceAgentsTelephoniesImpl object to access its operations. - * + * * @return the BetaVoiceAgentsTelephoniesImpl object. */ public BetaVoiceAgentsTelephoniesImpl getBetaVoiceAgentsTelephonies() { @@ -115,7 +115,7 @@ public BetaVoiceAgentsTelephoniesImpl getBetaVoiceAgentsTelephonies() { /** * Gets the BetaMemoryStoresImpl object to access its operations. - * + * * @return the BetaMemoryStoresImpl object. */ public BetaMemoryStoresImpl getBetaMemoryStores() { @@ -129,7 +129,7 @@ public BetaMemoryStoresImpl getBetaMemoryStores() { /** * Gets the BetaAgentsImpl object to access its operations. - * + * * @return the BetaAgentsImpl object. */ public BetaAgentsImpl getBetaAgents() { @@ -143,7 +143,7 @@ public BetaAgentsImpl getBetaAgents() { /** * Gets the AgentsImpl object to access its operations. - * + * * @return the AgentsImpl object. */ public AgentsImpl getAgents() { @@ -157,7 +157,7 @@ public AgentsImpl getAgents() { /** * Gets the ToolboxesImpl object to access its operations. - * + * * @return the ToolboxesImpl object. */ public ToolboxesImpl getToolboxes() { @@ -166,7 +166,7 @@ public ToolboxesImpl getToolboxes() { /** * Initializes an instance of AgentsClient client. - * + * * @param endpoint Foundry Project endpoint in the form * "https://{ai-services-account-name}.services.ai.azure.com/api/projects/{project-name}". * If you only have one Project in your Foundry Hub, or to target the default Project @@ -181,7 +181,7 @@ public AgentsClientImpl(String endpoint, AgentsServiceVersion serviceVersion) { /** * Initializes an instance of AgentsClient client. - * + * * @param httpPipeline The HTTP pipeline to send requests through. * @param endpoint Foundry Project endpoint in the form * "https://{ai-services-account-name}.services.ai.azure.com/api/projects/{project-name}". @@ -196,7 +196,7 @@ public AgentsClientImpl(HttpPipeline httpPipeline, String endpoint, AgentsServic /** * Initializes an instance of AgentsClient client. - * + * * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. * @param endpoint Foundry Project endpoint in the form diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsServicePollUtils.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsServicePollUtils.java index 35f75eba7c0b5..2ecc60e48a2c9 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsServicePollUtils.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsServicePollUtils.java @@ -3,9 +3,29 @@ package com.azure.ai.agents.implementation; +import com.azure.ai.agents.models.JobStatus; import com.azure.ai.agents.models.MemoryStoreUpdateStatus; +import com.azure.core.http.HttpMethod; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.HttpResponse; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.CoreUtils; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.UrlBuilder; +import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.LongRunningOperationStatus; import com.azure.core.util.polling.PollResponse; +import com.azure.core.util.polling.PollingContext; +import com.azure.core.util.polling.PollingStrategyOptions; +import com.azure.core.util.serializer.ObjectSerializer; +import com.azure.core.util.serializer.TypeReference; +import reactor.core.publisher.Mono; + +import java.time.Duration; +import java.time.OffsetDateTime; +import java.util.Collections; +import java.util.Map; /** * Shared polling helpers for the Agents SDK. @@ -17,39 +37,142 @@ *

This class is package-private; it is not part of the public API.

*/ final class AgentsServicePollUtils { + private static final ClientLogger LOGGER = new ClientLogger(AgentsServicePollUtils.class); + private static final String RESOURCE_LOCATION = "resourceLocation"; private AgentsServicePollUtils() { } + static Mono> poll(PollingStrategyOptions options, ObjectSerializer serializer, String endpoint, + PollingContext pollingContext, TypeReference pollResponseType) { + HttpRequest request = new HttpRequest(HttpMethod.GET, getPollUrl(options, pollingContext)); + Context context = options.getContext() == null ? Context.NONE : options.getContext(); + return FluxUtil + .withContext(subscriberContext -> options.getHttpPipeline() + .send(request, CoreUtils.mergeContexts(subscriberContext, context))) + .flatMap(response -> response.getBodyAsByteArray() + .defaultIfEmpty(new byte[0]) + .flatMap(bytes -> createPollResponse(BinaryData.fromBytes(bytes), response, serializer, endpoint, + pollingContext, pollResponseType))); + } + + static PollResponse pollSync(PollingStrategyOptions options, ObjectSerializer serializer, String endpoint, + PollingContext pollingContext, TypeReference pollResponseType) { + HttpRequest request = new HttpRequest(HttpMethod.GET, getPollUrl(options, pollingContext)); + Context context = options.getContext() == null ? Context.NONE : options.getContext(); + try (HttpResponse response = options.getHttpPipeline().sendSync(request, context)) { + byte[] bytes = response.getBodyAsByteArray().defaultIfEmpty(new byte[0]).block(); + return createPollResponseSync(BinaryData.fromBytes(bytes), response, serializer, endpoint, pollingContext, + pollResponseType); + } + } + + private static Mono> createPollResponse(BinaryData responseBody, HttpResponse response, + ObjectSerializer serializer, String endpoint, PollingContext pollingContext, + TypeReference pollResponseType) { + Duration retryAfter = PollingUtils.getRetryAfterFromHeaders(response.getHeaders(), OffsetDateTime::now); + if (responseBody.getLength() == 0) { + return Mono.just(new PollResponse<>(LongRunningOperationStatus.IN_PROGRESS, null, retryAfter)); + } + + return PollingUtils.deserializeResponse(responseBody, serializer, PollingUtils.POST_POLL_RESULT_TYPE_REFERENCE) + .defaultIfEmpty(Collections.emptyMap()) + .flatMap(pollResult -> { + updatePollingContext(pollingContext, pollResult, responseBody, endpoint); + LongRunningOperationStatus status = mapStatus(pollResult.get("status")); + return PollingUtils.deserializeResponse(responseBody, serializer, pollResponseType) + .map(value -> new PollResponse<>(status, value, retryAfter)) + .defaultIfEmpty(new PollResponse<>(status, null, retryAfter)); + }); + } + + private static PollResponse createPollResponseSync(BinaryData responseBody, HttpResponse response, + ObjectSerializer serializer, String endpoint, PollingContext pollingContext, + TypeReference pollResponseType) { + Duration retryAfter = PollingUtils.getRetryAfterFromHeaders(response.getHeaders(), OffsetDateTime::now); + if (responseBody.getLength() == 0) { + return new PollResponse<>(LongRunningOperationStatus.IN_PROGRESS, null, retryAfter); + } + + Map pollResult = PollingUtils.deserializeResponseSync(responseBody, serializer, + PollingUtils.POST_POLL_RESULT_TYPE_REFERENCE); + if (pollResult == null) { + pollResult = Collections.emptyMap(); + } + updatePollingContext(pollingContext, pollResult, responseBody, endpoint); + LongRunningOperationStatus status = mapStatus(pollResult.get("status")); + T value = PollingUtils.deserializeResponseSync(responseBody, serializer, pollResponseType); + return new PollResponse<>(status, value, retryAfter); + } + + private static String getPollUrl(PollingStrategyOptions options, PollingContext pollingContext) { + String url = pollingContext.getData(PollingUtils.OPERATION_LOCATION_HEADER.getCaseSensitiveName()); + if (!CoreUtils.isNullOrEmpty(options.getServiceVersion())) { + UrlBuilder urlBuilder = UrlBuilder.parse(url); + urlBuilder.setQueryParameter("api-version", options.getServiceVersion()); + url = urlBuilder.toString(); + } + return url; + } + + private static void updatePollingContext(PollingContext pollingContext, Map pollResult, + BinaryData responseBody, String endpoint) { + pollingContext.setData(PollingUtils.POLL_RESPONSE_BODY, responseBody.toString()); + Object resourceLocation = pollResult.get("resourceLocation"); + if (resourceLocation instanceof String) { + pollingContext.setData(RESOURCE_LOCATION, + PollingUtils.getAbsolutePath((String) resourceLocation, endpoint, LOGGER)); + } + } + /** - * Remaps a {@link PollResponse} whose status may contain a custom service terminal state - * ({@code "completed"}, {@code "superseded"}) that the base {@code OperationResourcePollingStrategy} - * cannot recognize. If no remapping is needed the original response is returned as-is. - * - *

The Memory Stores service defines:

- *
    - *
  • {@code "completed"} {@link LongRunningOperationStatus#SUCCESSFULLY_COMPLETED}
  • - *
  • {@code "superseded"} {@link LongRunningOperationStatus#USER_CANCELLED}
  • - *
+ * Remaps a {@link PollResponse} whose status may contain a custom service status. If no remapping is needed the + * original response is returned as-is. */ static PollResponse remapStatus(PollResponse response) { LongRunningOperationStatus status = response.getStatus(); - LongRunningOperationStatus mapped = mapCustomStatus(status); + LongRunningOperationStatus mapped = mapStatus(status); if (mapped == status) { return response; } return new PollResponse<>(mapped, response.getValue(), response.getRetryAfter()); } - private static LongRunningOperationStatus mapCustomStatus(LongRunningOperationStatus status) { - // Standard statuses (Succeeded, Failed, Canceled, InProgress, NotStarted) are already - // mapped correctly by the parent's PollResult; only remap the custom ones. - String name = status.toString(); - if (MemoryStoreUpdateStatus.COMPLETED.toString().equalsIgnoreCase(name)) { + private static LongRunningOperationStatus mapStatus(Object statusValue) { + if (statusValue == null || CoreUtils.isNullOrEmpty(statusValue.toString().trim())) { + return LongRunningOperationStatus.IN_PROGRESS; + } + if (statusValue == LongRunningOperationStatus.NOT_STARTED + || statusValue == LongRunningOperationStatus.IN_PROGRESS + || statusValue == LongRunningOperationStatus.SUCCESSFULLY_COMPLETED + || statusValue == LongRunningOperationStatus.FAILED + || statusValue == LongRunningOperationStatus.USER_CANCELLED) { + return (LongRunningOperationStatus) statusValue; + } + + String status = statusValue.toString().trim(); + if (LongRunningOperationStatus.NOT_STARTED.toString().equalsIgnoreCase(status) + || "NotStarted".equalsIgnoreCase(status)) { + return LongRunningOperationStatus.NOT_STARTED; + } else if (JobStatus.QUEUED.toString().equalsIgnoreCase(status) + || JobStatus.IN_PROGRESS.toString().equalsIgnoreCase(status) + || LongRunningOperationStatus.IN_PROGRESS.toString().equalsIgnoreCase(status) + || "InProgress".equalsIgnoreCase(status) + || "Running".equalsIgnoreCase(status)) { + return LongRunningOperationStatus.IN_PROGRESS; + } else if (JobStatus.SUCCEEDED.toString().equalsIgnoreCase(status) + || MemoryStoreUpdateStatus.COMPLETED.toString().equalsIgnoreCase(status) + || LongRunningOperationStatus.SUCCESSFULLY_COMPLETED.toString().equalsIgnoreCase(status)) { return LongRunningOperationStatus.SUCCESSFULLY_COMPLETED; - } else if (MemoryStoreUpdateStatus.SUPERSEDED.toString().equalsIgnoreCase(name)) { + } else if (JobStatus.FAILED.toString().equalsIgnoreCase(status) + || LongRunningOperationStatus.FAILED.toString().equalsIgnoreCase(status)) { + return LongRunningOperationStatus.FAILED; + } else if (JobStatus.CANCELLED.toString().equalsIgnoreCase(status) + || MemoryStoreUpdateStatus.SUPERSEDED.toString().equalsIgnoreCase(status) + || LongRunningOperationStatus.USER_CANCELLED.toString().equalsIgnoreCase(status) + || "Canceled".equalsIgnoreCase(status)) { return LongRunningOperationStatus.USER_CANCELLED; } - return status; + return LongRunningOperationStatus.fromString(status, false); } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaAgentsImpl.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaAgentsImpl.java index 29dfbca90468a..ce3b2c3406270 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaAgentsImpl.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaAgentsImpl.java @@ -61,7 +61,7 @@ public final class BetaAgentsImpl { /** * Initializes an instance of BetaAgentsImpl. - * + * * @param client the instance of the service client containing this operation class. */ BetaAgentsImpl(AgentsClientImpl client) { @@ -72,7 +72,7 @@ public final class BetaAgentsImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AgentsServiceVersion getServiceVersion() { @@ -213,19 +213,19 @@ Response deleteOptimizationJobSync(@HostParam("endpoint") String endpoint, /** * Generate an agent - * + * * Generates and creates an agent from kind-specific high-level inputs. * The generated definition remains fully editable through the standard agent versioning operations. *

Request Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -341,7 +341,7 @@ Response deleteOptimizationJobSync(@HostParam("endpoint") String endpoint,
      * }
      * }
      * 
- * + * * @param body The kind-specific inputs for generating and creating an agent. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -361,19 +361,19 @@ public Mono> createAgentFromPromptWithResponseAsync(BinaryD /** * Generate an agent - * + * * Generates and creates an agent from kind-specific high-level inputs. * The generated definition remains fully editable through the standard agent versioning operations. *

Request Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -489,7 +489,7 @@ public Mono> createAgentFromPromptWithResponseAsync(BinaryD
      * }
      * }
      * 
- * + * * @param body The kind-specific inputs for generating and creating an agent. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -508,7 +508,7 @@ public Response createAgentFromPromptWithResponse(BinaryData body, R /** * Create an agent optimization job - * + * * Creates an optimization job and returns the queued job. Honors `Operation-Id` for idempotent retry. *

Header Parameters

*
Response Headers
@@ -519,7 +519,7 @@ public Response createAgentFromPromptWithResponse(BinaryData body, R *
* You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -601,9 +601,9 @@ public Response createAgentFromPromptWithResponse(BinaryData body, R
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -685,7 +685,7 @@ public Response createAgentFromPromptWithResponse(BinaryData body, R
      * }
      * }
      * 
- * + * * @param job The job to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -707,7 +707,7 @@ private Mono> createOptimizationJobWithResponseAsync(Binary /** * Create an agent optimization job - * + * * Creates an optimization job and returns the queued job. Honors `Operation-Id` for idempotent retry. *

Header Parameters

* @@ -718,7 +718,7 @@ private Mono> createOptimizationJobWithResponseAsync(Binary *
* You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -800,9 +800,9 @@ private Mono> createOptimizationJobWithResponseAsync(Binary
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -884,7 +884,7 @@ private Mono> createOptimizationJobWithResponseAsync(Binary
      * }
      * }
      * 
- * + * * @param job The job to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -904,7 +904,7 @@ private Response createOptimizationJobWithResponse(BinaryData job, R /** * Create an agent optimization job - * + * * Creates an optimization job and returns the queued job. Honors `Operation-Id` for idempotent retry. *

Header Parameters

* @@ -915,7 +915,7 @@ private Response createOptimizationJobWithResponse(BinaryData job, R *
* You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -997,9 +997,9 @@ private Response createOptimizationJobWithResponse(BinaryData job, R
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1081,7 +1081,7 @@ private Response createOptimizationJobWithResponse(BinaryData job, R
      * }
      * }
      * 
- * + * * @param job The job to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1110,7 +1110,7 @@ private Response createOptimizationJobWithResponse(BinaryData job, R /** * Create an agent optimization job - * + * * Creates an optimization job and returns the queued job. Honors `Operation-Id` for idempotent retry. *

Header Parameters

* @@ -1121,7 +1121,7 @@ private Response createOptimizationJobWithResponse(BinaryData job, R *
* You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -1203,9 +1203,9 @@ private Response createOptimizationJobWithResponse(BinaryData job, R
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1287,7 +1287,7 @@ private Response createOptimizationJobWithResponse(BinaryData job, R
      * }
      * }
      * 
- * + * * @param job The job to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1316,7 +1316,7 @@ private Response createOptimizationJobWithResponse(BinaryData job, R /** * Create an agent optimization job - * + * * Creates an optimization job and returns the queued job. Honors `Operation-Id` for idempotent retry. *

Header Parameters

* @@ -1327,7 +1327,7 @@ private Response createOptimizationJobWithResponse(BinaryData job, R *
* You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -1409,9 +1409,9 @@ private Response createOptimizationJobWithResponse(BinaryData job, R
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1493,7 +1493,7 @@ private Response createOptimizationJobWithResponse(BinaryData job, R
      * }
      * }
      * 
- * + * * @param job The job to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1521,7 +1521,7 @@ public PollerFlux beginCreateOptimizationJobAsync(Binary /** * Create an agent optimization job - * + * * Creates an optimization job and returns the queued job. Honors `Operation-Id` for idempotent retry. *

Header Parameters

* @@ -1532,7 +1532,7 @@ public PollerFlux beginCreateOptimizationJobAsync(Binary *
* You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -1614,9 +1614,9 @@ public PollerFlux beginCreateOptimizationJobAsync(Binary
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1698,7 +1698,7 @@ public PollerFlux beginCreateOptimizationJobAsync(Binary
      * }
      * }
      * 
- * + * * @param job The job to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1726,10 +1726,10 @@ public SyncPoller beginCreateOptimizationJob(BinaryData /** * Get an agent optimization job - * + * * Retrieves an optimization job by its identifier. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1811,14 +1811,14 @@ public SyncPoller beginCreateOptimizationJob(BinaryData
      * }
      * }
      * 
- * + * *

Response Headers

* * * * *
Response Headers
NameTypeDescription
Retry-AfterintRecommended number of seconds to wait before polling again.
- * + * * @param jobId The ID of the job. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1826,7 +1826,7 @@ public SyncPoller beginCreateOptimizationJob(BinaryData * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an agent optimization job - * + * * Retrieves an optimization job by its identifier along with {@link Response} on successful completion of * {@link Mono}. */ @@ -1839,10 +1839,10 @@ public Mono> getOptimizationJobWithResponseAsync(String job /** * Get an agent optimization job - * + * * Retrieves an optimization job by its identifier. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1924,14 +1924,14 @@ public Mono> getOptimizationJobWithResponseAsync(String job
      * }
      * }
      * 
- * + * *

Response Headers

* * * * *
Response Headers
NameTypeDescription
Retry-AfterintRecommended number of seconds to wait before polling again.
- * + * * @param jobId The ID of the job. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1939,7 +1939,7 @@ public Mono> getOptimizationJobWithResponseAsync(String job * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an agent optimization job - * + * * Retrieves an optimization job by its identifier along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1951,7 +1951,7 @@ public Response getOptimizationJobWithResponse(String jobId, Request /** * List agent optimization jobs - * + * * Lists optimization jobs with cursor pagination and optional status or agent name filters. *

Query Parameters

* @@ -1977,7 +1977,7 @@ public Response getOptimizationJobWithResponse(String jobId, Request *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2012,7 +2012,7 @@ public Response getOptimizationJobWithResponse(String jobId, Request
      * }
      * }
      * 
- * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -2033,7 +2033,7 @@ private Mono> listOptimizationJobsSinglePageAsync(Requ /** * List agent optimization jobs - * + * * Lists optimization jobs with cursor pagination and optional status or agent name filters. *

Query Parameters

* @@ -2059,7 +2059,7 @@ private Mono> listOptimizationJobsSinglePageAsync(Requ *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2094,7 +2094,7 @@ private Mono> listOptimizationJobsSinglePageAsync(Requ
      * }
      * }
      * 
- * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -2109,7 +2109,7 @@ public PagedFlux listOptimizationJobsAsync(RequestOptions requestOpt /** * List agent optimization jobs - * + * * Lists optimization jobs with cursor pagination and optional status or agent name filters. *

Query Parameters

* @@ -2135,7 +2135,7 @@ public PagedFlux listOptimizationJobsAsync(RequestOptions requestOpt *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2170,7 +2170,7 @@ public PagedFlux listOptimizationJobsAsync(RequestOptions requestOpt
      * }
      * }
      * 
- * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -2189,7 +2189,7 @@ private PagedResponse listOptimizationJobsSinglePage(RequestOptions /** * List agent optimization jobs - * + * * Lists optimization jobs with cursor pagination and optional status or agent name filters. *

Query Parameters

* @@ -2215,7 +2215,7 @@ private PagedResponse listOptimizationJobsSinglePage(RequestOptions *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2250,7 +2250,7 @@ private PagedResponse listOptimizationJobsSinglePage(RequestOptions
      * }
      * }
      * 
- * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -2265,10 +2265,10 @@ public PagedIterable listOptimizationJobs(RequestOptions requestOpti /** * Cancel an agent optimization job - * + * * Requests cancellation of a running or queued job and returns an error if the job is already in a terminal state. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2350,7 +2350,7 @@ public PagedIterable listOptimizationJobs(RequestOptions requestOpti
      * }
      * }
      * 
- * + * * @param jobId The ID of the job to cancel. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2371,10 +2371,10 @@ public Mono> cancelOptimizationJobWithResponseAsync(String /** * Cancel an agent optimization job - * + * * Requests cancellation of a running or queued job and returns an error if the job is already in a terminal state. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2456,7 +2456,7 @@ public Mono> cancelOptimizationJobWithResponseAsync(String
      * }
      * }
      * 
- * + * * @param jobId The ID of the job to cancel. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2475,9 +2475,9 @@ public Response cancelOptimizationJobWithResponse(String jobId, Requ /** * Delete an agent optimization job - * + * * Deletes the job and its candidate artifacts, canceling the job first if it is non-terminal. - * + * * @param jobId The ID of the job to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2494,9 +2494,9 @@ public Mono> deleteOptimizationJobWithResponseAsync(String jobId, /** * Delete an agent optimization job - * + * * Deletes the job and its candidate artifacts, canceling the job first if it is non-terminal. - * + * * @param jobId The ID of the job to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsConversationsImpl.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsConversationsImpl.java index b6d276479bba0..13cb798adcd9f 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsConversationsImpl.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsConversationsImpl.java @@ -52,7 +52,7 @@ public final class BetaVoiceAgentsConversationsImpl { /** * Initializes an instance of BetaVoiceAgentsConversationsImpl. - * + * * @param client the instance of the service client containing this operation class. */ BetaVoiceAgentsConversationsImpl(AgentsClientImpl client) { @@ -63,7 +63,7 @@ public final class BetaVoiceAgentsConversationsImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AgentsServiceVersion getServiceVersion() { @@ -384,7 +384,7 @@ Response downloadAgentConversationAudioSync(@HostParam("endpoint") S /** * List voice agent conversations - * + * * Returns the conversations persisted for the specified voice agent endpoint. * Conversations are present when the session's effective `store` setting is `true`, whether inherited from the * agent definition or enabled by the WebSocket session override. @@ -409,7 +409,7 @@ Response downloadAgentConversationAudioSync(@HostParam("endpoint") S * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -459,7 +459,7 @@ Response downloadAgentConversationAudioSync(@HostParam("endpoint") S
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -482,7 +482,7 @@ private Mono> listAgentConversationsSinglePageAsync(St /** * List voice agent conversations - * + * * Returns the conversations persisted for the specified voice agent endpoint. * Conversations are present when the session's effective `store` setting is `true`, whether inherited from the * agent definition or enabled by the WebSocket session override. @@ -507,7 +507,7 @@ private Mono> listAgentConversationsSinglePageAsync(St * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -557,7 +557,7 @@ private Mono> listAgentConversationsSinglePageAsync(St
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -573,7 +573,7 @@ public PagedFlux listAgentConversationsAsync(String agentName, Reque /** * List voice agent conversations - * + * * Returns the conversations persisted for the specified voice agent endpoint. * Conversations are present when the session's effective `store` setting is `true`, whether inherited from the * agent definition or enabled by the WebSocket session override. @@ -598,7 +598,7 @@ public PagedFlux listAgentConversationsAsync(String agentName, Reque * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -648,7 +648,7 @@ public PagedFlux listAgentConversationsAsync(String agentName, Reque
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -669,7 +669,7 @@ private PagedResponse listAgentConversationsSinglePage(String agentN /** * List voice agent conversations - * + * * Returns the conversations persisted for the specified voice agent endpoint. * Conversations are present when the session's effective `store` setting is `true`, whether inherited from the * agent definition or enabled by the WebSocket session override. @@ -694,7 +694,7 @@ private PagedResponse listAgentConversationsSinglePage(String agentN * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -744,7 +744,7 @@ private PagedResponse listAgentConversationsSinglePage(String agentN
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -760,11 +760,11 @@ public PagedIterable listAgentConversations(String agentName, Reques /** * Get a voice agent conversation - * + * * Retrieves a single conversation recorded for the specified voice agent endpoint by its id. * Returns `404` when the conversation was not persisted (`store = false`) or does not exist. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -814,7 +814,7 @@ public PagedIterable listAgentConversations(String agentName, Reques
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -823,7 +823,7 @@ public PagedIterable listAgentConversations(String agentName, Reques * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation - * + * * Retrieves a single conversation recorded for the specified voice agent endpoint by its id. * Returns `404` when the conversation was not persisted (`store = false`) or does not exist along with * {@link Response} on successful completion of {@link Mono}. @@ -838,11 +838,11 @@ public Mono> getAgentConversationWithResponseAsync(String a /** * Get a voice agent conversation - * + * * Retrieves a single conversation recorded for the specified voice agent endpoint by its id. * Returns `404` when the conversation was not persisted (`store = false`) or does not exist. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -892,7 +892,7 @@ public Mono> getAgentConversationWithResponseAsync(String a
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -901,7 +901,7 @@ public Mono> getAgentConversationWithResponseAsync(String a * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation - * + * * Retrieves a single conversation recorded for the specified voice agent endpoint by its id. * Returns `404` when the conversation was not persisted (`store = false`) or does not exist along with * {@link Response}. @@ -916,10 +916,10 @@ public Response getAgentConversationWithResponse(String agentName, S /** * Delete a voice agent conversation - * + * * Deletes a conversation and all of its stored data — responses, items, and any audio (cascade). This is * the customer's explicit data-deletion control for voice conversations. - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -938,10 +938,10 @@ public Mono> deleteAgentConversationWithResponseAsync(String agen /** * Delete a voice agent conversation - * + * * Deletes a conversation and all of its stored data — responses, items, and any audio (cascade). This is * the customer's explicit data-deletion control for voice conversations. - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -960,7 +960,7 @@ public Response deleteAgentConversationWithResponse(String agentName, Stri /** * List responses in a voice agent conversation - * + * * Returns a paged collection of the responses (model inference turns) recorded for the specified * conversation. The per-response `output` projection may be omitted here; use the response-items route * for the canonical paged output. Returns `404` when the conversation was not persisted (`store = false`). @@ -985,7 +985,7 @@ public Response deleteAgentConversationWithResponse(String agentName, Stri * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1049,7 +1049,7 @@ public Response deleteAgentConversationWithResponse(String agentName, Stri
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose responses are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1073,7 +1073,7 @@ private Mono> listAgentConversationResponsesSinglePage /** * List responses in a voice agent conversation - * + * * Returns a paged collection of the responses (model inference turns) recorded for the specified * conversation. The per-response `output` projection may be omitted here; use the response-items route * for the canonical paged output. Returns `404` when the conversation was not persisted (`store = false`). @@ -1098,7 +1098,7 @@ private Mono> listAgentConversationResponsesSinglePage * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1162,7 +1162,7 @@ private Mono> listAgentConversationResponsesSinglePage
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose responses are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1181,7 +1181,7 @@ public PagedFlux listAgentConversationResponsesAsync(String agentNam /** * List responses in a voice agent conversation - * + * * Returns a paged collection of the responses (model inference turns) recorded for the specified * conversation. The per-response `output` projection may be omitted here; use the response-items route * for the canonical paged output. Returns `404` when the conversation was not persisted (`store = false`). @@ -1206,7 +1206,7 @@ public PagedFlux listAgentConversationResponsesAsync(String agentNam * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1270,7 +1270,7 @@ public PagedFlux listAgentConversationResponsesAsync(String agentNam
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose responses are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1292,7 +1292,7 @@ private PagedResponse listAgentConversationResponsesSinglePage(Strin /** * List responses in a voice agent conversation - * + * * Returns a paged collection of the responses (model inference turns) recorded for the specified * conversation. The per-response `output` projection may be omitted here; use the response-items route * for the canonical paged output. Returns `404` when the conversation was not persisted (`store = false`). @@ -1317,7 +1317,7 @@ private PagedResponse listAgentConversationResponsesSinglePage(Strin * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1381,7 +1381,7 @@ private PagedResponse listAgentConversationResponsesSinglePage(Strin
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose responses are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1400,11 +1400,11 @@ public PagedIterable listAgentConversationResponses(String agentName /** * Get a voice agent conversation response - * + * * Retrieves a single response from the specified conversation by its id, including its `output` items, * `usage`, and status. Returns `404` when the conversation or response was not persisted (`store = false`). *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1468,7 +1468,7 @@ public PagedIterable listAgentConversationResponses(String agentName
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the response. * @param responseId The id of the response to retrieve. @@ -1478,7 +1478,7 @@ public PagedIterable listAgentConversationResponses(String agentName * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation response - * + * * Retrieves a single response from the specified conversation by its id, including its `output` items, * `usage`, and status along with {@link Response} on successful completion of {@link Mono}. */ @@ -1493,11 +1493,11 @@ public Mono> getAgentConversationResponseWithResponseAsync( /** * Get a voice agent conversation response - * + * * Retrieves a single response from the specified conversation by its id, including its `output` items, * `usage`, and status. Returns `404` when the conversation or response was not persisted (`store = false`). *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1561,7 +1561,7 @@ public Mono> getAgentConversationResponseWithResponseAsync(
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the response. * @param responseId The id of the response to retrieve. @@ -1571,7 +1571,7 @@ public Mono> getAgentConversationResponseWithResponseAsync( * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation response - * + * * Retrieves a single response from the specified conversation by its id, including its `output` items, * `usage`, and status along with {@link Response}. */ @@ -1585,7 +1585,7 @@ public Response getAgentConversationResponseWithResponse(String agen /** * List items produced by a voice agent conversation response - * + * * Returns a paged collection of the output items produced by a specific response (the response's output * projection). For the complete ordered conversation history — including user input and client-created * tool outputs — use the conversation items route instead. Returns `404` when the conversation or @@ -1611,7 +1611,7 @@ public Response getAgentConversationResponseWithResponse(String agen * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1619,7 +1619,7 @@ public Response getAgentConversationResponseWithResponse(String agen
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the response. * @param responseId The id of the response whose output items are listed. @@ -1645,7 +1645,7 @@ private Mono> listAgentConversationResponseItemsSingle /** * List items produced by a voice agent conversation response - * + * * Returns a paged collection of the output items produced by a specific response (the response's output * projection). For the complete ordered conversation history — including user input and client-created * tool outputs — use the conversation items route instead. Returns `404` when the conversation or @@ -1671,7 +1671,7 @@ private Mono> listAgentConversationResponseItemsSingle * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1679,7 +1679,7 @@ private Mono> listAgentConversationResponseItemsSingle
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the response. * @param responseId The id of the response whose output items are listed. @@ -1699,7 +1699,7 @@ public PagedFlux listAgentConversationResponseItemsAsync(String agen /** * List items produced by a voice agent conversation response - * + * * Returns a paged collection of the output items produced by a specific response (the response's output * projection). For the complete ordered conversation history — including user input and client-created * tool outputs — use the conversation items route instead. Returns `404` when the conversation or @@ -1725,7 +1725,7 @@ public PagedFlux listAgentConversationResponseItemsAsync(String agen * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1733,7 +1733,7 @@ public PagedFlux listAgentConversationResponseItemsAsync(String agen
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the response. * @param responseId The id of the response whose output items are listed. @@ -1757,7 +1757,7 @@ private PagedResponse listAgentConversationResponseItemsSinglePage(S /** * List items produced by a voice agent conversation response - * + * * Returns a paged collection of the output items produced by a specific response (the response's output * projection). For the complete ordered conversation history — including user input and client-created * tool outputs — use the conversation items route instead. Returns `404` when the conversation or @@ -1783,7 +1783,7 @@ private PagedResponse listAgentConversationResponseItemsSinglePage(S * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1791,7 +1791,7 @@ private PagedResponse listAgentConversationResponseItemsSinglePage(S
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the response. * @param responseId The id of the response whose output items are listed. @@ -1811,7 +1811,7 @@ public PagedIterable listAgentConversationResponseItems(String agent /** * List items in a voice agent conversation - * + * * Returns a paged collection of items — the complete ordered conversation history, including user input, * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the * conversation was not persisted (`store = false`). @@ -1836,7 +1836,7 @@ public PagedIterable listAgentConversationResponseItems(String agent * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1844,7 +1844,7 @@ public PagedIterable listAgentConversationResponseItems(String agent
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose items are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1868,7 +1868,7 @@ private Mono> listAgentConversationItemsSinglePageAsyn /** * List items in a voice agent conversation - * + * * Returns a paged collection of items — the complete ordered conversation history, including user input, * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the * conversation was not persisted (`store = false`). @@ -1893,7 +1893,7 @@ private Mono> listAgentConversationItemsSinglePageAsyn * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1901,7 +1901,7 @@ private Mono> listAgentConversationItemsSinglePageAsyn
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose items are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1920,7 +1920,7 @@ public PagedFlux listAgentConversationItemsAsync(String agentName, S /** * List items in a voice agent conversation - * + * * Returns a paged collection of items — the complete ordered conversation history, including user input, * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the * conversation was not persisted (`store = false`). @@ -1945,7 +1945,7 @@ public PagedFlux listAgentConversationItemsAsync(String agentName, S * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1953,7 +1953,7 @@ public PagedFlux listAgentConversationItemsAsync(String agentName, S
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose items are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1975,7 +1975,7 @@ private PagedResponse listAgentConversationItemsSinglePage(String ag /** * List items in a voice agent conversation - * + * * Returns a paged collection of items — the complete ordered conversation history, including user input, * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the * conversation was not persisted (`store = false`). @@ -2000,7 +2000,7 @@ private PagedResponse listAgentConversationItemsSinglePage(String ag * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2008,7 +2008,7 @@ private PagedResponse listAgentConversationItemsSinglePage(String ag
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose items are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2027,14 +2027,14 @@ public PagedIterable listAgentConversationItems(String agentName, St /** * Get a voice agent conversation item - * + * * Retrieves a single item from the specified conversation by its id, including its transcript. An * `input_audio`/`output_audio` content part indicates that audio is available for the item; the canonical per-item * audio metadata is the `/items/{item_id}/audio` resource, and the bytes are streamed by * `/items/{item_id}/audio/content`. Returns `404` when the conversation or item was not persisted * (`store = false`). *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2042,7 +2042,7 @@ public PagedIterable listAgentConversationItems(String agentName, St
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item to retrieve. @@ -2052,7 +2052,7 @@ public PagedIterable listAgentConversationItems(String agentName, St * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation item - * + * * Retrieves a single item from the specified conversation by its id, including its transcript along with * {@link Response} on successful completion of {@link Mono}. */ @@ -2066,14 +2066,14 @@ public Mono> getAgentConversationItemWithResponseAsync(Stri /** * Get a voice agent conversation item - * + * * Retrieves a single item from the specified conversation by its id, including its transcript. An * `input_audio`/`output_audio` content part indicates that audio is available for the item; the canonical per-item * audio metadata is the `/items/{item_id}/audio` resource, and the bytes are streamed by * `/items/{item_id}/audio/content`. Returns `404` when the conversation or item was not persisted * (`store = false`). *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2081,7 +2081,7 @@ public Mono> getAgentConversationItemWithResponseAsync(Stri
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item to retrieve. @@ -2091,7 +2091,7 @@ public Mono> getAgentConversationItemWithResponseAsync(Stri * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation item - * + * * Retrieves a single item from the specified conversation by its id, including its transcript along with * {@link Response}. */ @@ -2105,7 +2105,7 @@ public Response getAgentConversationItemWithResponse(String agentNam /** * Get a voice agent conversation item's audio metadata - * + * * Returns metadata for a single conversation item's audio segment, including the common playback facts * (role, format/codec, sample rate, channels, offset, duration) for both Foundry-managed and * bring-your-own-storage (BYOS) recordings; for BYOS the response additionally includes `blob_uri`, the URI @@ -2113,7 +2113,7 @@ public Response getAgentConversationItemWithResponse(String agentNam * Requires the conversation to have persisted audio (`store = true`); returns `404` when the conversation, * item, or its audio was not persisted. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2130,7 +2130,7 @@ public Response getAgentConversationItemWithResponse(String agentNam
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item whose audio metadata is retrieved. @@ -2140,7 +2140,7 @@ public Response getAgentConversationItemWithResponse(String agentNam * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation item's audio metadata - * + * * Returns metadata for a single conversation item's audio segment, including the common playback facts * (role, format/codec, sample rate, channels, offset, duration) for both Foundry-managed and * bring-your-own-storage (BYOS) recordings; for BYOS the response additionally includes `blob_uri`, the URI @@ -2159,7 +2159,7 @@ public Mono> getAgentConversationAudioItemWithResponseAsync /** * Get a voice agent conversation item's audio metadata - * + * * Returns metadata for a single conversation item's audio segment, including the common playback facts * (role, format/codec, sample rate, channels, offset, duration) for both Foundry-managed and * bring-your-own-storage (BYOS) recordings; for BYOS the response additionally includes `blob_uri`, the URI @@ -2167,7 +2167,7 @@ public Mono> getAgentConversationAudioItemWithResponseAsync * Requires the conversation to have persisted audio (`store = true`); returns `404` when the conversation, * item, or its audio was not persisted. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2184,7 +2184,7 @@ public Mono> getAgentConversationAudioItemWithResponseAsync
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item whose audio metadata is retrieved. @@ -2194,7 +2194,7 @@ public Mono> getAgentConversationAudioItemWithResponseAsync * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation item's audio metadata - * + * * Returns metadata for a single conversation item's audio segment, including the common playback facts * (role, format/codec, sample rate, channels, offset, duration) for both Foundry-managed and * bring-your-own-storage (BYOS) recordings; for BYOS the response additionally includes `blob_uri`, the URI @@ -2212,20 +2212,20 @@ public Response getAgentConversationAudioItemWithResponse(String age /** * Stream a voice agent conversation item's audio - * + * * Streams a single conversation item's audio as a WAV (`audio/wav`) byte stream through the service (no SAS * URL). This route serves Foundry-managed storage only. For bring-your-own-storage (BYOS) recordings the * bytes are not proxied — the caller must download directly from customer storage using the `blob_uri` * returned by the item's `/audio` metadata route — so this route returns `409 Conflict` for BYOS recordings. * Returns `404` when the conversation, item, or its audio was not persisted (`store = false`). *

Response Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item whose audio is streamed. @@ -2247,20 +2247,20 @@ public Mono> downloadAgentConversationAudioItemWithResponse /** * Stream a voice agent conversation item's audio - * + * * Streams a single conversation item's audio as a WAV (`audio/wav`) byte stream through the service (no SAS * URL). This route serves Foundry-managed storage only. For bring-your-own-storage (BYOS) recordings the * bytes are not proxied — the caller must download directly from customer storage using the `blob_uri` * returned by the item's `/audio` metadata route — so this route returns `409 Conflict` for BYOS recordings. * Returns `404` when the conversation, item, or its audio was not persisted (`store = false`). *

Response Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item whose audio is streamed. @@ -2281,13 +2281,13 @@ public Response downloadAgentConversationAudioItemWithResponse(Strin /** * Get a voice agent conversation item's generated audio metadata - * + * * Returns metadata for a conversation item's generated audio. This subordinate artifact is separate from the * canonical heard-audio segment and exists only when playback was interrupted and the service rendered more audio * than the listener heard, including when the response ends as cancelled. Returns `404` when the conversation or * item was not persisted, or when no generated audio exists beyond the heard segment. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2304,7 +2304,7 @@ public Response downloadAgentConversationAudioItemWithResponse(Strin
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item whose generated audio metadata is retrieved. @@ -2314,7 +2314,7 @@ public Response downloadAgentConversationAudioItemWithResponse(Strin * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation item's generated audio metadata - * + * * Returns metadata for a conversation item's generated audio along with {@link Response} on successful completion * of {@link Mono}. */ @@ -2329,13 +2329,13 @@ public Mono> getAgentConversationGeneratedAudioItemWithResp /** * Get a voice agent conversation item's generated audio metadata - * + * * Returns metadata for a conversation item's generated audio. This subordinate artifact is separate from the * canonical heard-audio segment and exists only when playback was interrupted and the service rendered more audio * than the listener heard, including when the response ends as cancelled. Returns `404` when the conversation or * item was not persisted, or when no generated audio exists beyond the heard segment. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2352,7 +2352,7 @@ public Mono> getAgentConversationGeneratedAudioItemWithResp
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item whose generated audio metadata is retrieved. @@ -2362,7 +2362,7 @@ public Mono> getAgentConversationGeneratedAudioItemWithResp * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation item's generated audio metadata - * + * * Returns metadata for a conversation item's generated audio along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2375,7 +2375,7 @@ public Response getAgentConversationGeneratedAudioItemWithResponse(S /** * Stream a voice agent conversation item's generated audio - * + * * Streams a conversation item's generated audio as a WAV (`audio/wav`) byte stream through the service. This * subordinate artifact exists only when playback was interrupted and the service rendered more audio than the * listener heard, including when the response ends as cancelled. This route serves Foundry-managed storage only. @@ -2383,13 +2383,13 @@ public Response getAgentConversationGeneratedAudioItemWithResponse(S * Returns `404` when the conversation or item was not persisted, or when no generated audio exists beyond the * heard segment. *

Response Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item whose generated audio is streamed. @@ -2411,7 +2411,7 @@ public Mono> downloadAgentConversationGeneratedAudioItemWit /** * Stream a voice agent conversation item's generated audio - * + * * Streams a conversation item's generated audio as a WAV (`audio/wav`) byte stream through the service. This * subordinate artifact exists only when playback was interrupted and the service rendered more audio than the * listener heard, including when the response ends as cancelled. This route serves Foundry-managed storage only. @@ -2419,13 +2419,13 @@ public Mono> downloadAgentConversationGeneratedAudioItemWit * Returns `404` when the conversation or item was not persisted, or when no generated audio exists beyond the * heard segment. *

Response Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item whose generated audio is streamed. @@ -2446,7 +2446,7 @@ public Response downloadAgentConversationGeneratedAudioItemWithRespo /** * Get a voice agent conversation's merged recording metadata - * + * * Returns metadata for the whole-call merged stereo recording (user audio on the left channel, agent audio * on the right). The common metadata (format, sample rate, channels, channel layout, duration) is returned * for both Foundry-managed and bring-your-own-storage (BYOS) recordings; for BYOS the response additionally @@ -2458,7 +2458,7 @@ public Response downloadAgentConversationGeneratedAudioItemWithRespo * For a `completed` conversation, metadata is available subject to the existing BYOS behavior. Requires the * conversation to have persisted audio (`store = true`); otherwise returns `404`. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2475,7 +2475,7 @@ public Response downloadAgentConversationGeneratedAudioItemWithRespo
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose merged recording metadata is retrieved. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2484,7 +2484,7 @@ public Response downloadAgentConversationGeneratedAudioItemWithRespo * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation's merged recording metadata - * + * * Returns metadata for the whole-call merged stereo recording (user audio on the left channel, agent audio * on the right) along with {@link Response} on successful completion of {@link Mono}. */ @@ -2498,7 +2498,7 @@ public Mono> getAgentConversationAudioWithResponseAsync(Str /** * Get a voice agent conversation's merged recording metadata - * + * * Returns metadata for the whole-call merged stereo recording (user audio on the left channel, agent audio * on the right). The common metadata (format, sample rate, channels, channel layout, duration) is returned * for both Foundry-managed and bring-your-own-storage (BYOS) recordings; for BYOS the response additionally @@ -2510,7 +2510,7 @@ public Mono> getAgentConversationAudioWithResponseAsync(Str * For a `completed` conversation, metadata is available subject to the existing BYOS behavior. Requires the * conversation to have persisted audio (`store = true`); otherwise returns `404`. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2527,7 +2527,7 @@ public Mono> getAgentConversationAudioWithResponseAsync(Str
      * }
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose merged recording metadata is retrieved. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2536,7 +2536,7 @@ public Mono> getAgentConversationAudioWithResponseAsync(Str * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation's merged recording metadata - * + * * Returns metadata for the whole-call merged stereo recording (user audio on the left channel, agent audio * on the right) along with {@link Response}. */ @@ -2550,7 +2550,7 @@ public Response getAgentConversationAudioWithResponse(String agentNa /** * Stream a voice agent conversation's merged recording - * + * * Streams the whole-call merged stereo recording as a WAV (`audio/wav`) byte stream through the service * (no SAS URL). This route serves Foundry-managed storage only. For bring-your-own-storage (BYOS) * recordings the bytes are not proxied — the caller must download directly from customer storage using the @@ -2561,13 +2561,13 @@ public Response getAgentConversationAudioWithResponse(String agentNa * For a `completed` conversation, content is available subject to the existing BYOS behavior. A conversation * without persisted audio (`store = false`) returns `404`. *

Response Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose merged recording is streamed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2587,7 +2587,7 @@ public Mono> downloadAgentConversationAudioWithResponseAsyn /** * Stream a voice agent conversation's merged recording - * + * * Streams the whole-call merged stereo recording as a WAV (`audio/wav`) byte stream through the service * (no SAS URL). This route serves Foundry-managed storage only. For bring-your-own-storage (BYOS) * recordings the bytes are not proxied — the caller must download directly from customer storage using the @@ -2598,13 +2598,13 @@ public Mono> downloadAgentConversationAudioWithResponseAsyn * For a `completed` conversation, content is available subject to the existing BYOS behavior. A conversation * without persisted audio (`store = false`) returns `404`. *

Response Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose merged recording is streamed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsTelephoniesImpl.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsTelephoniesImpl.java index a836bf91044b7..b6482586880f1 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsTelephoniesImpl.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsTelephoniesImpl.java @@ -67,7 +67,7 @@ public final class BetaVoiceAgentsTelephoniesImpl { /** * Initializes an instance of BetaVoiceAgentsTelephoniesImpl. - * + * * @param client the instance of the service client containing this operation class. */ BetaVoiceAgentsTelephoniesImpl(AgentsClientImpl client) { @@ -78,7 +78,7 @@ public final class BetaVoiceAgentsTelephoniesImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AgentsServiceVersion getServiceVersion() { @@ -633,7 +633,7 @@ Response getTelephonyOperationSync(@HostParam("endpoint") String end /** * Create an agent telephony binding - * + * * Creates a telephony binding for the voice agent named in the path. *

Header Parameters

* @@ -645,7 +645,7 @@ Response getTelephonyOperationSync(@HostParam("endpoint") String end *
* You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -655,9 +655,9 @@ Response getTelephonyOperationSync(@HostParam("endpoint") String end
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -670,7 +670,7 @@ Response getTelephonyOperationSync(@HostParam("endpoint") String end
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -678,7 +678,7 @@ Response getTelephonyOperationSync(@HostParam("endpoint") String end * *
Response Headers
ETagStringThe entity tag to send in the `If-Match` header when updating or deleting the * binding.
- * + * * @param agentName The name of the voice agent that owns the binding. * @param telephonyBinding The provider-specific binding to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -715,7 +715,7 @@ public Mono> createTelephonyBindingWithResponseAsync(String /** * Create an agent telephony binding - * + * * Creates a telephony binding for the voice agent named in the path. *

Header Parameters

* @@ -727,7 +727,7 @@ public Mono> createTelephonyBindingWithResponseAsync(String *
* You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -737,9 +737,9 @@ public Mono> createTelephonyBindingWithResponseAsync(String
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -752,7 +752,7 @@ public Mono> createTelephonyBindingWithResponseAsync(String
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -760,7 +760,7 @@ public Mono> createTelephonyBindingWithResponseAsync(String * *
Response Headers
ETagStringThe entity tag to send in the `If-Match` header when updating or deleting the * binding.
- * + * * @param agentName The name of the voice agent that owns the binding. * @param telephonyBinding The provider-specific binding to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -796,7 +796,7 @@ public Response createTelephonyBindingWithResponse(String agentName, /** * List agent telephony bindings - * + * * Returns the telephony bindings owned by the voice agent named in the path. *

Query Parameters

* @@ -823,7 +823,7 @@ public Response createTelephonyBindingWithResponse(String agentName, *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -837,7 +837,7 @@ public Response createTelephonyBindingWithResponse(String agentName,
      * }
      * }
      * 
- * + * * @param agentName The name of the voice agent whose bindings are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -860,7 +860,7 @@ private Mono> listTelephonyBindingsSinglePageAsync(Str /** * List agent telephony bindings - * + * * Returns the telephony bindings owned by the voice agent named in the path. *

Query Parameters

* @@ -887,7 +887,7 @@ private Mono> listTelephonyBindingsSinglePageAsync(Str *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -901,7 +901,7 @@ private Mono> listTelephonyBindingsSinglePageAsync(Str
      * }
      * }
      * 
- * + * * @param agentName The name of the voice agent whose bindings are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -917,7 +917,7 @@ public PagedFlux listTelephonyBindingsAsync(String agentName, Reques /** * List agent telephony bindings - * + * * Returns the telephony bindings owned by the voice agent named in the path. *

Query Parameters

* @@ -944,7 +944,7 @@ public PagedFlux listTelephonyBindingsAsync(String agentName, Reques *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -958,7 +958,7 @@ public PagedFlux listTelephonyBindingsAsync(String agentName, Reques
      * }
      * }
      * 
- * + * * @param agentName The name of the voice agent whose bindings are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -978,7 +978,7 @@ private PagedResponse listTelephonyBindingsSinglePage(String agentNa /** * List agent telephony bindings - * + * * Returns the telephony bindings owned by the voice agent named in the path. *

Query Parameters

* @@ -1005,7 +1005,7 @@ private PagedResponse listTelephonyBindingsSinglePage(String agentNa *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1019,7 +1019,7 @@ private PagedResponse listTelephonyBindingsSinglePage(String agentNa
      * }
      * }
      * 
- * + * * @param agentName The name of the voice agent whose bindings are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1035,10 +1035,10 @@ public PagedIterable listTelephonyBindings(String agentName, Request /** * Get an agent telephony binding - * + * * Retrieves a telephony binding owned by the voice agent named in the path. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1051,7 +1051,7 @@ public PagedIterable listTelephonyBindings(String agentName, Request
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -1059,7 +1059,7 @@ public PagedIterable listTelephonyBindings(String agentName, Request * *
Response Headers
ETagStringThe entity tag to send in the `If-Match` header when updating or deleting the * binding.
- * + * * @param agentName The name of the voice agent that owns the binding. * @param bindingId The service-generated binding identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1068,7 +1068,7 @@ public PagedIterable listTelephonyBindings(String agentName, Request * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an agent telephony binding - * + * * Retrieves a telephony binding owned by the voice agent named in the path along with {@link Response} on * successful completion of {@link Mono}. */ @@ -1082,10 +1082,10 @@ public Mono> getTelephonyBindingWithResponseAsync(String ag /** * Get an agent telephony binding - * + * * Retrieves a telephony binding owned by the voice agent named in the path. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1098,7 +1098,7 @@ public Mono> getTelephonyBindingWithResponseAsync(String ag
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -1106,7 +1106,7 @@ public Mono> getTelephonyBindingWithResponseAsync(String ag * *
Response Headers
ETagStringThe entity tag to send in the `If-Match` header when updating or deleting the * binding.
- * + * * @param agentName The name of the voice agent that owns the binding. * @param bindingId The service-generated binding identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1115,7 +1115,7 @@ public Mono> getTelephonyBindingWithResponseAsync(String ag * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an agent telephony binding - * + * * Retrieves a telephony binding owned by the voice agent named in the path along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1128,10 +1128,10 @@ public Response getTelephonyBindingWithResponse(String agentName, St /** * Update an agent telephony binding - * + * * Updates a telephony binding owned by the voice agent named in the path. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -1142,9 +1142,9 @@ public Response getTelephonyBindingWithResponse(String agentName, St
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1157,7 +1157,7 @@ public Response getTelephonyBindingWithResponse(String agentName, St
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -1165,7 +1165,7 @@ public Response getTelephonyBindingWithResponse(String agentName, St * *
Response Headers
ETagStringThe entity tag to send in the `If-Match` header when updating or deleting the * binding.
- * + * * @param agentName The name of the voice agent that owns the binding. * @param bindingId The service-generated binding identifier. * @param ifMatch The entity tag returned by the latest read. The request fails if the resource changed since that @@ -1191,10 +1191,10 @@ public Mono> updateTelephonyBindingWithResponseAsync(String /** * Update an agent telephony binding - * + * * Updates a telephony binding owned by the voice agent named in the path. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -1205,9 +1205,9 @@ public Mono> updateTelephonyBindingWithResponseAsync(String
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1220,7 +1220,7 @@ public Mono> updateTelephonyBindingWithResponseAsync(String
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -1228,7 +1228,7 @@ public Mono> updateTelephonyBindingWithResponseAsync(String * *
Response Headers
ETagStringThe entity tag to send in the `If-Match` header when updating or deleting the * binding.
- * + * * @param agentName The name of the voice agent that owns the binding. * @param bindingId The service-generated binding identifier. * @param ifMatch The entity tag returned by the latest read. The request fails if the resource changed since that @@ -1252,9 +1252,9 @@ public Response updateTelephonyBindingWithResponse(String agentName, /** * Delete an agent telephony binding - * + * * Deletes a telephony binding owned by the voice agent named in the path. - * + * * @param agentName The name of the voice agent that owns the binding. * @param bindingId The service-generated binding identifier. * @param ifMatch The entity tag returned by the latest read. The request fails if the resource changed since that @@ -1275,9 +1275,9 @@ public Mono> deleteTelephonyBindingWithResponseAsync(String agent /** * Delete an agent telephony binding - * + * * Deletes a telephony binding owned by the voice agent named in the path. - * + * * @param agentName The name of the voice agent that owns the binding. * @param bindingId The service-generated binding identifier. * @param ifMatch The entity tag returned by the latest read. The request fails if the resource changed since that @@ -1298,7 +1298,7 @@ public Response deleteTelephonyBindingWithResponse(String agentName, Strin /** * List agent telephony calls - * + * * Returns the durable inbound call history for the voice agent named in the path. *

Query Parameters

* @@ -1329,7 +1329,7 @@ public Response deleteTelephonyBindingWithResponse(String agentName, Strin *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1353,7 +1353,7 @@ public Response deleteTelephonyBindingWithResponse(String agentName, Strin
      * }
      * }
      * 
- * + * * @param agentName The name of the voice agent whose calls are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1376,7 +1376,7 @@ private Mono> listTelephonyCallsSinglePageAsync(String /** * List agent telephony calls - * + * * Returns the durable inbound call history for the voice agent named in the path. *

Query Parameters

* @@ -1407,7 +1407,7 @@ private Mono> listTelephonyCallsSinglePageAsync(String *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1431,7 +1431,7 @@ private Mono> listTelephonyCallsSinglePageAsync(String
      * }
      * }
      * 
- * + * * @param agentName The name of the voice agent whose calls are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1447,7 +1447,7 @@ public PagedFlux listTelephonyCallsAsync(String agentName, RequestOp /** * List agent telephony calls - * + * * Returns the durable inbound call history for the voice agent named in the path. *

Query Parameters

* @@ -1478,7 +1478,7 @@ public PagedFlux listTelephonyCallsAsync(String agentName, RequestOp *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1502,7 +1502,7 @@ public PagedFlux listTelephonyCallsAsync(String agentName, RequestOp
      * }
      * }
      * 
- * + * * @param agentName The name of the voice agent whose calls are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1522,7 +1522,7 @@ private PagedResponse listTelephonyCallsSinglePage(String agentName, /** * List agent telephony calls - * + * * Returns the durable inbound call history for the voice agent named in the path. *

Query Parameters

* @@ -1553,7 +1553,7 @@ private PagedResponse listTelephonyCallsSinglePage(String agentName, *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1577,7 +1577,7 @@ private PagedResponse listTelephonyCallsSinglePage(String agentName,
      * }
      * }
      * 
- * + * * @param agentName The name of the voice agent whose calls are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1593,10 +1593,10 @@ public PagedIterable listTelephonyCalls(String agentName, RequestOpt /** * Get an agent telephony call - * + * * Retrieves a durable inbound call record owned by the voice agent named in the path. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1658,7 +1658,7 @@ public PagedIterable listTelephonyCalls(String agentName, RequestOpt
      * }
      * }
      * 
- * + * * @param agentName The name of the voice agent that owns the call record. * @param callId The service-generated call identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1667,7 +1667,7 @@ public PagedIterable listTelephonyCalls(String agentName, RequestOpt * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an agent telephony call - * + * * Retrieves a durable inbound call record owned by the voice agent named in the path along with {@link Response} on * successful completion of {@link Mono}. */ @@ -1681,10 +1681,10 @@ public Mono> getTelephonyCallWithResponseAsync(String agent /** * Get an agent telephony call - * + * * Retrieves a durable inbound call record owned by the voice agent named in the path. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1746,7 +1746,7 @@ public Mono> getTelephonyCallWithResponseAsync(String agent
      * }
      * }
      * 
- * + * * @param agentName The name of the voice agent that owns the call record. * @param callId The service-generated call identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1755,7 +1755,7 @@ public Mono> getTelephonyCallWithResponseAsync(String agent * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an agent telephony call - * + * * Retrieves a durable inbound call record owned by the voice agent named in the path along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1768,10 +1768,10 @@ public Response getTelephonyCallWithResponse(String agentName, Strin /** * Transfer an active agent telephony call - * + * * Transfers an active inbound call to a configured target for the voice agent named in the path. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -1779,9 +1779,9 @@ public Response getTelephonyCallWithResponse(String agentName, Strin
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1843,7 +1843,7 @@ public Response getTelephonyCallWithResponse(String agentName, Strin
      * }
      * }
      * 
- * + * * @param agentName The name of the voice agent that owns the active call. * @param callId The service-generated call identifier. * @param transferTelephonyCallRequest The transferTelephonyCallRequest parameter. @@ -1867,10 +1867,10 @@ public Mono> transferTelephonyCallWithResponseAsync(String /** * Transfer an active agent telephony call - * + * * Transfers an active inbound call to a configured target for the voice agent named in the path. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -1878,9 +1878,9 @@ public Mono> transferTelephonyCallWithResponseAsync(String
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1942,7 +1942,7 @@ public Mono> transferTelephonyCallWithResponseAsync(String
      * }
      * }
      * 
- * + * * @param agentName The name of the voice agent that owns the active call. * @param callId The service-generated call identifier. * @param transferTelephonyCallRequest The transferTelephonyCallRequest parameter. @@ -1965,10 +1965,10 @@ public Response transferTelephonyCallWithResponse(String agentName, /** * End an active agent telephony call - * + * * Ends an active inbound call owned by the voice agent named in the path. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2030,7 +2030,7 @@ public Response transferTelephonyCallWithResponse(String agentName,
      * }
      * }
      * 
- * + * * @param agentName The name of the voice agent that owns the active call. * @param callId The service-generated call identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2051,10 +2051,10 @@ public Mono> endTelephonyCallWithResponseAsync(String agent /** * End an active agent telephony call - * + * * Ends an active inbound call owned by the voice agent named in the path. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2116,7 +2116,7 @@ public Mono> endTelephonyCallWithResponseAsync(String agent
      * }
      * }
      * 
- * + * * @param agentName The name of the voice agent that owns the active call. * @param callId The service-generated call identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2136,10 +2136,10 @@ public Response endTelephonyCallWithResponse(String agentName, Strin /** * Get agent telephony transfer targets - * + * * Returns all transfer targets configured for the voice agent named in the path. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2155,7 +2155,7 @@ public Response endTelephonyCallWithResponse(String agentName, Strin
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -2163,7 +2163,7 @@ public Response endTelephonyCallWithResponse(String agentName, Strin * *
Response Headers
ETagStringThe entity tag to send in the `If-Match` header when replacing the transfer * targets.
- * + * * @param agentName The name of the voice agent whose transfer targets are retrieved. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2171,7 +2171,7 @@ public Response endTelephonyCallWithResponse(String agentName, Strin * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return agent telephony transfer targets - * + * * Returns all transfer targets configured for the voice agent named in the path along with {@link Response} on * successful completion of {@link Mono}. */ @@ -2185,10 +2185,10 @@ public Mono> getTelephonyTransferTargetsWithResponseAsync(S /** * Get agent telephony transfer targets - * + * * Returns all transfer targets configured for the voice agent named in the path. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2204,7 +2204,7 @@ public Mono> getTelephonyTransferTargetsWithResponseAsync(S
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -2212,7 +2212,7 @@ public Mono> getTelephonyTransferTargetsWithResponseAsync(S * *
Response Headers
ETagStringThe entity tag to send in the `If-Match` header when replacing the transfer * targets.
- * + * * @param agentName The name of the voice agent whose transfer targets are retrieved. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2220,7 +2220,7 @@ public Mono> getTelephonyTransferTargetsWithResponseAsync(S * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return agent telephony transfer targets - * + * * Returns all transfer targets configured for the voice agent named in the path along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2233,10 +2233,10 @@ public Response getTelephonyTransferTargetsWithResponse(String agent /** * Replace agent telephony transfer targets - * + * * Replaces all transfer targets configured for the voice agent named in the path. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -2252,9 +2252,9 @@ public Response getTelephonyTransferTargetsWithResponse(String agent
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2270,7 +2270,7 @@ public Response getTelephonyTransferTargetsWithResponse(String agent
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -2278,7 +2278,7 @@ public Response getTelephonyTransferTargetsWithResponse(String agent * *
Response Headers
ETagStringThe entity tag to send in the `If-Match` header when replacing the transfer * targets.
- * + * * @param agentName The name of the voice agent whose transfer targets are replaced. * @param ifMatch The entity tag returned by the latest read. The request fails if the resource changed since that * read. @@ -2303,10 +2303,10 @@ public Mono> replaceTelephonyTransferTargetsWithResponseAsy /** * Replace agent telephony transfer targets - * + * * Replaces all transfer targets configured for the voice agent named in the path. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -2322,9 +2322,9 @@ public Mono> replaceTelephonyTransferTargetsWithResponseAsy
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2340,7 +2340,7 @@ public Mono> replaceTelephonyTransferTargetsWithResponseAsy
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -2348,7 +2348,7 @@ public Mono> replaceTelephonyTransferTargetsWithResponseAsy * *
Response Headers
ETagStringThe entity tag to send in the `If-Match` header when replacing the transfer * targets.
- * + * * @param agentName The name of the voice agent whose transfer targets are replaced. * @param ifMatch The entity tag returned by the latest read. The request fails if the resource changed since that * read. @@ -2372,10 +2372,10 @@ public Response replaceTelephonyTransferTargetsWithResponse(String a /** * Create an outbound telephony call job - * + * * Creates one durable direct outbound call job. The latest agent definition is resolved when each attempt executes. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -2400,9 +2400,9 @@ public Response replaceTelephonyTransferTargetsWithResponse(String a
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2443,7 +2443,7 @@ public Response replaceTelephonyTransferTargetsWithResponse(String a
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -2452,7 +2452,7 @@ public Response replaceTelephonyTransferTargetsWithResponse(String a * * *
Response Headers
LocationStringThe Location response header.
Retry-AfterDurationThe Retry-After response header.
- * + * * @param agentName The name of the voice agent that executes the call. * @param idempotencyKey A customer-generated idempotency key. Reusing it with an equivalent request returns the * same call job. @@ -2477,10 +2477,10 @@ public Mono> createTelephonyCallJobWithResponseAsync(String /** * Create an outbound telephony call job - * + * * Creates one durable direct outbound call job. The latest agent definition is resolved when each attempt executes. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -2505,9 +2505,9 @@ public Mono> createTelephonyCallJobWithResponseAsync(String
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2548,7 +2548,7 @@ public Mono> createTelephonyCallJobWithResponseAsync(String
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -2557,7 +2557,7 @@ public Mono> createTelephonyCallJobWithResponseAsync(String * * *
Response Headers
LocationStringThe Location response header.
Retry-AfterDurationThe Retry-After response header.
- * + * * @param agentName The name of the voice agent that executes the call. * @param idempotencyKey A customer-generated idempotency key. Reusing it with an equivalent request returns the * same call job. @@ -2580,10 +2580,10 @@ public Response createTelephonyCallJobWithResponse(String agentName, /** * Get an outbound telephony call job - * + * * Retrieves a durable direct or campaign-created outbound call job. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2624,14 +2624,14 @@ public Response createTelephonyCallJobWithResponse(String agentName,
      * }
      * }
      * 
- * + * *

Response Headers

* * * * *
Response Headers
NameTypeDescription
ETagStringThe ETag response header.
- * + * * @param agentName The agentName parameter. * @param callJobId The callJobId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2640,7 +2640,7 @@ public Response createTelephonyCallJobWithResponse(String agentName, * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an outbound telephony call job - * + * * Retrieves a durable direct or campaign-created outbound call job along with {@link Response} on successful * completion of {@link Mono}. */ @@ -2654,10 +2654,10 @@ public Mono> getTelephonyCallJobWithResponseAsync(String ag /** * Get an outbound telephony call job - * + * * Retrieves a durable direct or campaign-created outbound call job. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2698,14 +2698,14 @@ public Mono> getTelephonyCallJobWithResponseAsync(String ag
      * }
      * }
      * 
- * + * *

Response Headers

* * * * *
Response Headers
NameTypeDescription
ETagStringThe ETag response header.
- * + * * @param agentName The agentName parameter. * @param callJobId The callJobId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2714,7 +2714,7 @@ public Mono> getTelephonyCallJobWithResponseAsync(String ag * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an outbound telephony call job - * + * * Retrieves a durable direct or campaign-created outbound call job along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2727,10 +2727,10 @@ public Response getTelephonyCallJobWithResponse(String agentName, St /** * Cancel an outbound telephony call job - * + * * Requests cancellation of a durable outbound call job. A connected call is allowed to finish. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2771,7 +2771,7 @@ public Response getTelephonyCallJobWithResponse(String agentName, St
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -2780,7 +2780,7 @@ public Response getTelephonyCallJobWithResponse(String agentName, St * * *
Response Headers
LocationStringThe Location response header.
Retry-AfterDurationThe Retry-After response header.
- * + * * @param agentName The agentName parameter. * @param callJobId The callJobId parameter. * @param ifMatch The entity tag returned by the latest read. The request fails if the resource changed since that @@ -2803,10 +2803,10 @@ public Mono> cancelTelephonyCallJobWithResponseAsync(String /** * Cancel an outbound telephony call job - * + * * Requests cancellation of a durable outbound call job. A connected call is allowed to finish. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2847,7 +2847,7 @@ public Mono> cancelTelephonyCallJobWithResponseAsync(String
      * }
      * }
      * 
- * + * *

Response Headers

* * @@ -2856,7 +2856,7 @@ public Mono> cancelTelephonyCallJobWithResponseAsync(String * * *
Response Headers
LocationStringThe Location response header.
Retry-AfterDurationThe Retry-After response header.
- * + * * @param agentName The agentName parameter. * @param callJobId The callJobId parameter. * @param ifMatch The entity tag returned by the latest read. The request fails if the resource changed since that @@ -2878,10 +2878,10 @@ public Response cancelTelephonyCallJobWithResponse(String agentName, /** * Create an outbound telephony campaign - * + * * Creates a draft outbound campaign. Recipients are imported and validated before the campaign can be published. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -2900,9 +2900,9 @@ public Response cancelTelephonyCallJobWithResponse(String agentName,
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -2942,14 +2942,14 @@ public Response cancelTelephonyCallJobWithResponse(String agentName,
      * }
      * }
      * 
- * + * *

Response Headers

* * * * *
Response Headers
NameTypeDescription
LocationStringThe Location response header.
- * + * * @param agentName The agentName parameter. * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2971,10 +2971,10 @@ public Mono> createTelephonyCampaignWithResponseAsync(Strin /** * Create an outbound telephony campaign - * + * * Creates a draft outbound campaign. Recipients are imported and validated before the campaign can be published. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -2993,9 +2993,9 @@ public Mono> createTelephonyCampaignWithResponseAsync(Strin
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3035,14 +3035,14 @@ public Mono> createTelephonyCampaignWithResponseAsync(Strin
      * }
      * }
      * 
- * + * *

Response Headers

* * * * *
Response Headers
NameTypeDescription
LocationStringThe Location response header.
- * + * * @param agentName The agentName parameter. * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -3063,10 +3063,10 @@ public Response createTelephonyCampaignWithResponse(String agentName /** * Get an outbound telephony campaign - * + * * Retrieves an outbound campaign, including configuration, execution state, and aggregate call-job counts. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3106,7 +3106,7 @@ public Response createTelephonyCampaignWithResponse(String agentName
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -3115,7 +3115,7 @@ public Response createTelephonyCampaignWithResponse(String agentName * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an outbound telephony campaign - * + * * Retrieves an outbound campaign, including configuration, execution state, and aggregate call-job counts along * with {@link Response} on successful completion of {@link Mono}. */ @@ -3129,10 +3129,10 @@ public Mono> getTelephonyCampaignWithResponseAsync(String a /** * Get an outbound telephony campaign - * + * * Retrieves an outbound campaign, including configuration, execution state, and aggregate call-job counts. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3172,7 +3172,7 @@ public Mono> getTelephonyCampaignWithResponseAsync(String a
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -3181,7 +3181,7 @@ public Mono> getTelephonyCampaignWithResponseAsync(String a * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an outbound telephony campaign - * + * * Retrieves an outbound campaign, including configuration, execution state, and aggregate call-job counts along * with {@link Response}. */ @@ -3195,10 +3195,10 @@ public Response getTelephonyCampaignWithResponse(String agentName, S /** * Import outbound telephony campaign recipients - * + * * Starts an asynchronous import of campaign recipients from a Dataset CSV, JSON array, or JSONL file. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -3220,9 +3220,9 @@ public Response getTelephonyCampaignWithResponse(String agentName, S
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3236,7 +3236,7 @@ public Response getTelephonyCampaignWithResponse(String agentName, S
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param idempotencyKey The idempotencyKey parameter. @@ -3261,10 +3261,10 @@ private Mono> importTelephonyCampaignRecipientsWithResponse /** * Import outbound telephony campaign recipients - * + * * Starts an asynchronous import of campaign recipients from a Dataset CSV, JSON array, or JSONL file. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -3286,9 +3286,9 @@ private Mono> importTelephonyCampaignRecipientsWithResponse
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3302,7 +3302,7 @@ private Mono> importTelephonyCampaignRecipientsWithResponse
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param idempotencyKey The idempotencyKey parameter. @@ -3326,10 +3326,10 @@ private Response importTelephonyCampaignRecipientsWithResponse(Strin /** * Import outbound telephony campaign recipients - * + * * Starts an asynchronous import of campaign recipients from a Dataset CSV, JSON array, or JSONL file. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -3351,9 +3351,9 @@ private Response importTelephonyCampaignRecipientsWithResponse(Strin
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3367,7 +3367,7 @@ private Response importTelephonyCampaignRecipientsWithResponse(Strin
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param idempotencyKey The idempotencyKey parameter. @@ -3400,10 +3400,10 @@ private Response importTelephonyCampaignRecipientsWithResponse(Strin /** * Import outbound telephony campaign recipients - * + * * Starts an asynchronous import of campaign recipients from a Dataset CSV, JSON array, or JSONL file. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -3425,9 +3425,9 @@ private Response importTelephonyCampaignRecipientsWithResponse(Strin
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3441,7 +3441,7 @@ private Response importTelephonyCampaignRecipientsWithResponse(Strin
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param idempotencyKey The idempotencyKey parameter. @@ -3473,10 +3473,10 @@ public SyncPoller beginImportTel /** * Import outbound telephony campaign recipients - * + * * Starts an asynchronous import of campaign recipients from a Dataset CSV, JSON array, or JSONL file. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -3498,9 +3498,9 @@ public SyncPoller beginImportTel
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3514,7 +3514,7 @@ public SyncPoller beginImportTel
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param idempotencyKey The idempotencyKey parameter. @@ -3545,10 +3545,10 @@ public PollerFlux beginImportTelephonyCampaignRecipients /** * Import outbound telephony campaign recipients - * + * * Starts an asynchronous import of campaign recipients from a Dataset CSV, JSON array, or JSONL file. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -3570,9 +3570,9 @@ public PollerFlux beginImportTelephonyCampaignRecipients
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3586,7 +3586,7 @@ public PollerFlux beginImportTelephonyCampaignRecipients
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param idempotencyKey The idempotencyKey parameter. @@ -3617,10 +3617,10 @@ public SyncPoller beginImportTelephonyCampaignRecipients /** * Get an outbound telephony campaign recipient import - * + * * Retrieves the durable status and counters for a campaign recipient import. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3653,7 +3653,7 @@ public SyncPoller beginImportTelephonyCampaignRecipients
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param importId The importId parameter. @@ -3663,7 +3663,7 @@ public SyncPoller beginImportTelephonyCampaignRecipients * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an outbound telephony campaign recipient import - * + * * Retrieves the durable status and counters for a campaign recipient import along with {@link Response} on * successful completion of {@link Mono}. */ @@ -3678,10 +3678,10 @@ public Mono> getTelephonyCampaignRecipientImportWithRespons /** * Get an outbound telephony campaign recipient import - * + * * Retrieves the durable status and counters for a campaign recipient import. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3714,7 +3714,7 @@ public Mono> getTelephonyCampaignRecipientImportWithRespons
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param importId The importId parameter. @@ -3724,7 +3724,7 @@ public Mono> getTelephonyCampaignRecipientImportWithRespons * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an outbound telephony campaign recipient import - * + * * Retrieves the durable status and counters for a campaign recipient import along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3737,10 +3737,10 @@ public Response getTelephonyCampaignRecipientImportWithResponse(Stri /** * Validate an outbound telephony campaign - * + * * Starts asynchronous validation of the current campaign draft and imported recipient snapshot. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3754,7 +3754,7 @@ public Response getTelephonyCampaignRecipientImportWithResponse(Stri
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -3775,10 +3775,10 @@ private Mono> validateTelephonyCampaignWithResponseAsync(St /** * Validate an outbound telephony campaign - * + * * Starts asynchronous validation of the current campaign draft and imported recipient snapshot. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3792,7 +3792,7 @@ private Mono> validateTelephonyCampaignWithResponseAsync(St
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -3812,10 +3812,10 @@ private Response validateTelephonyCampaignWithResponse(String agentN /** * Validate an outbound telephony campaign - * + * * Starts asynchronous validation of the current campaign draft and imported recipient snapshot. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3829,7 +3829,7 @@ private Response validateTelephonyCampaignWithResponse(String agentN
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -3858,10 +3858,10 @@ public PollerFlux beginValidateT /** * Validate an outbound telephony campaign - * + * * Starts asynchronous validation of the current campaign draft and imported recipient snapshot. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3875,7 +3875,7 @@ public PollerFlux beginValidateT
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -3904,10 +3904,10 @@ public PollerFlux beginValidateT /** * Validate an outbound telephony campaign - * + * * Starts asynchronous validation of the current campaign draft and imported recipient snapshot. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3921,7 +3921,7 @@ public PollerFlux beginValidateT
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -3949,10 +3949,10 @@ public PollerFlux beginValidateTelephonyCampaignAsync(St /** * Validate an outbound telephony campaign - * + * * Starts asynchronous validation of the current campaign draft and imported recipient snapshot. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -3966,7 +3966,7 @@ public PollerFlux beginValidateTelephonyCampaignAsync(St
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -3994,10 +3994,10 @@ public SyncPoller beginValidateTelephonyCampaign(String /** * Publish an outbound telephony campaign - * + * * Permanently locks the validated campaign draft and starts asynchronous call-job materialization. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -4005,9 +4005,9 @@ public SyncPoller beginValidateTelephonyCampaign(String
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -4021,7 +4021,7 @@ public SyncPoller beginValidateTelephonyCampaign(String
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param body The body parameter. @@ -4045,10 +4045,10 @@ private Mono> publishTelephonyCampaignWithResponseAsync(Str /** * Publish an outbound telephony campaign - * + * * Permanently locks the validated campaign draft and starts asynchronous call-job materialization. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -4056,9 +4056,9 @@ private Mono> publishTelephonyCampaignWithResponseAsync(Str
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -4072,7 +4072,7 @@ private Mono> publishTelephonyCampaignWithResponseAsync(Str
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param body The body parameter. @@ -4094,10 +4094,10 @@ private Response publishTelephonyCampaignWithResponse(String agentNa /** * Publish an outbound telephony campaign - * + * * Permanently locks the validated campaign draft and starts asynchronous call-job materialization. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -4105,9 +4105,9 @@ private Response publishTelephonyCampaignWithResponse(String agentNa
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -4121,7 +4121,7 @@ private Response publishTelephonyCampaignWithResponse(String agentNa
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param body The body parameter. @@ -4151,10 +4151,10 @@ public PollerFlux beginPublishTe /** * Publish an outbound telephony campaign - * + * * Permanently locks the validated campaign draft and starts asynchronous call-job materialization. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -4162,9 +4162,9 @@ public PollerFlux beginPublishTe
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -4178,7 +4178,7 @@ public PollerFlux beginPublishTe
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param body The body parameter. @@ -4208,10 +4208,10 @@ public SyncPoller beginPublishTe /** * Publish an outbound telephony campaign - * + * * Permanently locks the validated campaign draft and starts asynchronous call-job materialization. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -4219,9 +4219,9 @@ public SyncPoller beginPublishTe
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -4235,7 +4235,7 @@ public SyncPoller beginPublishTe
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param body The body parameter. @@ -4264,10 +4264,10 @@ public PollerFlux beginPublishTelephonyCampaignAsync(Str /** * Publish an outbound telephony campaign - * + * * Permanently locks the validated campaign draft and starts asynchronous call-job materialization. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -4275,9 +4275,9 @@ public PollerFlux beginPublishTelephonyCampaignAsync(Str
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -4291,7 +4291,7 @@ public PollerFlux beginPublishTelephonyCampaignAsync(Str
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param body The body parameter. @@ -4320,10 +4320,10 @@ public SyncPoller beginPublishTelephonyCampaign(String a /** * Pause an outbound telephony campaign - * + * * Pauses dispatch of call jobs owned by a published campaign. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -4363,7 +4363,7 @@ public SyncPoller beginPublishTelephonyCampaign(String a
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4384,10 +4384,10 @@ public Mono> pauseTelephonyCampaignWithResponseAsync(String /** * Pause an outbound telephony campaign - * + * * Pauses dispatch of call jobs owned by a published campaign. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -4427,7 +4427,7 @@ public Mono> pauseTelephonyCampaignWithResponseAsync(String
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4447,10 +4447,10 @@ public Response pauseTelephonyCampaignWithResponse(String agentName, /** * Resume an outbound telephony campaign - * + * * Resumes dispatch of call jobs owned by a paused campaign. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -4490,7 +4490,7 @@ public Response pauseTelephonyCampaignWithResponse(String agentName,
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4511,10 +4511,10 @@ public Mono> resumeTelephonyCampaignWithResponseAsync(Strin /** * Resume an outbound telephony campaign - * + * * Resumes dispatch of call jobs owned by a paused campaign. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -4554,7 +4554,7 @@ public Mono> resumeTelephonyCampaignWithResponseAsync(Strin
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4574,10 +4574,10 @@ public Response resumeTelephonyCampaignWithResponse(String agentName /** * Cancel an outbound telephony campaign - * + * * Cancels a campaign and prevents any further call-job dispatch. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -4617,7 +4617,7 @@ public Response resumeTelephonyCampaignWithResponse(String agentName
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4638,10 +4638,10 @@ public Mono> cancelTelephonyCampaignWithResponseAsync(Strin /** * Cancel an outbound telephony campaign - * + * * Cancels a campaign and prevents any further call-job dispatch. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -4681,7 +4681,7 @@ public Mono> cancelTelephonyCampaignWithResponseAsync(Strin
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param campaignId The campaignId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4701,10 +4701,10 @@ public Response cancelTelephonyCampaignWithResponse(String agentName /** * Get an outbound telephony operation - * + * * Retrieves an asynchronous outbound campaign operation. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -4734,7 +4734,7 @@ public Response cancelTelephonyCampaignWithResponse(String agentName
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param operationId The operationId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4743,7 +4743,7 @@ public Response cancelTelephonyCampaignWithResponse(String agentName * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an outbound telephony operation - * + * * Retrieves an asynchronous outbound campaign operation along with {@link Response} on successful completion of * {@link Mono}. */ @@ -4757,10 +4757,10 @@ public Mono> getTelephonyOperationWithResponseAsync(String /** * Get an outbound telephony operation - * + * * Retrieves an asynchronous outbound campaign operation. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -4790,7 +4790,7 @@ public Mono> getTelephonyOperationWithResponseAsync(String
      * }
      * }
      * 
- * + * * @param agentName The agentName parameter. * @param operationId The operationId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4799,7 +4799,7 @@ public Mono> getTelephonyOperationWithResponseAsync(String * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an outbound telephony operation - * + * * Retrieves an asynchronous outbound campaign operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/OperationLocationPollingStrategy.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/OperationLocationPollingStrategy.java index f07bb0e69d2a9..77fe567637ca3 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/OperationLocationPollingStrategy.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/OperationLocationPollingStrategy.java @@ -57,6 +57,7 @@ public OperationLocationPollingStrategy(PollingStrategyOptions pollingStrategyOp */ public OperationLocationPollingStrategy(PollingStrategyOptions pollingStrategyOptions, String propertyName) { super(PollingUtils.OPERATION_LOCATION_HEADER, pollingStrategyOptions); + this.pollingStrategyOptions = pollingStrategyOptions; this.propertyName = propertyName; this.endpoint = pollingStrategyOptions.getEndpoint(); this.serializer = pollingStrategyOptions.getSerializer() != null @@ -136,8 +137,11 @@ public Mono getResult(PollingContext pollingContext, TypeReference resu } } + private final PollingStrategyOptions pollingStrategyOptions; + @Override public Mono> poll(PollingContext pollingContext, TypeReference pollResponseType) { - return super.poll(pollingContext, pollResponseType).map(AgentsServicePollUtils::remapStatus); + return AgentsServicePollUtils.poll(pollingStrategyOptions, serializer, endpoint, pollingContext, + pollResponseType); } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/SyncOperationLocationPollingStrategy.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/SyncOperationLocationPollingStrategy.java index 53d935775f636..714311e322314 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/SyncOperationLocationPollingStrategy.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/SyncOperationLocationPollingStrategy.java @@ -58,6 +58,7 @@ public SyncOperationLocationPollingStrategy(PollingStrategyOptions pollingStrate */ public SyncOperationLocationPollingStrategy(PollingStrategyOptions pollingStrategyOptions, String propertyName) { super(PollingUtils.OPERATION_LOCATION_HEADER, pollingStrategyOptions); + this.pollingStrategyOptions = pollingStrategyOptions; this.propertyName = propertyName; this.endpoint = pollingStrategyOptions.getEndpoint(); this.serializer = pollingStrategyOptions.getSerializer() != null @@ -128,8 +129,11 @@ public U getResult(PollingContext pollingContext, TypeReference resultType } } + private final PollingStrategyOptions pollingStrategyOptions; + @Override public PollResponse poll(PollingContext pollingContext, TypeReference pollResponseType) { - return AgentsServicePollUtils.remapStatus(super.poll(pollingContext, pollResponseType)); + return AgentsServicePollUtils.pollSync(pollingStrategyOptions, serializer, endpoint, pollingContext, + pollResponseType); } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/ToolboxesImpl.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/ToolboxesImpl.java index db47cf8f94085..26c0754117d48 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/ToolboxesImpl.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/ToolboxesImpl.java @@ -55,7 +55,7 @@ public final class ToolboxesImpl { /** * Initializes an instance of ToolboxesImpl. - * + * * @param client the instance of the service client containing this operation class. */ ToolboxesImpl(AgentsClientImpl client) { @@ -66,7 +66,7 @@ public final class ToolboxesImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AgentsServiceVersion getServiceVersion() { @@ -271,10 +271,10 @@ Response deleteToolboxVersionSync(@HostParam("endpoint") String endpoint, /** * Create a new version of a toolbox - * + * * Creates a new toolbox version, provisioning the toolbox itself if it does not already exist. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -325,9 +325,9 @@ Response deleteToolboxVersionSync(@HostParam("endpoint") String endpoint,
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -382,7 +382,7 @@ Response deleteToolboxVersionSync(@HostParam("endpoint") String endpoint,
      * }
      * }
      * 
- * + * * @param name The name of the toolbox. If the toolbox does not exist, it will be created. * @param createToolboxVersionRequest The createToolboxVersionRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -404,10 +404,10 @@ public Mono> createToolboxVersionWithResponseAsync(String n /** * Create a new version of a toolbox - * + * * Creates a new toolbox version, provisioning the toolbox itself if it does not already exist. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -458,9 +458,9 @@ public Mono> createToolboxVersionWithResponseAsync(String n
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -515,7 +515,7 @@ public Mono> createToolboxVersionWithResponseAsync(String n
      * }
      * }
      * 
- * + * * @param name The name of the toolbox. If the toolbox does not exist, it will be created. * @param createToolboxVersionRequest The createToolboxVersionRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -537,10 +537,10 @@ public Response createToolboxVersionWithResponse(String name, Binary /** * Retrieve a toolbox - * + * * Retrieves the specified toolbox and its current configuration. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -603,7 +603,7 @@ public Response createToolboxVersionWithResponse(String name, Binary
      * }
      * }
      * 
- * + * * @param name The name of the toolbox to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -622,10 +622,10 @@ public Mono> getToolboxWithResponseAsync(String name, Reque /** * Retrieve a toolbox - * + * * Retrieves the specified toolbox and its current configuration. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -688,7 +688,7 @@ public Mono> getToolboxWithResponseAsync(String name, Reque
      * }
      * }
      * 
- * + * * @param name The name of the toolbox to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -706,7 +706,7 @@ public Response getToolboxWithResponse(String name, RequestOptions r /** * List toolboxes - * + * * Returns the toolboxes available in the current project. *

Query Parameters

* @@ -729,7 +729,7 @@ public Response getToolboxWithResponse(String name, RequestOptions r *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -792,7 +792,7 @@ public Response getToolboxWithResponse(String name, RequestOptions r
      * }
      * }
      * 
- * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -813,7 +813,7 @@ private Mono> listToolboxesSinglePageAsync(RequestOpti /** * List toolboxes - * + * * Returns the toolboxes available in the current project. *

Query Parameters

* @@ -836,7 +836,7 @@ private Mono> listToolboxesSinglePageAsync(RequestOpti *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -899,7 +899,7 @@ private Mono> listToolboxesSinglePageAsync(RequestOpti
      * }
      * }
      * 
- * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -914,7 +914,7 @@ public PagedFlux listToolboxesAsync(RequestOptions requestOptions) { /** * List toolboxes - * + * * Returns the toolboxes available in the current project. *

Query Parameters

* @@ -937,7 +937,7 @@ public PagedFlux listToolboxesAsync(RequestOptions requestOptions) { *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1000,7 +1000,7 @@ public PagedFlux listToolboxesAsync(RequestOptions requestOptions) {
      * }
      * }
      * 
- * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -1019,7 +1019,7 @@ private PagedResponse listToolboxesSinglePage(RequestOptions request /** * List toolboxes - * + * * Returns the toolboxes available in the current project. *

Query Parameters

* @@ -1042,7 +1042,7 @@ private PagedResponse listToolboxesSinglePage(RequestOptions request *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1105,7 +1105,7 @@ private PagedResponse listToolboxesSinglePage(RequestOptions request
      * }
      * }
      * 
- * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -1120,7 +1120,7 @@ public PagedIterable listToolboxes(RequestOptions requestOptions) { /** * List toolbox versions - * + * * Returns the available versions for the specified toolbox. *

Query Parameters

* @@ -1143,7 +1143,7 @@ public PagedIterable listToolboxes(RequestOptions requestOptions) { *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1198,7 +1198,7 @@ public PagedIterable listToolboxes(RequestOptions requestOptions) {
      * }
      * }
      * 
- * + * * @param name The name of the toolbox to list versions for. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1221,7 +1221,7 @@ private Mono> listToolboxVersionsSinglePageAsync(Strin /** * List toolbox versions - * + * * Returns the available versions for the specified toolbox. *

Query Parameters

* @@ -1244,7 +1244,7 @@ private Mono> listToolboxVersionsSinglePageAsync(Strin *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1299,7 +1299,7 @@ private Mono> listToolboxVersionsSinglePageAsync(Strin
      * }
      * }
      * 
- * + * * @param name The name of the toolbox to list versions for. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1315,7 +1315,7 @@ public PagedFlux listToolboxVersionsAsync(String name, RequestOption /** * List toolbox versions - * + * * Returns the available versions for the specified toolbox. *

Query Parameters

* @@ -1338,7 +1338,7 @@ public PagedFlux listToolboxVersionsAsync(String name, RequestOption *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1393,7 +1393,7 @@ public PagedFlux listToolboxVersionsAsync(String name, RequestOption
      * }
      * }
      * 
- * + * * @param name The name of the toolbox to list versions for. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1413,7 +1413,7 @@ private PagedResponse listToolboxVersionsSinglePage(String name, Req /** * List toolbox versions - * + * * Returns the available versions for the specified toolbox. *

Query Parameters

* @@ -1436,7 +1436,7 @@ private PagedResponse listToolboxVersionsSinglePage(String name, Req *
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1491,7 +1491,7 @@ private PagedResponse listToolboxVersionsSinglePage(String name, Req
      * }
      * }
      * 
- * + * * @param name The name of the toolbox to list versions for. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1507,10 +1507,10 @@ public PagedIterable listToolboxVersions(String name, RequestOptions /** * Retrieve a specific version of a toolbox - * + * * Retrieves the specified version of a toolbox by name and version identifier. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1565,7 +1565,7 @@ public PagedIterable listToolboxVersions(String name, RequestOptions
      * }
      * }
      * 
- * + * * @param name The name of the toolbox. * @param version The version identifier to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1585,10 +1585,10 @@ public Mono> getToolboxVersionWithResponseAsync(String name /** * Retrieve a specific version of a toolbox - * + * * Retrieves the specified version of a toolbox by name and version identifier. *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1643,7 +1643,7 @@ public Mono> getToolboxVersionWithResponseAsync(String name
      * }
      * }
      * 
- * + * * @param name The name of the toolbox. * @param version The version identifier to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1663,31 +1663,31 @@ public Response getToolboxVersionWithResponse(String name, String ve /** * Invoke the latest toolbox version through MCP - * + * * Invokes the latest version of the specified toolbox through its MCP endpoint. *

Request Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * *

Response Headers

* * * * *
Response Headers
NameTypeDescription
content-typeStringThe content type of the MCP response body.
- * + * * @param name The name of the toolbox. * @param contentType The content type of the MCP request body. * @param request The MCP request body. @@ -1708,31 +1708,31 @@ public Mono> invokeLatestToolboxMcpWithResponseAsync(String /** * Invoke the latest toolbox version through MCP - * + * * Invokes the latest version of the specified toolbox through its MCP endpoint. *

Request Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * BinaryData
      * }
      * 
- * + * *

Response Headers

* * * * *
Response Headers
NameTypeDescription
content-typeStringThe content type of the MCP response body.
- * + * * @param name The name of the toolbox. * @param contentType The content type of the MCP request body. * @param request The MCP request body. @@ -1753,10 +1753,10 @@ public Response invokeLatestToolboxMcpWithResponse(String name, Stri /** * Update a toolbox to point to a specific version - * + * * Updates the toolbox's default version pointer to the specified version. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -1764,9 +1764,9 @@ public Response invokeLatestToolboxMcpWithResponse(String name, Stri
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1829,7 +1829,7 @@ public Response invokeLatestToolboxMcpWithResponse(String name, Stri
      * }
      * }
      * 
- * + * * @param name The name of the toolbox to update. * @param updateToolboxRequest The updateToolboxRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1852,10 +1852,10 @@ public Mono> updateToolboxWithResponseAsync(String name, Bi /** * Update a toolbox to point to a specific version - * + * * Updates the toolbox's default version pointer to the specified version. *

Request Body Schema

- * + * *
      * {@code
      * {
@@ -1863,9 +1863,9 @@ public Mono> updateToolboxWithResponseAsync(String name, Bi
      * }
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * {
@@ -1928,7 +1928,7 @@ public Mono> updateToolboxWithResponseAsync(String name, Bi
      * }
      * }
      * 
- * + * * @param name The name of the toolbox to update. * @param updateToolboxRequest The updateToolboxRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1949,9 +1949,9 @@ public Response updateToolboxWithResponse(String name, BinaryData up /** * Delete a toolbox - * + * * Removes the specified toolbox along with all of its versions. - * + * * @param name The name of the toolbox to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1968,9 +1968,9 @@ public Mono> deleteToolboxWithResponseAsync(String name, RequestO /** * Delete a toolbox - * + * * Removes the specified toolbox along with all of its versions. - * + * * @param name The name of the toolbox to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1987,9 +1987,9 @@ public Response deleteToolboxWithResponse(String name, RequestOptions requ /** * Delete a specific version of a toolbox - * + * * Removes the specified version of a toolbox. - * + * * @param name The name of the toolbox. * @param version The version identifier to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2008,9 +2008,9 @@ public Mono> deleteToolboxVersionWithResponseAsync(String name, S /** * Delete a specific version of a toolbox - * + * * Removes the specified version of a toolbox. - * + * * @param name The name of the toolbox. * @param version The version identifier to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BrowserAutomationToolConnectionParameters.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BrowserAutomationToolConnectionParameters.java index 2ec768f9d3bf6..729740a0a9351 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BrowserAutomationToolConnectionParameters.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BrowserAutomationToolConnectionParameters.java @@ -3,6 +3,7 @@ // Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.ai.agents.models; +import com.azure.ai.agents.implementation.utils.Beta; import com.azure.core.annotation.Generated; import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; @@ -15,6 +16,7 @@ * Definition of input parameters for the connection used by the Browser Automation Tool. */ @Immutable +@Beta(warningText = "Preview API. preview_tool") public final class BrowserAutomationToolConnectionParameters implements JsonSerializable { diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BrowserAutomationToolParameters.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BrowserAutomationToolParameters.java index 72280f17ef86d..9f0bb642fb58f 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BrowserAutomationToolParameters.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BrowserAutomationToolParameters.java @@ -3,6 +3,7 @@ // Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.ai.agents.models; +import com.azure.ai.agents.implementation.utils.Beta; import com.azure.core.annotation.Generated; import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; @@ -15,6 +16,7 @@ * Definition of input parameters for the Browser Automation Tool. */ @Immutable +@Beta(warningText = "Preview API. preview_tool") public final class BrowserAutomationToolParameters implements JsonSerializable { /* diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/PromptAgentDefinition.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/PromptAgentDefinition.java index 29cf7ec1bfb95..d1d9a7617112f 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/PromptAgentDefinition.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/PromptAgentDefinition.java @@ -279,11 +279,9 @@ public PromptAgentDefinition setRaiConfig(RaiConfig raiConfig) { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("rai_config", getRaiConfig()); - jsonWriter.writeJsonField("harness", this.harness); jsonWriter.writeStringField("model", this.model); jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); jsonWriter.writeStringField("instructions", this.instructions); - jsonWriter.writeArrayField("skills", this.skills, (writer, element) -> writer.writeJson(element)); jsonWriter.writeNumberField("temperature", this.temperature); jsonWriter.writeNumberField("top_p", this.topP); // AI Tooling: openai-java de-dup @@ -299,6 +297,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("text", this.text); jsonWriter.writeMapField("structured_inputs", this.structuredInputs, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("harness", this.harness); + jsonWriter.writeArrayField("skills", this.skills, (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -314,11 +314,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { public static PromptAgentDefinition fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { RaiConfig raiConfig = null; - AgentHarness harness = null; String model = null; AgentKind kind = AgentKind.PROMPT; String instructions = null; - List skills = null; Double temperature = null; Double topP = null; // AI Tooling: openai-java de-dup @@ -327,21 +325,19 @@ public static PromptAgentDefinition fromJson(JsonReader jsonReader) throws IOExc BinaryData toolChoice = null; PromptAgentDefinitionTextOptions text = null; Map structuredInputs = null; + AgentHarness harness = null; + List skills = null; while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("rai_config".equals(fieldName)) { raiConfig = RaiConfig.fromJson(reader); - } else if ("harness".equals(fieldName)) { - harness = AgentHarness.fromJson(reader); } else if ("model".equals(fieldName)) { model = reader.getString(); } else if ("kind".equals(fieldName)) { kind = AgentKind.fromString(reader.getString()); } else if ("instructions".equals(fieldName)) { instructions = reader.getString(); - } else if ("skills".equals(fieldName)) { - skills = reader.readArray(reader1 -> SkillReference.fromJson(reader1)); } else if ("temperature".equals(fieldName)) { temperature = reader.getNullable(JsonReader::getDouble); } else if ("top_p".equals(fieldName)) { @@ -360,16 +356,18 @@ public static PromptAgentDefinition fromJson(JsonReader jsonReader) throws IOExc text = PromptAgentDefinitionTextOptions.fromJson(reader); } else if ("structured_inputs".equals(fieldName)) { structuredInputs = reader.readMap(reader1 -> StructuredInputDefinition.fromJson(reader1)); + } else if ("harness".equals(fieldName)) { + harness = AgentHarness.fromJson(reader); + } else if ("skills".equals(fieldName)) { + skills = reader.readArray(reader1 -> SkillReference.fromJson(reader1)); } else { reader.skipChildren(); } } PromptAgentDefinition deserializedPromptAgentDefinition = new PromptAgentDefinition(model); deserializedPromptAgentDefinition.setRaiConfig(raiConfig); - deserializedPromptAgentDefinition.harness = harness; deserializedPromptAgentDefinition.kind = kind; deserializedPromptAgentDefinition.instructions = instructions; - deserializedPromptAgentDefinition.skills = skills; deserializedPromptAgentDefinition.temperature = temperature; deserializedPromptAgentDefinition.topP = topP; deserializedPromptAgentDefinition.reasoning = reasoning; @@ -377,6 +375,8 @@ public static PromptAgentDefinition fromJson(JsonReader jsonReader) throws IOExc deserializedPromptAgentDefinition.toolChoice = toolChoice; deserializedPromptAgentDefinition.text = text; deserializedPromptAgentDefinition.structuredInputs = structuredInputs; + deserializedPromptAgentDefinition.harness = harness; + deserializedPromptAgentDefinition.skills = skills; return deserializedPromptAgentDefinition; }); } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/RealtimeConversationItemFunctionCall.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/RealtimeConversationItemFunctionCall.java index f6d6f6505dfc5..9cb32285f264e 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/RealtimeConversationItemFunctionCall.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/RealtimeConversationItemFunctionCall.java @@ -131,19 +131,6 @@ public RealtimeConversationItemObject getObject() { return this.object; } - /** - * Set the object property: Identifier for the API object being returned - always `realtime.item`. Optional when - * creating a new item. - * - * @param object the object value to set. - * @return the RealtimeConversationItemFunctionCall object itself. - */ - @Generated - public RealtimeConversationItemFunctionCall setObject(RealtimeConversationItemObject object) { - this.object = object; - return this; - } - /** * Get the status property: The status of the item. Has no effect on the conversation. * @@ -304,4 +291,17 @@ public static RealtimeConversationItemFunctionCall fromJson(JsonReader jsonReade return deserializedRealtimeConversationItemFunctionCall; }); } + + /** + * Set the object property: Identifier for the API object being returned - always `realtime.item`. Optional when + * creating a new item. + * + * @param object the object value to set. + * @return the RealtimeConversationItemFunctionCall object itself. + */ + @Generated + public RealtimeConversationItemFunctionCall setObject(RealtimeConversationItemObject object) { + this.object = object; + return this; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/RealtimeConversationItemFunctionCallOutput.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/RealtimeConversationItemFunctionCallOutput.java index 66d4a72a6c7de..8e05b35b6987c 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/RealtimeConversationItemFunctionCallOutput.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/RealtimeConversationItemFunctionCallOutput.java @@ -131,19 +131,6 @@ public RealtimeConversationItemObject getObject() { return this.object; } - /** - * Set the object property: Identifier for the API object being returned - always `realtime.item`. Optional when - * creating a new item. - * - * @param object the object value to set. - * @return the RealtimeConversationItemFunctionCallOutput object itself. - */ - @Generated - public RealtimeConversationItemFunctionCallOutput setObject(RealtimeConversationItemObject object) { - this.object = object; - return this; - } - /** * Get the status property: The status of the item. Has no effect on the conversation. * @@ -307,4 +294,17 @@ public static RealtimeConversationItemFunctionCallOutput fromJson(JsonReader jso return deserializedRealtimeConversationItemFunctionCallOutput; }); } + + /** + * Set the object property: Identifier for the API object being returned - always `realtime.item`. Optional when + * creating a new item. + * + * @param object the object value to set. + * @return the RealtimeConversationItemFunctionCallOutput object itself. + */ + @Generated + public RealtimeConversationItemFunctionCallOutput setObject(RealtimeConversationItemObject object) { + this.object = object; + return this; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/RealtimeSessionCreateRequestGA.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/RealtimeSessionCreateRequestGA.java index 5c393d66c3751..64fddd0741e96 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/RealtimeSessionCreateRequestGA.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/RealtimeSessionCreateRequestGA.java @@ -462,18 +462,6 @@ public ResponsePrompt getPrompt() { return this.prompt; } - /** - * Set the prompt property: The prompt property. - * - * @param prompt the prompt value to set. - * @return the RealtimeSessionCreateRequestGA object itself. - */ - @Generated - public RealtimeSessionCreateRequestGA setPrompt(ResponsePrompt prompt) { - this.prompt = prompt; - return this; - } - /** * {@inheritDoc} */ @@ -594,4 +582,16 @@ public static RealtimeSessionCreateRequestGA fromJson(JsonReader jsonReader) thr return deserializedRealtimeSessionCreateRequestGA; }); } + + /** + * Set the prompt property: The prompt property. + * + * @param prompt the prompt value to set. + * @return the RealtimeSessionCreateRequestGA object itself. + */ + @Generated + public RealtimeSessionCreateRequestGA setPrompt(ResponsePrompt prompt) { + this.prompt = prompt; + return this; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/SessionAffinityRequestMode.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/SessionAffinityRequestMode.java index 033e94cb2b9c0..e01f623113d15 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/SessionAffinityRequestMode.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/SessionAffinityRequestMode.java @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. + package com.azure.ai.agents.models; import com.azure.ai.agents.implementation.utils.Beta; @@ -10,11 +11,11 @@ */ @Beta(warningText = "Preview API. ModelRouterControls=V1Preview") public enum SessionAffinityRequestMode { - /** * Attempts to reuse the model associated with the selected conversation identifier. */ STICKY("sticky"), + /** * Disables affinity state lookup and update for this request. */ @@ -31,7 +32,7 @@ public enum SessionAffinityRequestMode { /** * Parses a serialized value to a SessionAffinityRequestMode instance. - * + * * @param value the serialized value to parse. * @return the parsed SessionAffinityRequestMode object, or null if unable to parse. */ diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/ToolboxToolType.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/ToolboxToolType.java index 62d96ad142cce..0144aada95fb3 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/ToolboxToolType.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/ToolboxToolType.java @@ -99,7 +99,7 @@ public enum ToolboxToolType { /** * Parses a serialized value to a ToolboxToolType instance. - * + * * @param value the serialized value to parse. * @return the parsed ToolboxToolType object, or null if unable to parse. */ diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/VoiceAgentAnimationOutputType.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/VoiceAgentAnimationOutputType.java index 895957f2d81c5..b014fea6fdb43 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/VoiceAgentAnimationOutputType.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/VoiceAgentAnimationOutputType.java @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. + package com.azure.ai.agents.models; import com.azure.ai.agents.implementation.utils.Beta; @@ -10,11 +11,11 @@ */ @Beta(warningText = "Preview API. VoiceAgents=V1Preview") public enum VoiceAgentAnimationOutputType { - /** * Enum value blendshapes. */ BLENDSHAPES("blendshapes"), + /** * Enum value viseme_id. */ @@ -31,7 +32,7 @@ public enum VoiceAgentAnimationOutputType { /** * Parses a serialized value to a VoiceAgentAnimationOutputType instance. - * + * * @param value the serialized value to parse. * @return the parsed VoiceAgentAnimationOutputType object, or null if unable to parse. */ diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/VoiceAgentDefinition.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/VoiceAgentDefinition.java index b1852dce0f277..ba5a7bf8f60db 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/VoiceAgentDefinition.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/VoiceAgentDefinition.java @@ -44,16 +44,6 @@ public final class VoiceAgentDefinition extends AgentDefinition { @Generated private String model; - /* - * The engine that owns conversation handling for this voice agent. Exactly one of this property and the - * model-backed configuration (`model_type` with `model`) must be provided. When this property is provided, - * `model_type`, `model`, `instructions`, `tools`, and `tool_choice` must be omitted, and `greeting.tool_choice` - * cannot be `required`, because the engine owns the conversation logic. The initial implementation supports a - * hosted-agent engine. - */ - @Generated - private VoiceConversationEngine conversationEngine; - /* * A system (or developer) message inserted into the model's context. Supports template substitution via * `structured_inputs`, rendered per session before the live session starts. @@ -135,13 +125,6 @@ public final class VoiceAgentDefinition extends AgentDefinition { @Generated private Map structuredInputs; - /* - * Optional configuration for sibling Foundry text agents that this voice agent may consult as background - * specialists. - */ - @Generated - private VoiceAgentSubagentConfig subagentConfig; - /* * Whether conversations with this agent are persisted. A single, all-or-nothing persistence switch that defaults to * `false` (privacy-safe: off by default). When `true`, Foundry persists the full conversation — the @@ -154,13 +137,6 @@ public final class VoiceAgentDefinition extends AgentDefinition { @Generated private Boolean store; - /** - * Creates an instance of VoiceAgentDefinition class. - */ - @Generated - public VoiceAgentDefinition() { - } - /** * Get the kind property: The kind property. * @@ -184,20 +160,6 @@ public VoiceModelType getModelType() { return this.modelType; } - /** - * Set the modelType property: How the model backing this voice agent is served. Required with `model` for a - * model-backed voice agent and omitted when `conversation_engine` is provided. This is independent of the - * architecture (realtime or cascaded), which the service derives from the selected model. - * - * @param modelType the modelType value to set. - * @return the VoiceAgentDefinition object itself. - */ - @Generated - public VoiceAgentDefinition setModelType(VoiceModelType modelType) { - this.modelType = modelType; - return this; - } - /** * Get the model property: The model to use for this agent. Required with `model_type` for a model-backed voice * agent and omitted when `conversation_engine` is provided. The model must support realtime or cascaded voice. @@ -209,49 +171,6 @@ public String getModel() { return this.model; } - /** - * Set the model property: The model to use for this agent. Required with `model_type` for a model-backed voice - * agent and omitted when `conversation_engine` is provided. The model must support realtime or cascaded voice. - * - * @param model the model value to set. - * @return the VoiceAgentDefinition object itself. - */ - @Generated - public VoiceAgentDefinition setModel(String model) { - this.model = model; - return this; - } - - /** - * Get the conversationEngine property: The engine that owns conversation handling for this voice agent. Exactly one - * of this property and the model-backed configuration (`model_type` with `model`) must be provided. When this - * property is provided, `model_type`, `model`, `instructions`, `tools`, and `tool_choice` must be omitted, and - * `greeting.tool_choice` cannot be `required`, because the engine owns the conversation logic. The initial - * implementation supports a hosted-agent engine. - * - * @return the conversationEngine value. - */ - @Generated - public VoiceConversationEngine getConversationEngine() { - return this.conversationEngine; - } - - /** - * Set the conversationEngine property: The engine that owns conversation handling for this voice agent. Exactly one - * of this property and the model-backed configuration (`model_type` with `model`) must be provided. When this - * property is provided, `model_type`, `model`, `instructions`, `tools`, and `tool_choice` must be omitted, and - * `greeting.tool_choice` cannot be `required`, because the engine owns the conversation logic. The initial - * implementation supports a hosted-agent engine. - * - * @param conversationEngine the conversationEngine value to set. - * @return the VoiceAgentDefinition object itself. - */ - @Generated - public VoiceAgentDefinition setConversationEngine(VoiceConversationEngine conversationEngine) { - this.conversationEngine = conversationEngine; - return this; - } - /** * Get the instructions property: A system (or developer) message inserted into the model's context. Supports * template substitution via `structured_inputs`, rendered per session before the live session starts. @@ -544,30 +463,6 @@ public VoiceAgentDefinition setStructuredInputs(Map { diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/VoiceResponseBase.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/VoiceResponseBase.java index 2812995203ab3..c399adcb6ff72 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/VoiceResponseBase.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/VoiceResponseBase.java @@ -130,18 +130,6 @@ public RealtimeResponseStatus getStatusDetails() { return this.statusDetails; } - /** - * Set the statusDetails property: Additional details about the status. - * - * @param statusDetails the statusDetails value to set. - * @return the VoiceResponseBase object itself. - */ - @Generated - VoiceResponseBase setStatusDetails(RealtimeResponseStatus statusDetails) { - this.statusDetails = statusDetails; - return this; - } - /** * Get the usage property: Usage statistics for the Response, this will correspond to billing. A * Realtime API session will maintain a conversation context and append new @@ -291,4 +279,16 @@ public static VoiceResponseBase fromJson(JsonReader jsonReader) throws IOExcepti return deserializedVoiceResponseBase; }); } + + /** + * Set the statusDetails property: Additional details about the status. + * + * @param statusDetails the statusDetails value to set. + * @return the VoiceResponseBase object itself. + */ + @Generated + VoiceResponseBase setStatusDetails(RealtimeResponseStatus statusDetails) { + this.statusDetails = statusDetails; + return this; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/resources/META-INF/azure-ai-agents_apiview_properties.json b/sdk/ai/azure-ai-agents/src/main/resources/META-INF/azure-ai-agents_apiview_properties.json deleted file mode 100644 index 31419e1d191c9..0000000000000 --- a/sdk/ai/azure-ai-agents/src/main/resources/META-INF/azure-ai-agents_apiview_properties.json +++ /dev/null @@ -1,349 +0,0 @@ -{ - "flavor": "azure", - "CrossLanguageDefinitionId": { - "com.azure.ai.agents.AgentsAsyncClient": "Azure.AI.Projects.Agents", - "com.azure.ai.agents.AgentsAsyncClient.createAgent": "Azure.AI.Projects.Agents.createAgent", - "com.azure.ai.agents.AgentsAsyncClient.createAgentFromManifest": "Azure.AI.Projects.Agents.createAgentFromManifest", - "com.azure.ai.agents.AgentsAsyncClient.createAgentFromManifestWithResponse": "Azure.AI.Projects.Agents.createAgentFromManifest", - "com.azure.ai.agents.AgentsAsyncClient.createAgentVersion": "Azure.AI.Projects.Agents.createAgentVersion", - "com.azure.ai.agents.AgentsAsyncClient.createAgentVersionFromManifest": "Azure.AI.Projects.Agents.createAgentVersionFromManifest", - "com.azure.ai.agents.AgentsAsyncClient.createAgentVersionFromManifestWithResponse": "Azure.AI.Projects.Agents.createAgentVersionFromManifest", - "com.azure.ai.agents.AgentsAsyncClient.createAgentVersionWithResponse": "Azure.AI.Projects.Agents.createAgentVersion", - "com.azure.ai.agents.AgentsAsyncClient.createAgentWithResponse": "Azure.AI.Projects.Agents.createAgent", - "com.azure.ai.agents.AgentsAsyncClient.deleteAgent": "Azure.AI.Projects.Agents.deleteAgent", - "com.azure.ai.agents.AgentsAsyncClient.deleteAgentVersion": "Azure.AI.Projects.Agents.deleteAgentVersion", - "com.azure.ai.agents.AgentsAsyncClient.deleteAgentVersionWithResponse": "Azure.AI.Projects.Agents.deleteAgentVersion", - "com.azure.ai.agents.AgentsAsyncClient.deleteAgentWithResponse": "Azure.AI.Projects.Agents.deleteAgent", - "com.azure.ai.agents.AgentsAsyncClient.getAgent": "Azure.AI.Projects.Agents.getAgent", - "com.azure.ai.agents.AgentsAsyncClient.getAgentVersionDetails": "Azure.AI.Projects.Agents.getAgentVersion", - "com.azure.ai.agents.AgentsAsyncClient.getAgentVersionDetailsWithResponse": "Azure.AI.Projects.Agents.getAgentVersion", - "com.azure.ai.agents.AgentsAsyncClient.getAgentWithResponse": "Azure.AI.Projects.Agents.getAgent", - "com.azure.ai.agents.AgentsAsyncClient.listAgentVersions": "Azure.AI.Projects.Agents.listAgentVersions", - "com.azure.ai.agents.AgentsAsyncClient.listAgents": "Azure.AI.Projects.Agents.listAgents", - "com.azure.ai.agents.AgentsAsyncClient.updateAgent": "Azure.AI.Projects.Agents.updateAgent", - "com.azure.ai.agents.AgentsAsyncClient.updateAgentFromManifest": "Azure.AI.Projects.Agents.updateAgentFromManifest", - "com.azure.ai.agents.AgentsAsyncClient.updateAgentFromManifestWithResponse": "Azure.AI.Projects.Agents.updateAgentFromManifest", - "com.azure.ai.agents.AgentsAsyncClient.updateAgentWithResponse": "Azure.AI.Projects.Agents.updateAgent", - "com.azure.ai.agents.AgentsClient": "Azure.AI.Projects.Agents", - "com.azure.ai.agents.AgentsClient.createAgent": "Azure.AI.Projects.Agents.createAgent", - "com.azure.ai.agents.AgentsClient.createAgentFromManifest": "Azure.AI.Projects.Agents.createAgentFromManifest", - "com.azure.ai.agents.AgentsClient.createAgentFromManifestWithResponse": "Azure.AI.Projects.Agents.createAgentFromManifest", - "com.azure.ai.agents.AgentsClient.createAgentVersion": "Azure.AI.Projects.Agents.createAgentVersion", - "com.azure.ai.agents.AgentsClient.createAgentVersionFromManifest": "Azure.AI.Projects.Agents.createAgentVersionFromManifest", - "com.azure.ai.agents.AgentsClient.createAgentVersionFromManifestWithResponse": "Azure.AI.Projects.Agents.createAgentVersionFromManifest", - "com.azure.ai.agents.AgentsClient.createAgentVersionWithResponse": "Azure.AI.Projects.Agents.createAgentVersion", - "com.azure.ai.agents.AgentsClient.createAgentWithResponse": "Azure.AI.Projects.Agents.createAgent", - "com.azure.ai.agents.AgentsClient.deleteAgent": "Azure.AI.Projects.Agents.deleteAgent", - "com.azure.ai.agents.AgentsClient.deleteAgentVersion": "Azure.AI.Projects.Agents.deleteAgentVersion", - "com.azure.ai.agents.AgentsClient.deleteAgentVersionWithResponse": "Azure.AI.Projects.Agents.deleteAgentVersion", - "com.azure.ai.agents.AgentsClient.deleteAgentWithResponse": "Azure.AI.Projects.Agents.deleteAgent", - "com.azure.ai.agents.AgentsClient.getAgent": "Azure.AI.Projects.Agents.getAgent", - "com.azure.ai.agents.AgentsClient.getAgentVersionDetails": "Azure.AI.Projects.Agents.getAgentVersion", - "com.azure.ai.agents.AgentsClient.getAgentVersionDetailsWithResponse": "Azure.AI.Projects.Agents.getAgentVersion", - "com.azure.ai.agents.AgentsClient.getAgentWithResponse": "Azure.AI.Projects.Agents.getAgent", - "com.azure.ai.agents.AgentsClient.listAgentVersions": "Azure.AI.Projects.Agents.listAgentVersions", - "com.azure.ai.agents.AgentsClient.listAgents": "Azure.AI.Projects.Agents.listAgents", - "com.azure.ai.agents.AgentsClient.updateAgent": "Azure.AI.Projects.Agents.updateAgent", - "com.azure.ai.agents.AgentsClient.updateAgentFromManifest": "Azure.AI.Projects.Agents.updateAgentFromManifest", - "com.azure.ai.agents.AgentsClient.updateAgentFromManifestWithResponse": "Azure.AI.Projects.Agents.updateAgentFromManifest", - "com.azure.ai.agents.AgentsClient.updateAgentWithResponse": "Azure.AI.Projects.Agents.updateAgent", - "com.azure.ai.agents.AgentsClientBuilder": "Azure.AI.Projects", - "com.azure.ai.agents.MemoryStoresAsyncClient": "Azure.AI.Projects.MemoryStores", - "com.azure.ai.agents.MemoryStoresAsyncClient.beginUpdateMemories": "Azure.AI.Projects.MemoryStores.updateMemories", - "com.azure.ai.agents.MemoryStoresAsyncClient.beginUpdateMemoriesWithModel": "Azure.AI.Projects.MemoryStores.updateMemories", - "com.azure.ai.agents.MemoryStoresAsyncClient.createMemoryStore": "Azure.AI.Projects.MemoryStores.createMemoryStore", - "com.azure.ai.agents.MemoryStoresAsyncClient.createMemoryStoreWithResponse": "Azure.AI.Projects.MemoryStores.createMemoryStore", - "com.azure.ai.agents.MemoryStoresAsyncClient.deleteMemoryStore": "Azure.AI.Projects.MemoryStores.deleteMemoryStore", - "com.azure.ai.agents.MemoryStoresAsyncClient.deleteMemoryStoreWithResponse": "Azure.AI.Projects.MemoryStores.deleteMemoryStore", - "com.azure.ai.agents.MemoryStoresAsyncClient.deleteScope": "Azure.AI.Projects.MemoryStores.deleteScope", - "com.azure.ai.agents.MemoryStoresAsyncClient.deleteScopeWithResponse": "Azure.AI.Projects.MemoryStores.deleteScope", - "com.azure.ai.agents.MemoryStoresAsyncClient.getMemoryStore": "Azure.AI.Projects.MemoryStores.getMemoryStore", - "com.azure.ai.agents.MemoryStoresAsyncClient.getMemoryStoreWithResponse": "Azure.AI.Projects.MemoryStores.getMemoryStore", - "com.azure.ai.agents.MemoryStoresAsyncClient.getUpdateResult": "Azure.AI.Projects.MemoryStores.getUpdateResult", - "com.azure.ai.agents.MemoryStoresAsyncClient.getUpdateResultWithResponse": "Azure.AI.Projects.MemoryStores.getUpdateResult", - "com.azure.ai.agents.MemoryStoresAsyncClient.listMemoryStores": "Azure.AI.Projects.MemoryStores.listMemoryStores", - "com.azure.ai.agents.MemoryStoresAsyncClient.searchMemories": "Azure.AI.Projects.MemoryStores.searchMemories", - "com.azure.ai.agents.MemoryStoresAsyncClient.searchMemoriesWithResponse": "Azure.AI.Projects.MemoryStores.searchMemories", - "com.azure.ai.agents.MemoryStoresAsyncClient.updateMemoryStore": "Azure.AI.Projects.MemoryStores.updateMemoryStore", - "com.azure.ai.agents.MemoryStoresAsyncClient.updateMemoryStoreWithResponse": "Azure.AI.Projects.MemoryStores.updateMemoryStore", - "com.azure.ai.agents.MemoryStoresClient": "Azure.AI.Projects.MemoryStores", - "com.azure.ai.agents.MemoryStoresClient.beginUpdateMemories": "Azure.AI.Projects.MemoryStores.updateMemories", - "com.azure.ai.agents.MemoryStoresClient.beginUpdateMemoriesWithModel": "Azure.AI.Projects.MemoryStores.updateMemories", - "com.azure.ai.agents.MemoryStoresClient.createMemoryStore": "Azure.AI.Projects.MemoryStores.createMemoryStore", - "com.azure.ai.agents.MemoryStoresClient.createMemoryStoreWithResponse": "Azure.AI.Projects.MemoryStores.createMemoryStore", - "com.azure.ai.agents.MemoryStoresClient.deleteMemoryStore": "Azure.AI.Projects.MemoryStores.deleteMemoryStore", - "com.azure.ai.agents.MemoryStoresClient.deleteMemoryStoreWithResponse": "Azure.AI.Projects.MemoryStores.deleteMemoryStore", - "com.azure.ai.agents.MemoryStoresClient.deleteScope": "Azure.AI.Projects.MemoryStores.deleteScope", - "com.azure.ai.agents.MemoryStoresClient.deleteScopeWithResponse": "Azure.AI.Projects.MemoryStores.deleteScope", - "com.azure.ai.agents.MemoryStoresClient.getMemoryStore": "Azure.AI.Projects.MemoryStores.getMemoryStore", - "com.azure.ai.agents.MemoryStoresClient.getMemoryStoreWithResponse": "Azure.AI.Projects.MemoryStores.getMemoryStore", - "com.azure.ai.agents.MemoryStoresClient.getUpdateResult": "Azure.AI.Projects.MemoryStores.getUpdateResult", - "com.azure.ai.agents.MemoryStoresClient.getUpdateResultWithResponse": "Azure.AI.Projects.MemoryStores.getUpdateResult", - "com.azure.ai.agents.MemoryStoresClient.listMemoryStores": "Azure.AI.Projects.MemoryStores.listMemoryStores", - "com.azure.ai.agents.MemoryStoresClient.searchMemories": "Azure.AI.Projects.MemoryStores.searchMemories", - "com.azure.ai.agents.MemoryStoresClient.searchMemoriesWithResponse": "Azure.AI.Projects.MemoryStores.searchMemories", - "com.azure.ai.agents.MemoryStoresClient.updateMemoryStore": "Azure.AI.Projects.MemoryStores.updateMemoryStore", - "com.azure.ai.agents.MemoryStoresClient.updateMemoryStoreWithResponse": "Azure.AI.Projects.MemoryStores.updateMemoryStore", - "com.azure.ai.agents.implementation.models.CreateAgentFromManifestRequest": "Azure.AI.Projects.createAgentFromManifest.Request.anonymous", - "com.azure.ai.agents.implementation.models.CreateAgentRequest": "Azure.AI.Projects.createAgent.Request.anonymous", - "com.azure.ai.agents.implementation.models.CreateAgentVersionFromManifestRequest": "Azure.AI.Projects.createAgentVersionFromManifest.Request.anonymous", - "com.azure.ai.agents.implementation.models.CreateAgentVersionRequest": "Azure.AI.Projects.createAgentVersion.Request.anonymous", - "com.azure.ai.agents.implementation.models.CreateMemoryStoreRequest": "Azure.AI.Projects.createMemoryStore.Request.anonymous", - "com.azure.ai.agents.implementation.models.DeleteScopeRequest": "Azure.AI.Projects.deleteScope.Request.anonymous", - "com.azure.ai.agents.implementation.models.EasyInputMessage": "OpenAI.EasyInputMessage", - "com.azure.ai.agents.implementation.models.EasyInputMessageRole": "OpenAI.EasyInputMessage.role.anonymous", - "com.azure.ai.agents.implementation.models.EasyInputMessageStatus": "OpenAI.EasyInputMessage.status.anonymous", - "com.azure.ai.agents.implementation.models.ItemReferenceParam": "OpenAI.ItemReferenceParam", - "com.azure.ai.agents.implementation.models.SearchMemoriesRequest": "Azure.AI.Projects.searchMemories.Request.anonymous", - "com.azure.ai.agents.implementation.models.UpdateAgentFromManifestRequest": "Azure.AI.Projects.updateAgentFromManifest.Request.anonymous", - "com.azure.ai.agents.implementation.models.UpdateAgentRequest": "Azure.AI.Projects.updateAgent.Request.anonymous", - "com.azure.ai.agents.implementation.models.UpdateMemoriesRequest": "Azure.AI.Projects.updateMemories.Request.anonymous", - "com.azure.ai.agents.implementation.models.UpdateMemoryStoreRequest": "Azure.AI.Projects.updateMemoryStore.Request.anonymous", - "com.azure.ai.agents.models.A2APreviewTool": "Azure.AI.Projects.A2APreviewTool", - "com.azure.ai.agents.models.AISearchIndexResource": "Azure.AI.Projects.AISearchIndexResource", - "com.azure.ai.agents.models.AgentDefinition": "Azure.AI.Projects.AgentDefinition", - "com.azure.ai.agents.models.AgentDefinitionFeatureKeys": "Azure.AI.Projects.AgentDefinitionFeatureKeys", - "com.azure.ai.agents.models.AgentDetails": "Azure.AI.Projects.AgentObject", - "com.azure.ai.agents.models.AgentKind": "Azure.AI.Projects.AgentKind", - "com.azure.ai.agents.models.AgentObjectType": "Azure.AI.Projects.AgentObjectType", - "com.azure.ai.agents.models.AgentObjectVersions": "Azure.AI.Projects.AgentObject.versions.anonymous", - "com.azure.ai.agents.models.AgentProtocol": "Azure.AI.Projects.AgentProtocol", - "com.azure.ai.agents.models.AgentReference": "Azure.AI.Projects.AgentReference", - "com.azure.ai.agents.models.AgentVersionDetails": "Azure.AI.Projects.AgentVersionObject", - "com.azure.ai.agents.models.Annotation": "OpenAI.Annotation", - "com.azure.ai.agents.models.AnnotationType": "OpenAI.AnnotationType", - "com.azure.ai.agents.models.ApplyPatchCallOutputStatusParam": "OpenAI.ApplyPatchCallOutputStatusParam", - "com.azure.ai.agents.models.ApplyPatchCallStatusParam": "OpenAI.ApplyPatchCallStatusParam", - "com.azure.ai.agents.models.ApplyPatchCreateFileOperationParam": "OpenAI.ApplyPatchCreateFileOperationParam", - "com.azure.ai.agents.models.ApplyPatchDeleteFileOperationParam": "OpenAI.ApplyPatchDeleteFileOperationParam", - "com.azure.ai.agents.models.ApplyPatchOperationParam": "OpenAI.ApplyPatchOperationParam", - "com.azure.ai.agents.models.ApplyPatchOperationParamType": "OpenAI.ApplyPatchOperationParamType", - "com.azure.ai.agents.models.ApplyPatchToolParam": "OpenAI.ApplyPatchToolParam", - "com.azure.ai.agents.models.ApplyPatchUpdateFileOperationParam": "OpenAI.ApplyPatchUpdateFileOperationParam", - "com.azure.ai.agents.models.ApproximateLocation": "OpenAI.ApproximateLocation", - "com.azure.ai.agents.models.AzureAISearchQueryType": "Azure.AI.Projects.AzureAISearchQueryType", - "com.azure.ai.agents.models.AzureAISearchTool": "Azure.AI.Projects.AzureAISearchTool", - "com.azure.ai.agents.models.AzureAISearchToolResource": "Azure.AI.Projects.AzureAISearchToolResource", - "com.azure.ai.agents.models.AzureFunctionBinding": "Azure.AI.Projects.AzureFunctionBinding", - "com.azure.ai.agents.models.AzureFunctionDefinition": "Azure.AI.Projects.AzureFunctionDefinition", - "com.azure.ai.agents.models.AzureFunctionDefinitionFunction": "Azure.AI.Projects.AzureFunctionDefinition.function.anonymous", - "com.azure.ai.agents.models.AzureFunctionStorageQueue": "Azure.AI.Projects.AzureFunctionStorageQueue", - "com.azure.ai.agents.models.AzureFunctionTool": "Azure.AI.Projects.AzureFunctionTool", - "com.azure.ai.agents.models.BingCustomSearchConfiguration": "Azure.AI.Projects.BingCustomSearchConfiguration", - "com.azure.ai.agents.models.BingCustomSearchPreviewTool": "Azure.AI.Projects.BingCustomSearchPreviewTool", - "com.azure.ai.agents.models.BingCustomSearchToolParameters": "Azure.AI.Projects.BingCustomSearchToolParameters", - "com.azure.ai.agents.models.BingGroundingSearchConfiguration": "Azure.AI.Projects.BingGroundingSearchConfiguration", - "com.azure.ai.agents.models.BingGroundingSearchToolParameters": "Azure.AI.Projects.BingGroundingSearchToolParameters", - "com.azure.ai.agents.models.BingGroundingTool": "Azure.AI.Projects.BingGroundingTool", - "com.azure.ai.agents.models.BrowserAutomationPreviewTool": "Azure.AI.Projects.BrowserAutomationPreviewTool", - "com.azure.ai.agents.models.BrowserAutomationToolConnectionParameters": "Azure.AI.Projects.BrowserAutomationToolConnectionParameters", - "com.azure.ai.agents.models.BrowserAutomationToolParameters": "Azure.AI.Projects.BrowserAutomationToolParameters", - "com.azure.ai.agents.models.CaptureStructuredOutputsTool": "Azure.AI.Projects.CaptureStructuredOutputsTool", - "com.azure.ai.agents.models.ChatSummaryMemoryItem": "Azure.AI.Projects.ChatSummaryMemoryItem", - "com.azure.ai.agents.models.ClickButtonType": "OpenAI.ClickButtonType", - "com.azure.ai.agents.models.ClickParam": "OpenAI.ClickParam", - "com.azure.ai.agents.models.CodeInterpreterContainerAuto": "OpenAI.CodeInterpreterContainerAuto", - "com.azure.ai.agents.models.CodeInterpreterOutputImage": "OpenAI.CodeInterpreterOutputImage", - "com.azure.ai.agents.models.CodeInterpreterOutputLogs": "OpenAI.CodeInterpreterOutputLogs", - "com.azure.ai.agents.models.CodeInterpreterTool": "OpenAI.CodeInterpreterTool", - "com.azure.ai.agents.models.ComparisonFilter": "OpenAI.ComparisonFilter", - "com.azure.ai.agents.models.ComparisonFilterType": "OpenAI.ComparisonFilter.type.anonymous", - "com.azure.ai.agents.models.CompoundFilter": "OpenAI.CompoundFilter", - "com.azure.ai.agents.models.CompoundFilterType": "OpenAI.CompoundFilter.type.anonymous", - "com.azure.ai.agents.models.ComputerAction": "OpenAI.ComputerAction", - "com.azure.ai.agents.models.ComputerActionType": "OpenAI.ComputerActionType", - "com.azure.ai.agents.models.ComputerCallSafetyCheckParam": "OpenAI.ComputerCallSafetyCheckParam", - "com.azure.ai.agents.models.ComputerEnvironment": "OpenAI.ComputerEnvironment", - "com.azure.ai.agents.models.ComputerScreenshotImage": "OpenAI.ComputerScreenshotImage", - "com.azure.ai.agents.models.ComputerUsePreviewTool": "OpenAI.ComputerUsePreviewTool", - "com.azure.ai.agents.models.ContainerAppAgentDefinition": "Azure.AI.Projects.ContainerAppAgentDefinition", - "com.azure.ai.agents.models.ContainerFileCitationBody": "OpenAI.ContainerFileCitationBody", - "com.azure.ai.agents.models.ContainerMemoryLimit": "OpenAI.ContainerMemoryLimit", - "com.azure.ai.agents.models.CustomGrammarFormatParam": "OpenAI.CustomGrammarFormatParam", - "com.azure.ai.agents.models.CustomTextFormatParam": "OpenAI.CustomTextFormatParam", - "com.azure.ai.agents.models.CustomToolParam": "OpenAI.CustomToolParam", - "com.azure.ai.agents.models.CustomToolParamFormat": "OpenAI.CustomToolParamFormat", - "com.azure.ai.agents.models.CustomToolParamFormatType": "OpenAI.CustomToolParamFormatType", - "com.azure.ai.agents.models.DeleteAgentResponse": "Azure.AI.Projects.DeleteAgentResponse", - "com.azure.ai.agents.models.DeleteAgentVersionResponse": "Azure.AI.Projects.DeleteAgentVersionResponse", - "com.azure.ai.agents.models.DeleteMemoryStoreResult": "Azure.AI.Projects.DeleteMemoryStoreResponse", - "com.azure.ai.agents.models.DoubleClickAction": "OpenAI.DoubleClickAction", - "com.azure.ai.agents.models.Drag": "OpenAI.Drag", - "com.azure.ai.agents.models.DragPoint": "OpenAI.DragPoint", - "com.azure.ai.agents.models.FabricDataAgentToolParameters": "Azure.AI.Projects.FabricDataAgentToolParameters", - "com.azure.ai.agents.models.FileCitationBody": "OpenAI.FileCitationBody", - "com.azure.ai.agents.models.FilePath": "OpenAI.FilePath", - "com.azure.ai.agents.models.FileSearchTool": "OpenAI.FileSearchTool", - "com.azure.ai.agents.models.FileSearchToolCallResults": "OpenAI.FileSearchToolCallResults", - "com.azure.ai.agents.models.FoundryFeaturesOptInKeys": "Azure.AI.Projects.FoundryFeaturesOptInKeys", - "com.azure.ai.agents.models.FunctionAndCustomToolCallOutput": "OpenAI.FunctionAndCustomToolCallOutput", - "com.azure.ai.agents.models.FunctionAndCustomToolCallOutputInputFileContent": "OpenAI.FunctionAndCustomToolCallOutputInputFileContent", - "com.azure.ai.agents.models.FunctionAndCustomToolCallOutputInputImageContent": "OpenAI.FunctionAndCustomToolCallOutputInputImageContent", - "com.azure.ai.agents.models.FunctionAndCustomToolCallOutputInputTextContent": "OpenAI.FunctionAndCustomToolCallOutputInputTextContent", - "com.azure.ai.agents.models.FunctionAndCustomToolCallOutputType": "OpenAI.FunctionAndCustomToolCallOutputType", - "com.azure.ai.agents.models.FunctionCallItemStatus": "OpenAI.FunctionCallItemStatus", - "com.azure.ai.agents.models.FunctionShellActionParam": "OpenAI.FunctionShellActionParam", - "com.azure.ai.agents.models.FunctionShellCallItemStatus": "OpenAI.FunctionShellCallItemStatus", - "com.azure.ai.agents.models.FunctionShellCallOutputContentParam": "OpenAI.FunctionShellCallOutputContentParam", - "com.azure.ai.agents.models.FunctionShellCallOutputExitOutcomeParam": "OpenAI.FunctionShellCallOutputExitOutcomeParam", - "com.azure.ai.agents.models.FunctionShellCallOutputOutcomeParam": "OpenAI.FunctionShellCallOutputOutcomeParam", - "com.azure.ai.agents.models.FunctionShellCallOutputOutcomeParamType": "OpenAI.FunctionShellCallOutputOutcomeParamType", - "com.azure.ai.agents.models.FunctionShellCallOutputTimeoutOutcomeParam": "OpenAI.FunctionShellCallOutputTimeoutOutcomeParam", - "com.azure.ai.agents.models.FunctionShellToolParam": "OpenAI.FunctionShellToolParam", - "com.azure.ai.agents.models.FunctionTool": "OpenAI.FunctionTool", - "com.azure.ai.agents.models.GrammarSyntax": "OpenAI.GrammarSyntax1", - "com.azure.ai.agents.models.HostedAgentDefinition": "Azure.AI.Projects.HostedAgentDefinition", - "com.azure.ai.agents.models.HybridSearchOptions": "OpenAI.HybridSearchOptions", - "com.azure.ai.agents.models.ImageDetail": "OpenAI.ImageDetail", - "com.azure.ai.agents.models.ImageDetailLevel": "OpenAI.DetailEnum", - "com.azure.ai.agents.models.ImageGenTool": "OpenAI.ImageGenTool", - "com.azure.ai.agents.models.ImageGenToolBackground": "OpenAI.ImageGenTool.background.anonymous", - "com.azure.ai.agents.models.ImageGenToolInputImageMask": "OpenAI.ImageGenToolInputImageMask", - "com.azure.ai.agents.models.ImageGenToolModel": "OpenAI.ImageGenTool.model.anonymous", - "com.azure.ai.agents.models.ImageGenToolModeration": "OpenAI.ImageGenTool.moderation.anonymous", - "com.azure.ai.agents.models.ImageGenToolOutputFormat": "OpenAI.ImageGenTool.output_format.anonymous", - "com.azure.ai.agents.models.ImageGenToolQuality": "OpenAI.ImageGenTool.quality.anonymous", - "com.azure.ai.agents.models.ImageGenToolSize": "OpenAI.ImageGenTool.size.anonymous", - "com.azure.ai.agents.models.IncludeEnum": "OpenAI.IncludeEnum", - "com.azure.ai.agents.models.InputContent": "OpenAI.InputContent", - "com.azure.ai.agents.models.InputContentInputFileContent": "OpenAI.InputContentInputFileContent", - "com.azure.ai.agents.models.InputContentInputImageContent": "OpenAI.InputContentInputImageContent", - "com.azure.ai.agents.models.InputContentInputTextContent": "OpenAI.InputContentInputTextContent", - "com.azure.ai.agents.models.InputContentType": "OpenAI.InputContentType", - "com.azure.ai.agents.models.InputFidelity": "OpenAI.InputFidelity", - "com.azure.ai.agents.models.InputFileContentParam": "OpenAI.InputFileContentParam", - "com.azure.ai.agents.models.InputImageContentParamAutoParam": "OpenAI.InputImageContentParamAutoParam", - "com.azure.ai.agents.models.InputItem": "OpenAI.InputItem", - "com.azure.ai.agents.models.InputItemApplyPatchToolCallItemParam": "OpenAI.InputItemApplyPatchToolCallItemParam", - "com.azure.ai.agents.models.InputItemApplyPatchToolCallOutputItemParam": "OpenAI.InputItemApplyPatchToolCallOutputItemParam", - "com.azure.ai.agents.models.InputItemCodeInterpreterToolCall": "OpenAI.InputItemCodeInterpreterToolCall", - "com.azure.ai.agents.models.InputItemCompactionSummaryItemParam": "OpenAI.InputItemCompactionSummaryItemParam", - "com.azure.ai.agents.models.InputItemComputerCallOutputItemParam": "OpenAI.InputItemComputerCallOutputItemParam", - "com.azure.ai.agents.models.InputItemComputerToolCall": "OpenAI.InputItemComputerToolCall", - "com.azure.ai.agents.models.InputItemCustomToolCall": "OpenAI.InputItemCustomToolCall", - "com.azure.ai.agents.models.InputItemCustomToolCallOutput": "OpenAI.InputItemCustomToolCallOutput", - "com.azure.ai.agents.models.InputItemFileSearchToolCall": "OpenAI.InputItemFileSearchToolCall", - "com.azure.ai.agents.models.InputItemFunctionCallOutputItemParam": "OpenAI.InputItemFunctionCallOutputItemParam", - "com.azure.ai.agents.models.InputItemFunctionShellCallItemParam": "OpenAI.InputItemFunctionShellCallItemParam", - "com.azure.ai.agents.models.InputItemFunctionShellCallOutputItemParam": "OpenAI.InputItemFunctionShellCallOutputItemParam", - "com.azure.ai.agents.models.InputItemFunctionToolCall": "OpenAI.InputItemFunctionToolCall", - "com.azure.ai.agents.models.InputItemImageGenToolCall": "OpenAI.InputItemImageGenToolCall", - "com.azure.ai.agents.models.InputItemLocalShellToolCall": "OpenAI.InputItemLocalShellToolCall", - "com.azure.ai.agents.models.InputItemLocalShellToolCallOutput": "OpenAI.InputItemLocalShellToolCallOutput", - "com.azure.ai.agents.models.InputItemMcpApprovalRequest": "OpenAI.InputItemMcpApprovalRequest", - "com.azure.ai.agents.models.InputItemMcpApprovalResponse": "OpenAI.InputItemMcpApprovalResponse", - "com.azure.ai.agents.models.InputItemMcpListTools": "OpenAI.InputItemMcpListTools", - "com.azure.ai.agents.models.InputItemMcpToolCall": "OpenAI.InputItemMcpToolCall", - "com.azure.ai.agents.models.InputItemOutputMessage": "OpenAI.InputItemOutputMessage", - "com.azure.ai.agents.models.InputItemReasoningItem": "OpenAI.InputItemReasoningItem", - "com.azure.ai.agents.models.InputItemType": "OpenAI.InputItemType", - "com.azure.ai.agents.models.InputItemWebSearchToolCall": "OpenAI.InputItemWebSearchToolCall", - "com.azure.ai.agents.models.InputTextContentParam": "OpenAI.InputTextContentParam", - "com.azure.ai.agents.models.ItemLocalShellToolCallOutputStatus": "OpenAI.ItemLocalShellToolCallOutput.status.anonymous", - "com.azure.ai.agents.models.KeyPressAction": "OpenAI.KeyPressAction", - "com.azure.ai.agents.models.LocalShellExecAction": "OpenAI.LocalShellExecAction", - "com.azure.ai.agents.models.LocalShellToolParam": "OpenAI.LocalShellToolParam", - "com.azure.ai.agents.models.LogProb": "OpenAI.LogProb", - "com.azure.ai.agents.models.MCPToolConnectorId": "OpenAI.MCPTool.connector_id.anonymous", - "com.azure.ai.agents.models.McpListToolsTool": "OpenAI.MCPListToolsTool", - "com.azure.ai.agents.models.McpListToolsToolAnnotations": "OpenAI.MCPListToolsToolAnnotations", - "com.azure.ai.agents.models.McpListToolsToolInputSchema": "OpenAI.MCPListToolsToolInputSchema", - "com.azure.ai.agents.models.McpTool": "OpenAI.MCPTool", - "com.azure.ai.agents.models.McpToolCallStatus": "OpenAI.MCPToolCallStatus", - "com.azure.ai.agents.models.McpToolFilter": "OpenAI.MCPToolFilter", - "com.azure.ai.agents.models.McpToolRequireApproval": "OpenAI.MCPToolRequireApproval", - "com.azure.ai.agents.models.MemoryItem": "Azure.AI.Projects.MemoryItem", - "com.azure.ai.agents.models.MemoryItemKind": "Azure.AI.Projects.MemoryItemKind", - "com.azure.ai.agents.models.MemoryOperation": "Azure.AI.Projects.MemoryOperation", - "com.azure.ai.agents.models.MemoryOperationKind": "Azure.AI.Projects.MemoryOperationKind", - "com.azure.ai.agents.models.MemorySearchItem": "Azure.AI.Projects.MemorySearchItem", - "com.azure.ai.agents.models.MemorySearchOptions": "Azure.AI.Projects.MemorySearchOptions", - "com.azure.ai.agents.models.MemorySearchPreviewTool": "Azure.AI.Projects.MemorySearchPreviewTool", - "com.azure.ai.agents.models.MemoryStoreDefaultDefinition": "Azure.AI.Projects.MemoryStoreDefaultDefinition", - "com.azure.ai.agents.models.MemoryStoreDefaultOptions": "Azure.AI.Projects.MemoryStoreDefaultOptions", - "com.azure.ai.agents.models.MemoryStoreDefinition": "Azure.AI.Projects.MemoryStoreDefinition", - "com.azure.ai.agents.models.MemoryStoreDeleteScopeResponse": "Azure.AI.Projects.MemoryStoreDeleteScopeResponse", - "com.azure.ai.agents.models.MemoryStoreDetails": "Azure.AI.Projects.MemoryStoreObject", - "com.azure.ai.agents.models.MemoryStoreKind": "Azure.AI.Projects.MemoryStoreKind", - "com.azure.ai.agents.models.MemoryStoreObjectType": "Azure.AI.Projects.MemoryStoreObjectType", - "com.azure.ai.agents.models.MemoryStoreOperationUsage": "Azure.AI.Projects.MemoryStoreOperationUsage", - "com.azure.ai.agents.models.MemoryStoreSearchResponse": "Azure.AI.Projects.MemoryStoreSearchResponse", - "com.azure.ai.agents.models.MemoryStoreUpdateCompletedResult": "Azure.AI.Projects.MemoryStoreUpdateCompletedResult", - "com.azure.ai.agents.models.MemoryStoreUpdateResponse": "Azure.AI.Projects.MemoryStoreUpdateResponse", - "com.azure.ai.agents.models.MemoryStoreUpdateStatus": "Azure.AI.Projects.MemoryStoreUpdateStatus", - "com.azure.ai.agents.models.MicrosoftFabricPreviewTool": "Azure.AI.Projects.MicrosoftFabricPreviewTool", - "com.azure.ai.agents.models.Move": "OpenAI.Move", - "com.azure.ai.agents.models.OpenAIError": "OpenAI.Error", - "com.azure.ai.agents.models.OpenApiAnonymousAuthDetails": "Azure.AI.Projects.OpenApiAnonymousAuthDetails", - "com.azure.ai.agents.models.OpenApiAuthDetails": "Azure.AI.Projects.OpenApiAuthDetails", - "com.azure.ai.agents.models.OpenApiAuthType": "Azure.AI.Projects.OpenApiAuthType", - "com.azure.ai.agents.models.OpenApiFunctionDefinition": "Azure.AI.Projects.OpenApiFunctionDefinition", - "com.azure.ai.agents.models.OpenApiFunctionDefinitionFunction": "Azure.AI.Projects.OpenApiFunctionDefinition.function.anonymous", - "com.azure.ai.agents.models.OpenApiManagedAuthDetails": "Azure.AI.Projects.OpenApiManagedAuthDetails", - "com.azure.ai.agents.models.OpenApiManagedSecurityScheme": "Azure.AI.Projects.OpenApiManagedSecurityScheme", - "com.azure.ai.agents.models.OpenApiProjectConnectionAuthDetails": "Azure.AI.Projects.OpenApiProjectConnectionAuthDetails", - "com.azure.ai.agents.models.OpenApiProjectConnectionSecurityScheme": "Azure.AI.Projects.OpenApiProjectConnectionSecurityScheme", - "com.azure.ai.agents.models.OpenApiTool": "Azure.AI.Projects.OpenApiTool", - "com.azure.ai.agents.models.OutputItemCodeInterpreterToolCallStatus": "OpenAI.OutputItemCodeInterpreterToolCall.status.anonymous", - "com.azure.ai.agents.models.OutputItemComputerToolCallStatus": "OpenAI.OutputItemComputerToolCall.status.anonymous", - "com.azure.ai.agents.models.OutputItemFileSearchToolCallStatus": "OpenAI.OutputItemFileSearchToolCall.status.anonymous", - "com.azure.ai.agents.models.OutputItemFunctionToolCallStatus": "OpenAI.OutputItemFunctionToolCall.status.anonymous", - "com.azure.ai.agents.models.OutputItemImageGenToolCallStatus": "OpenAI.OutputItemImageGenToolCall.status.anonymous", - "com.azure.ai.agents.models.OutputItemLocalShellToolCallStatus": "OpenAI.OutputItemLocalShellToolCall.status.anonymous", - "com.azure.ai.agents.models.OutputItemOutputMessageStatus": "OpenAI.OutputItemOutputMessage.status.anonymous", - "com.azure.ai.agents.models.OutputItemReasoningItemStatus": "OpenAI.OutputItemReasoningItem.status.anonymous", - "com.azure.ai.agents.models.OutputItemWebSearchToolCallStatus": "OpenAI.OutputItemWebSearchToolCall.status.anonymous", - "com.azure.ai.agents.models.OutputMessageContent": "OpenAI.OutputMessageContent", - "com.azure.ai.agents.models.OutputMessageContentOutputTextContent": "OpenAI.OutputMessageContentOutputTextContent", - "com.azure.ai.agents.models.OutputMessageContentRefusalContent": "OpenAI.OutputMessageContentRefusalContent", - "com.azure.ai.agents.models.OutputMessageContentType": "OpenAI.OutputMessageContentType", - "com.azure.ai.agents.models.PageOrder": "Azure.AI.Projects.PageOrder", - "com.azure.ai.agents.models.PromptAgentDefinition": "Azure.AI.Projects.PromptAgentDefinition", - "com.azure.ai.agents.models.PromptAgentDefinitionTextOptions": "Azure.AI.Projects.PromptAgentDefinitionTextOptions", - "com.azure.ai.agents.models.ProtocolVersionRecord": "Azure.AI.Projects.ProtocolVersionRecord", - "com.azure.ai.agents.models.RaiConfig": "Azure.AI.Projects.RaiConfig", - "com.azure.ai.agents.models.RankerVersionType": "OpenAI.RankerVersionType", - "com.azure.ai.agents.models.RankingOptions": "OpenAI.RankingOptions", - "com.azure.ai.agents.models.Reasoning": "OpenAI.Reasoning", - "com.azure.ai.agents.models.ReasoningEffort": "OpenAI.Reasoning.effort.anonymous", - "com.azure.ai.agents.models.ReasoningGenerateSummary": "OpenAI.Reasoning.generate_summary.anonymous", - "com.azure.ai.agents.models.ReasoningSummary": "OpenAI.Reasoning.summary.anonymous", - "com.azure.ai.agents.models.ReasoningTextContent": "OpenAI.ReasoningTextContent", - "com.azure.ai.agents.models.ResponseFormatJsonSchemaInner": "OpenAI.ResponseFormatJsonSchemaSchema", - "com.azure.ai.agents.models.ResponseUsageInputTokensDetails": "OpenAI.ResponseUsageInputTokensDetails", - "com.azure.ai.agents.models.ResponseUsageOutputTokensDetails": "OpenAI.ResponseUsageOutputTokensDetails", - "com.azure.ai.agents.models.Screenshot": "OpenAI.Screenshot", - "com.azure.ai.agents.models.Scroll": "OpenAI.Scroll", - "com.azure.ai.agents.models.SearchContextSize": "OpenAI.SearchContextSize", - "com.azure.ai.agents.models.SharepointGroundingToolParameters": "Azure.AI.Projects.SharepointGroundingToolParameters", - "com.azure.ai.agents.models.SharepointPreviewTool": "Azure.AI.Projects.SharepointPreviewTool", - "com.azure.ai.agents.models.StructuredInputDefinition": "Azure.AI.Projects.StructuredInputDefinition", - "com.azure.ai.agents.models.StructuredOutputDefinition": "Azure.AI.Projects.StructuredOutputDefinition", - "com.azure.ai.agents.models.Summary": "OpenAI.Summary", - "com.azure.ai.agents.models.TextResponseFormatConfiguration": "OpenAI.TextResponseFormatConfiguration", - "com.azure.ai.agents.models.TextResponseFormatConfigurationResponseFormatJsonObject": "OpenAI.TextResponseFormatConfigurationResponseFormatJsonObject", - "com.azure.ai.agents.models.TextResponseFormatConfigurationResponseFormatText": "OpenAI.TextResponseFormatConfigurationResponseFormatText", - "com.azure.ai.agents.models.TextResponseFormatConfigurationType": "OpenAI.TextResponseFormatConfigurationType", - "com.azure.ai.agents.models.TextResponseFormatJsonSchema": "OpenAI.TextResponseFormatJsonSchema", - "com.azure.ai.agents.models.Tool": "OpenAI.Tool", - "com.azure.ai.agents.models.ToolProjectConnection": "Azure.AI.Projects.ToolProjectConnection", - "com.azure.ai.agents.models.ToolType": "OpenAI.ToolType", - "com.azure.ai.agents.models.TopLogProb": "OpenAI.TopLogProb", - "com.azure.ai.agents.models.Type": "OpenAI.Type", - "com.azure.ai.agents.models.UrlCitationBody": "OpenAI.UrlCitationBody", - "com.azure.ai.agents.models.UserProfileMemoryItem": "Azure.AI.Projects.UserProfileMemoryItem", - "com.azure.ai.agents.models.VectorStoreFileAttributes": "OpenAI.VectorStoreFileAttributes", - "com.azure.ai.agents.models.Wait": "OpenAI.Wait", - "com.azure.ai.agents.models.WebSearchActionFind": "OpenAI.WebSearchActionFind", - "com.azure.ai.agents.models.WebSearchActionOpenPage": "OpenAI.WebSearchActionOpenPage", - "com.azure.ai.agents.models.WebSearchActionSearch": "OpenAI.WebSearchActionSearch", - "com.azure.ai.agents.models.WebSearchActionSearchSources": "OpenAI.WebSearchActionSearchSources", - "com.azure.ai.agents.models.WebSearchApproximateLocation": "OpenAI.WebSearchApproximateLocation", - "com.azure.ai.agents.models.WebSearchConfiguration": "Azure.AI.Projects.WebSearchConfiguration", - "com.azure.ai.agents.models.WebSearchPreviewTool": "OpenAI.WebSearchPreviewTool", - "com.azure.ai.agents.models.WebSearchTool": "OpenAI.WebSearchTool", - "com.azure.ai.agents.models.WebSearchToolFilters": "OpenAI.WebSearchToolFilters", - "com.azure.ai.agents.models.WebSearchToolSearchContextSize": "OpenAI.WebSearchTool.search_context_size.anonymous", - "com.azure.ai.agents.models.WorkflowAgentDefinition": "Azure.AI.Projects.WorkflowAgentDefinition" - } -} diff --git a/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/FoundryFeaturesHeaderVerificationTest.java b/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/FoundryFeaturesHeaderVerificationTest.java index 7578842f39907..93aa7b0bdf58b 100644 --- a/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/FoundryFeaturesHeaderVerificationTest.java +++ b/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/FoundryFeaturesHeaderVerificationTest.java @@ -33,6 +33,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; public class FoundryFeaturesHeaderVerificationTest { private static final HttpHeaderName FOUNDRY_FEATURES = HttpHeaderName.fromString("Foundry-Features"); @@ -43,6 +45,68 @@ public class FoundryFeaturesHeaderVerificationTest { Stream.of(FoundryFeaturesOptInKeys.AGENTS_OPTIMIZATION_V2_PREVIEW.toString())) .collect(Collectors.joining(",")); + @Test + public void voicePreviewFactoriesAreOnlyPublicOnBetaBuilder() throws ReflectiveOperationException { + AgentsClientBuilder builder = createBuilder(new RecordingHttpClient()); + for (Class clientType : new Class[] { + BetaVoiceAgentsTelephonyClient.class, + BetaVoiceAgentsTelephonyAsyncClient.class, + BetaVoiceAgentsConversationsClient.class, + BetaVoiceAgentsConversationsAsyncClient.class }) { + String methodName = "build" + clientType.getSimpleName(); + assertThrows(NoSuchMethodException.class, () -> AgentsClientBuilder.class.getMethod(methodName)); + assertTrue(clientType.isInstance( + AgentsClientBuilder.BetaAgentsClientBuilder.class.getMethod(methodName).invoke(builder.beta()))); + } + } + + @Test + public void voiceBetaClientsAddPreviewHeadersWithoutLeakingToGaClients() { + for (boolean customPipeline : new boolean[] { false, true }) { + RecordingHttpClient httpClient = new RecordingHttpClient(); + AgentsClientBuilder builder + = customPipeline ? createBuilder(createCustomPipeline(httpClient)) : createBuilder(httpClient); + List requests = Arrays.asList( + () -> builder.beta() + .buildBetaVoiceAgentsTelephonyClient() + .getTelephonyBindingWithResponse("agent", "binding", new RequestOptions()), + () -> builder.beta() + .buildBetaVoiceAgentsTelephonyAsyncClient() + .getTelephonyBindingWithResponse("agent", "binding", new RequestOptions()) + .block(), + () -> builder.beta() + .buildBetaVoiceAgentsConversationsClient() + .downloadAgentConversationAudioWithResponse("agent", "conversation", new RequestOptions()), + () -> builder.beta() + .buildBetaVoiceAgentsConversationsAsyncClient() + .downloadAgentConversationAudioWithResponse("agent", "conversation", new RequestOptions()) + .block(), + () -> builder.beta() + .buildBetaVoiceAgentsTelephonyClient() + .getTelephonyCallJobWithResponse("agent", "job", new RequestOptions()), + () -> builder.beta() + .buildBetaVoiceAgentsTelephonyAsyncClient() + .getTelephonyCallJobWithResponse("agent", "job", new RequestOptions()) + .block(), + () -> builder.beta() + .buildBetaVoiceAgentsConversationsClient() + .getAgentConversationWithResponse("agent", "conversation", new RequestOptions()), + () -> builder.beta() + .buildBetaVoiceAgentsConversationsAsyncClient() + .getAgentConversationWithResponse("agent", "conversation", new RequestOptions()) + .block()); + for (Runnable request : requests) { + request.run(); + assertEquals(AgentDefinitionOptInKeys.VOICE_AGENTS_V1_PREVIEW.toString(), foundryFeatures(httpClient)); + assertEquals(customPipeline ? CUSTOM_PIPELINE_VALUE : null, customPipelineHeader(httpClient)); + + builder.buildAgentsClient() + .createAgentVersionWithResponse("agent", BinaryData.fromString("{}"), new RequestOptions()); + assertNull(foundryFeatures(httpClient)); + } + } + } + @Test public void allowPreviewAddsAreaSpecificHeaders() { RecordingHttpClient httpClient = new RecordingHttpClient(); diff --git a/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/MemoryStoresAsyncTests.java b/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/MemoryStoresAsyncTests.java index e510a0de0070c..8006e219183b3 100644 --- a/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/MemoryStoresAsyncTests.java +++ b/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/MemoryStoresAsyncTests.java @@ -42,7 +42,7 @@ public class MemoryStoresAsyncTests extends ClientTestBase { public void basicMemoryStoresCrud(HttpClient httpClient, AgentsServiceVersion serviceVersion) { BetaMemoryStoresAsyncClient memoryStoreClient = getMemoryStoresAsyncClient(httpClient, serviceVersion); - String memoryStoreName = "my_memory_store_java"; + String memoryStoreName = "my-memory-store-java"; String initialDescription = "Example memory store for conversations"; String updatedDescription = "Updated description"; @@ -104,7 +104,7 @@ public void basicMemoryStoresCrud(HttpClient httpClient, AgentsServiceVersion se public void basicMemoryStores(HttpClient httpClient, AgentsServiceVersion serviceVersion) { BetaMemoryStoresAsyncClient memoryStoreClient = getMemoryStoresAsyncClient(httpClient, serviceVersion); - String memoryStoreName = "my_memory_store"; + String memoryStoreName = "my-memory-store"; String description = "Example memory store for conversations"; String scope = "user_123"; String userMessageContent = "I prefer dark roast coffee and usually drink it in the morning"; @@ -164,7 +164,7 @@ public void basicMemoryStores(HttpClient httpClient, AgentsServiceVersion servic public void advancedMemoryStores(HttpClient httpClient, AgentsServiceVersion serviceVersion) { BetaMemoryStoresAsyncClient memoryStoreClient = getMemoryStoresAsyncClient(httpClient, serviceVersion); - String memoryStoreName = "my_memory_store"; + String memoryStoreName = "my-memory-store"; String description = "Example memory store for conversations"; String scope = "user_123"; String firstMessageContent = "I prefer dark roast coffee and usually drink it in the morning"; diff --git a/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/MemoryStoresTests.java b/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/MemoryStoresTests.java index 53b53cb2f62b3..b64f8b94d97f2 100644 --- a/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/MemoryStoresTests.java +++ b/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/MemoryStoresTests.java @@ -33,7 +33,7 @@ public class MemoryStoresTests extends ClientTestBase { public void basicMemoryStoresCrud(HttpClient httpClient, AgentsServiceVersion serviceVersion) { BetaMemoryStoresClient memoryStoreClient = getMemoryStoresSyncClient(httpClient, serviceVersion); - String memoryStoreName = "my_memory_store_java"; + String memoryStoreName = "my-memory-store-java"; String initialDescription = "Example memory store for conversations"; String updatedDescription = "Updated description"; @@ -92,7 +92,7 @@ public void basicMemoryStoresCrud(HttpClient httpClient, AgentsServiceVersion se public void basicMemoryStores(HttpClient httpClient, AgentsServiceVersion serviceVersion) { BetaMemoryStoresClient memoryStoreClient = getMemoryStoresSyncClient(httpClient, serviceVersion); - String memoryStoreName = "my_memory_store"; + String memoryStoreName = "my-memory-store"; String description = "Example memory store for conversations"; String scope = "user_123"; String userMessageContent = "I prefer dark roast coffee and usually drink it in the morning"; @@ -160,7 +160,7 @@ public void basicMemoryStores(HttpClient httpClient, AgentsServiceVersion servic public void advancedMemoryStores(HttpClient httpClient, AgentsServiceVersion serviceVersion) { BetaMemoryStoresClient memoryStoreClient = getMemoryStoresSyncClient(httpClient, serviceVersion); - String memoryStoreName = "my_memory_store"; + String memoryStoreName = "my-memory-store"; String description = "Example memory store for conversations"; String scope = "user_123"; String firstMessageContent = "I prefer dark roast coffee and usually drink it in the morning"; diff --git a/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/models/PromptAgentDefinitionSerializationTests.java b/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/models/PromptAgentDefinitionSerializationTests.java index de3e0618467af..62c59a2429298 100644 --- a/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/models/PromptAgentDefinitionSerializationTests.java +++ b/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/models/PromptAgentDefinitionSerializationTests.java @@ -14,8 +14,10 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; +import java.util.Collections; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertInstanceOf; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertFalse; @@ -539,6 +541,22 @@ public void testRoundTripWithReasoningAndToolChoice() throws IOException { assertEquals(Reasoning.GenerateSummary.AUTO, deserialized.getReasoning().generateSummary().get()); } + /** + * Tests round-trip serialization of the managed harness and skill references. + */ + @Test + public void testRoundTripWithHarnessAndSkills() throws IOException { + PromptAgentDefinition original = new PromptAgentDefinition(TEST_MODEL).setHarness(new GitHubCopilotHarness()) + .setSkills(Collections.singletonList(new SkillReference("coding-skill").setVersion("1"))); + + PromptAgentDefinition deserialized = deserializeFromJson(serializeToJson(original)); + + assertInstanceOf(GitHubCopilotHarness.class, deserialized.getHarness()); + assertEquals(1, deserialized.getSkills().size()); + assertEquals("coding-skill", deserialized.getSkills().get(0).getName()); + assertEquals("1", deserialized.getSkills().get(0).getVersion()); + } + /** * Tests that reasoning is absent when not set. */ diff --git a/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/models/ReasoningDedupSerializationTests.java b/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/models/ReasoningDedupSerializationTests.java index e052f2919775a..8c09f3cb40c2f 100644 --- a/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/models/ReasoningDedupSerializationTests.java +++ b/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/models/ReasoningDedupSerializationTests.java @@ -3,6 +3,7 @@ package com.azure.ai.agents.models; +import com.azure.core.util.BinaryData; import com.azure.json.JsonProviders; import com.azure.json.JsonReader; import com.azure.json.JsonWriter; @@ -24,6 +25,39 @@ public class ReasoningDedupSerializationTests { private static final String TEST_MODEL = "gpt-4o"; + @Test + public void testVoiceResponseAudioConfigRoundTrip() throws IOException { + try (JsonReader reader = JsonProviders.createReader("{\"audio\":{\"output\":{}}}")) { + VoiceAgentResponseCreateParams response = VoiceAgentResponseCreateParams.fromJson(reader); + assertNotNull(response.getAudio().getOutput()); + VoiceAgentResponseCreateParams roundTrip + = BinaryData.fromObject(response).toObject(VoiceAgentResponseCreateParams.class); + assertNotNull(roundTrip.getAudio().getOutput()); + } + } + + @Test + public void testVoiceRealtimeResponseObjectRoundTrip() throws IOException { + try (JsonReader reader = JsonProviders.createReader("{\"object\":\"realtime.response\"}")) { + VoiceAgentRealtimeResponse response = VoiceAgentRealtimeResponse.fromJson(reader); + assertEquals(VoiceResponseBaseObject.fromString("realtime.response"), response.getObject()); + VoiceAgentRealtimeResponse roundTrip + = BinaryData.fromObject(response).toObject(VoiceAgentRealtimeResponse.class); + assertEquals(response.getObject(), roundTrip.getObject()); + } + } + + @Test + public void testVoiceRealtimeResponseBaseObjectRoundTrip() throws IOException { + try (JsonReader reader = JsonProviders.createReader("{\"object\":\"realtime.response\"}")) { + VoiceAgentRealtimeResponseBase response = VoiceAgentRealtimeResponseBase.fromJson(reader); + assertEquals(VoiceResponseBaseObject.fromString("realtime.response"), response.getObject()); + VoiceAgentRealtimeResponseBase roundTrip + = BinaryData.fromObject(response).toObject(VoiceAgentRealtimeResponseBase.class); + assertEquals(response.getObject(), roundTrip.getObject()); + } + } + // ----------------------------------------------------------------------- // Reasoning on PromptAgentDefinition — getter / setter // -----------------------------------------------------------------------