diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentSessionFilesAsyncClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentSessionFilesAsyncClient.java index 12cf73456690..811c395851ea 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentSessionFilesAsyncClient.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentSessionFilesAsyncClient.java @@ -73,7 +73,7 @@ public final class AgentSessionFilesAsyncClient { * * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The destination file path within the sandbox, relative to the session home directory. * @param content The content parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -86,9 +86,9 @@ public final class AgentSessionFilesAsyncClient { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> uploadSessionFileWithResponse(String agentName, String sessionId, String path, - BinaryData content, RequestOptions requestOptions) { - return this.serviceClient.uploadSessionFileWithResponseAsync(agentName, sessionId, path, content, + public Mono> uploadSessionFileWithResponse(String agentName, String agentSessionId, + String path, BinaryData content, RequestOptions requestOptions) { + return this.serviceClient.uploadSessionFileWithResponseAsync(agentName, agentSessionId, path, content, requestOptions); } @@ -112,7 +112,7 @@ public Mono> uploadSessionFileWithResponse(String agentName * * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The file path to download from the sandbox, relative to the session home directory. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -123,9 +123,9 @@ public Mono> uploadSessionFileWithResponse(String agentName */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> downloadSessionFileWithResponse(String agentName, String sessionId, String path, - RequestOptions requestOptions) { - return this.serviceClient.downloadSessionFileWithResponseAsync(agentName, sessionId, path, requestOptions); + public Mono> downloadSessionFileWithResponse(String agentName, String agentSessionId, + String path, RequestOptions requestOptions) { + return this.serviceClient.downloadSessionFileWithResponseAsync(agentName, agentSessionId, path, requestOptions); } /** @@ -150,7 +150,7 @@ public Mono> downloadSessionFileWithResponse(String agentNa * You can add these to a request with {@link RequestOptions#addHeader} * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The file or directory path to delete, relative to the session home directory. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -161,9 +161,9 @@ public Mono> downloadSessionFileWithResponse(String agentNa */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteSessionFileWithResponse(String agentName, String sessionId, String path, + public Mono> deleteSessionFileWithResponse(String agentName, String agentSessionId, String path, RequestOptions requestOptions) { - return this.serviceClient.deleteSessionFileWithResponseAsync(agentName, sessionId, path, requestOptions); + return this.serviceClient.deleteSessionFileWithResponseAsync(agentName, agentSessionId, path, requestOptions); } /** @@ -171,7 +171,7 @@ public Mono> deleteSessionFileWithResponse(String agentName, Stri * Maximum file size is 50 MB. Uploads exceeding this limit return 413 Payload Too Large. * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The destination file path within the sandbox, relative to the session home directory. * @param content The content parameter. * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted @@ -186,14 +186,14 @@ public Mono> deleteSessionFileWithResponse(String agentName, Stri */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono uploadSessionFile(String agentName, String sessionId, String path, + public Mono uploadSessionFile(String agentName, String agentSessionId, String path, BinaryData content, AgentDefinitionOptInKeys foundryFeatures) { // Generated convenience method for uploadSessionFileWithResponse RequestOptions requestOptions = new RequestOptions(); if (foundryFeatures != null) { requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); } - return uploadSessionFileWithResponse(agentName, sessionId, path, content, requestOptions) + return uploadSessionFileWithResponse(agentName, agentSessionId, path, content, requestOptions) .flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(SessionFileWriteResponse.class)); } @@ -203,7 +203,7 @@ public Mono uploadSessionFile(String agentName, String * Maximum file size is 50 MB. Uploads exceeding this limit return 413 Payload Too Large. * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The destination file path within the sandbox, relative to the session home directory. * @param content The content parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -216,11 +216,11 @@ public Mono uploadSessionFile(String agentName, String */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono uploadSessionFile(String agentName, String sessionId, String path, + public Mono uploadSessionFile(String agentName, String agentSessionId, String path, BinaryData content) { // Generated convenience method for uploadSessionFileWithResponse RequestOptions requestOptions = new RequestOptions(); - return uploadSessionFileWithResponse(agentName, sessionId, path, content, requestOptions) + return uploadSessionFileWithResponse(agentName, agentSessionId, path, content, requestOptions) .flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(SessionFileWriteResponse.class)); } @@ -229,7 +229,7 @@ public Mono uploadSessionFile(String agentName, String * Download a file from the session sandbox as a binary stream. * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The file path to download from the sandbox, relative to the session home directory. * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted * preview resources. @@ -243,21 +243,22 @@ public Mono uploadSessionFile(String agentName, String */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono downloadSessionFile(String agentName, String sessionId, String path, + public Mono downloadSessionFile(String agentName, String agentSessionId, String path, AgentDefinitionOptInKeys foundryFeatures) { // Generated convenience method for downloadSessionFileWithResponse RequestOptions requestOptions = new RequestOptions(); if (foundryFeatures != null) { requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); } - return downloadSessionFileWithResponse(agentName, sessionId, path, requestOptions).flatMap(FluxUtil::toMono); + return downloadSessionFileWithResponse(agentName, agentSessionId, path, requestOptions) + .flatMap(FluxUtil::toMono); } /** * Download a file from the session sandbox as a binary stream. * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The file path to download from the sandbox, relative to the session home directory. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -269,10 +270,11 @@ public Mono downloadSessionFile(String agentName, String sessionId, */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono downloadSessionFile(String agentName, String sessionId, String path) { + public Mono downloadSessionFile(String agentName, String agentSessionId, String path) { // Generated convenience method for downloadSessionFileWithResponse RequestOptions requestOptions = new RequestOptions(); - return downloadSessionFileWithResponse(agentName, sessionId, path, requestOptions).flatMap(FluxUtil::toMono); + return downloadSessionFileWithResponse(agentName, agentSessionId, path, requestOptions) + .flatMap(FluxUtil::toMono); } /** @@ -280,7 +282,7 @@ public Mono downloadSessionFile(String agentName, String sessionId, * If `recursive` is false (default) and the target is a non-empty directory, the API returns 409 Conflict. * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The file or directory path to delete, relative to the session home directory. * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted * preview resources. @@ -295,7 +297,7 @@ public Mono downloadSessionFile(String agentName, String sessionId, */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteSessionFile(String agentName, String sessionId, String path, + public Mono deleteSessionFile(String agentName, String agentSessionId, String path, AgentDefinitionOptInKeys foundryFeatures, Boolean recursive) { // Generated convenience method for deleteSessionFileWithResponse RequestOptions requestOptions = new RequestOptions(); @@ -305,7 +307,7 @@ public Mono deleteSessionFile(String agentName, String sessionId, String p if (recursive != null) { requestOptions.addQueryParam("recursive", String.valueOf(recursive), false); } - return deleteSessionFileWithResponse(agentName, sessionId, path, requestOptions).flatMap(FluxUtil::toMono); + return deleteSessionFileWithResponse(agentName, agentSessionId, path, requestOptions).flatMap(FluxUtil::toMono); } /** @@ -313,7 +315,7 @@ public Mono deleteSessionFile(String agentName, String sessionId, String p * If `recursive` is false (default) and the target is a non-empty directory, the API returns 409 Conflict. * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The file or directory path to delete, relative to the session home directory. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -325,10 +327,10 @@ public Mono deleteSessionFile(String agentName, String sessionId, String p */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteSessionFile(String agentName, String sessionId, String path) { + public Mono deleteSessionFile(String agentName, String agentSessionId, String path) { // Generated convenience method for deleteSessionFileWithResponse RequestOptions requestOptions = new RequestOptions(); - return deleteSessionFileWithResponse(agentName, sessionId, path, requestOptions).flatMap(FluxUtil::toMono); + return deleteSessionFileWithResponse(agentName, agentSessionId, path, requestOptions).flatMap(FluxUtil::toMono); } /** @@ -354,7 +356,7 @@ public Mono deleteSessionFile(String agentName, String sessionId, String p * name: String (Required) * size: long (Required) * is_directory: boolean (Required) - * modified_time: OffsetDateTime (Required) + * modified_time: long (Required) * } * ] * } @@ -362,7 +364,7 @@ public Mono deleteSessionFile(String agentName, String sessionId, String p * * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The directory path to list, relative to the session home directory. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -374,9 +376,9 @@ public Mono deleteSessionFile(String agentName, String sessionId, String p */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getSessionFilesWithResponse(String agentName, String sessionId, String path, + public Mono> getSessionFilesWithResponse(String agentName, String agentSessionId, String path, RequestOptions requestOptions) { - return this.serviceClient.getSessionFilesWithResponseAsync(agentName, sessionId, path, requestOptions); + return this.serviceClient.getSessionFilesWithResponseAsync(agentName, agentSessionId, path, requestOptions); } /** @@ -384,7 +386,7 @@ public Mono> getSessionFilesWithResponse(String agentName, * Returns only the immediate children of the specified directory (non-recursive). * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The directory path to list, relative to the session home directory. * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted * preview resources. @@ -398,14 +400,14 @@ public Mono> getSessionFilesWithResponse(String agentName, */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getSessionFiles(String agentName, String sessionId, String path, + public Mono getSessionFiles(String agentName, String agentSessionId, String path, AgentDefinitionOptInKeys foundryFeatures) { // Generated convenience method for getSessionFilesWithResponse RequestOptions requestOptions = new RequestOptions(); if (foundryFeatures != null) { requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); } - return getSessionFilesWithResponse(agentName, sessionId, path, requestOptions).flatMap(FluxUtil::toMono) + return getSessionFilesWithResponse(agentName, agentSessionId, path, requestOptions).flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(SessionDirectoryListResponse.class)); } @@ -414,7 +416,7 @@ public Mono getSessionFiles(String agentName, Stri * Returns only the immediate children of the specified directory (non-recursive). * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The directory path to list, relative to the session home directory. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -426,10 +428,10 @@ public Mono getSessionFiles(String agentName, Stri */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getSessionFiles(String agentName, String sessionId, String path) { + public Mono getSessionFiles(String agentName, String agentSessionId, String path) { // Generated convenience method for getSessionFilesWithResponse RequestOptions requestOptions = new RequestOptions(); - return getSessionFilesWithResponse(agentName, sessionId, path, requestOptions).flatMap(FluxUtil::toMono) + return getSessionFilesWithResponse(agentName, agentSessionId, path, requestOptions).flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(SessionDirectoryListResponse.class)); } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentSessionFilesClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentSessionFilesClient.java index dc1e3e309a01..48666c1d1ad0 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentSessionFilesClient.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentSessionFilesClient.java @@ -71,7 +71,7 @@ public final class AgentSessionFilesClient { * * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The destination file path within the sandbox, relative to the session home directory. * @param content The content parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -83,9 +83,10 @@ public final class AgentSessionFilesClient { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response uploadSessionFileWithResponse(String agentName, String sessionId, String path, + public Response uploadSessionFileWithResponse(String agentName, String agentSessionId, String path, BinaryData content, RequestOptions requestOptions) { - return this.serviceClient.uploadSessionFileWithResponse(agentName, sessionId, path, content, requestOptions); + return this.serviceClient.uploadSessionFileWithResponse(agentName, agentSessionId, path, content, + requestOptions); } /** @@ -108,7 +109,7 @@ public Response uploadSessionFileWithResponse(String agentName, Stri * * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The file path to download from the sandbox, relative to the session home directory. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -119,9 +120,9 @@ public Response uploadSessionFileWithResponse(String agentName, Stri */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response downloadSessionFileWithResponse(String agentName, String sessionId, String path, + public Response downloadSessionFileWithResponse(String agentName, String agentSessionId, String path, RequestOptions requestOptions) { - return this.serviceClient.downloadSessionFileWithResponse(agentName, sessionId, path, requestOptions); + return this.serviceClient.downloadSessionFileWithResponse(agentName, agentSessionId, path, requestOptions); } /** @@ -146,7 +147,7 @@ public Response downloadSessionFileWithResponse(String agentName, St * You can add these to a request with {@link RequestOptions#addHeader} * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The file or directory path to delete, relative to the session home directory. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -157,9 +158,9 @@ public Response downloadSessionFileWithResponse(String agentName, St */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteSessionFileWithResponse(String agentName, String sessionId, String path, + public Response deleteSessionFileWithResponse(String agentName, String agentSessionId, String path, RequestOptions requestOptions) { - return this.serviceClient.deleteSessionFileWithResponse(agentName, sessionId, path, requestOptions); + return this.serviceClient.deleteSessionFileWithResponse(agentName, agentSessionId, path, requestOptions); } /** @@ -167,7 +168,7 @@ public Response deleteSessionFileWithResponse(String agentName, String ses * Maximum file size is 50 MB. Uploads exceeding this limit return 413 Payload Too Large. * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The destination file path within the sandbox, relative to the session home directory. * @param content The content parameter. * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted @@ -182,14 +183,14 @@ public Response deleteSessionFileWithResponse(String agentName, String ses */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public SessionFileWriteResponse uploadSessionFile(String agentName, String sessionId, String path, + public SessionFileWriteResponse uploadSessionFile(String agentName, String agentSessionId, String path, BinaryData content, AgentDefinitionOptInKeys foundryFeatures) { // Generated convenience method for uploadSessionFileWithResponse RequestOptions requestOptions = new RequestOptions(); if (foundryFeatures != null) { requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); } - return uploadSessionFileWithResponse(agentName, sessionId, path, content, requestOptions).getValue() + return uploadSessionFileWithResponse(agentName, agentSessionId, path, content, requestOptions).getValue() .toObject(SessionFileWriteResponse.class); } @@ -198,7 +199,7 @@ public SessionFileWriteResponse uploadSessionFile(String agentName, String sessi * Maximum file size is 50 MB. Uploads exceeding this limit return 413 Payload Too Large. * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The destination file path within the sandbox, relative to the session home directory. * @param content The content parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -211,11 +212,11 @@ public SessionFileWriteResponse uploadSessionFile(String agentName, String sessi */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public SessionFileWriteResponse uploadSessionFile(String agentName, String sessionId, String path, + public SessionFileWriteResponse uploadSessionFile(String agentName, String agentSessionId, String path, BinaryData content) { // Generated convenience method for uploadSessionFileWithResponse RequestOptions requestOptions = new RequestOptions(); - return uploadSessionFileWithResponse(agentName, sessionId, path, content, requestOptions).getValue() + return uploadSessionFileWithResponse(agentName, agentSessionId, path, content, requestOptions).getValue() .toObject(SessionFileWriteResponse.class); } @@ -223,7 +224,7 @@ public SessionFileWriteResponse uploadSessionFile(String agentName, String sessi * Download a file from the session sandbox as a binary stream. * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The file path to download from the sandbox, relative to the session home directory. * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted * preview resources. @@ -237,21 +238,21 @@ public SessionFileWriteResponse uploadSessionFile(String agentName, String sessi */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public BinaryData downloadSessionFile(String agentName, String sessionId, String path, + public BinaryData downloadSessionFile(String agentName, String agentSessionId, String path, AgentDefinitionOptInKeys foundryFeatures) { // Generated convenience method for downloadSessionFileWithResponse RequestOptions requestOptions = new RequestOptions(); if (foundryFeatures != null) { requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); } - return downloadSessionFileWithResponse(agentName, sessionId, path, requestOptions).getValue(); + return downloadSessionFileWithResponse(agentName, agentSessionId, path, requestOptions).getValue(); } /** * Download a file from the session sandbox as a binary stream. * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The file path to download from the sandbox, relative to the session home directory. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -263,10 +264,10 @@ public BinaryData downloadSessionFile(String agentName, String sessionId, String */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public BinaryData downloadSessionFile(String agentName, String sessionId, String path) { + public BinaryData downloadSessionFile(String agentName, String agentSessionId, String path) { // Generated convenience method for downloadSessionFileWithResponse RequestOptions requestOptions = new RequestOptions(); - return downloadSessionFileWithResponse(agentName, sessionId, path, requestOptions).getValue(); + return downloadSessionFileWithResponse(agentName, agentSessionId, path, requestOptions).getValue(); } /** @@ -274,7 +275,7 @@ public BinaryData downloadSessionFile(String agentName, String sessionId, String * If `recursive` is false (default) and the target is a non-empty directory, the API returns 409 Conflict. * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The file or directory path to delete, relative to the session home directory. * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted * preview resources. @@ -288,7 +289,7 @@ public BinaryData downloadSessionFile(String agentName, String sessionId, String */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteSessionFile(String agentName, String sessionId, String path, + public void deleteSessionFile(String agentName, String agentSessionId, String path, AgentDefinitionOptInKeys foundryFeatures, Boolean recursive) { // Generated convenience method for deleteSessionFileWithResponse RequestOptions requestOptions = new RequestOptions(); @@ -298,7 +299,7 @@ public void deleteSessionFile(String agentName, String sessionId, String path, if (recursive != null) { requestOptions.addQueryParam("recursive", String.valueOf(recursive), false); } - deleteSessionFileWithResponse(agentName, sessionId, path, requestOptions).getValue(); + deleteSessionFileWithResponse(agentName, agentSessionId, path, requestOptions).getValue(); } /** @@ -306,7 +307,7 @@ public void deleteSessionFile(String agentName, String sessionId, String path, * If `recursive` is false (default) and the target is a non-empty directory, the API returns 409 Conflict. * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The file or directory path to delete, relative to the session home directory. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -317,10 +318,10 @@ public void deleteSessionFile(String agentName, String sessionId, String path, */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteSessionFile(String agentName, String sessionId, String path) { + public void deleteSessionFile(String agentName, String agentSessionId, String path) { // Generated convenience method for deleteSessionFileWithResponse RequestOptions requestOptions = new RequestOptions(); - deleteSessionFileWithResponse(agentName, sessionId, path, requestOptions).getValue(); + deleteSessionFileWithResponse(agentName, agentSessionId, path, requestOptions).getValue(); } /** @@ -346,7 +347,7 @@ public void deleteSessionFile(String agentName, String sessionId, String path) { * name: String (Required) * size: long (Required) * is_directory: boolean (Required) - * modified_time: OffsetDateTime (Required) + * modified_time: long (Required) * } * ] * } @@ -354,7 +355,7 @@ public void deleteSessionFile(String agentName, String sessionId, String path) { * * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The directory path to list, relative to the session home directory. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -365,9 +366,9 @@ public void deleteSessionFile(String agentName, String sessionId, String path) { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response getSessionFilesWithResponse(String agentName, String sessionId, String path, + public Response getSessionFilesWithResponse(String agentName, String agentSessionId, String path, RequestOptions requestOptions) { - return this.serviceClient.getSessionFilesWithResponse(agentName, sessionId, path, requestOptions); + return this.serviceClient.getSessionFilesWithResponse(agentName, agentSessionId, path, requestOptions); } /** @@ -375,7 +376,7 @@ public Response getSessionFilesWithResponse(String agentName, String * Returns only the immediate children of the specified directory (non-recursive). * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The directory path to list, relative to the session home directory. * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted * preview resources. @@ -389,14 +390,14 @@ public Response getSessionFilesWithResponse(String agentName, String */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public SessionDirectoryListResponse getSessionFiles(String agentName, String sessionId, String path, + public SessionDirectoryListResponse getSessionFiles(String agentName, String agentSessionId, String path, AgentDefinitionOptInKeys foundryFeatures) { // Generated convenience method for getSessionFilesWithResponse RequestOptions requestOptions = new RequestOptions(); if (foundryFeatures != null) { requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); } - return getSessionFilesWithResponse(agentName, sessionId, path, requestOptions).getValue() + return getSessionFilesWithResponse(agentName, agentSessionId, path, requestOptions).getValue() .toObject(SessionDirectoryListResponse.class); } @@ -405,7 +406,7 @@ public SessionDirectoryListResponse getSessionFiles(String agentName, String ses * Returns only the immediate children of the specified directory (non-recursive). * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The directory path to list, relative to the session home directory. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -417,10 +418,10 @@ public SessionDirectoryListResponse getSessionFiles(String agentName, String ses */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public SessionDirectoryListResponse getSessionFiles(String agentName, String sessionId, String path) { + public SessionDirectoryListResponse getSessionFiles(String agentName, String agentSessionId, String path) { // Generated convenience method for getSessionFilesWithResponse RequestOptions requestOptions = new RequestOptions(); - return getSessionFilesWithResponse(agentName, sessionId, path, requestOptions).getValue() + return getSessionFilesWithResponse(agentName, agentSessionId, path, requestOptions).getValue() .toObject(SessionDirectoryListResponse.class); } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsAsyncClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsAsyncClient.java index 948aa751a4d8..31e7dc9184ea 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsAsyncClient.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsAsyncClient.java @@ -82,6 +82,7 @@ public final class AgentsAsyncClient { * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -202,6 +203,7 @@ public Mono> getAgentWithResponse(String agentName, Request * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -326,6 +328,7 @@ public Mono deleteAgentVersion(String agentName, String agentVersion) { * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -559,6 +562,7 @@ public Mono createAgentVersion(String agentName, AgentDefin * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -685,6 +689,7 @@ Mono> createAgentWithResponse(BinaryData createAgentRequest * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -834,6 +839,7 @@ Mono updateAgent(String agentName, AgentDefinition definition) { * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -948,6 +954,7 @@ Mono> createAgentFromManifestWithResponse(BinaryData create * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -1057,6 +1064,7 @@ Mono> updateAgentFromManifestWithResponse(String agentName, * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -1281,6 +1289,7 @@ public Mono createAgentVersionFromManifest(String agentName * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -1495,6 +1504,7 @@ public PagedFlux listAgentVersions(String agentName, Intege * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -1854,69 +1864,6 @@ Mono> internalDeleteAgentVersionWithResponse(String agentNa return this.serviceClient.internalDeleteAgentVersionWithResponseAsync(agentName, agentVersion, requestOptions); } - /** - * Creates a new session for an agent endpoint. - * The endpoint resolves the backing agent version from `version_indicator` and - * enforces session ownership using the provided isolation key for session-mutating operations. - *

Header Parameters

- * - * - * - * - *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview - * operations or modifying persisted preview resources. Allowed values: "HostedAgents=V1Preview", - * "WorkflowAgents=V1Preview", "ContainerAgents=V1Preview", "AgentEndpoints=V1Preview".
- * You can add these to a request with {@link RequestOptions#addHeader} - *

Request Body Schema

- * - *
-     * {@code
-     * {
-     *     agent_session_id: String (Optional)
-     *     version_indicator (Required): {
-     *         type: String(version_ref) (Required)
-     *     }
-     * }
-     * }
-     * 
- * - *

Response Body Schema

- * - *
-     * {@code
-     * {
-     *     agent_session_id: String (Required)
-     *     version_indicator (Required): {
-     *         type: String(version_ref) (Required)
-     *     }
-     *     status: String(creating/active/idle/updating/failed/deleting/deleted/expired) (Required)
-     *     created_at: long (Required)
-     *     last_accessed_at: long (Required)
-     *     expires_at: long (Required)
-     * }
-     * }
-     * 
- * - * @param agentName The name of the agent to create a session for. - * @param isolationKey Isolation key used by the agent endpoint to enforce session ownership for session-mutating - * operations. - * @param createSessionRequest The createSessionRequest parameter. - * @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. - * @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 session providing a long-lived compute sandbox for hosted agent invocations along with - * {@link Response} on successful completion of {@link Mono}. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createSessionWithResponse(String agentName, String isolationKey, - BinaryData createSessionRequest, RequestOptions requestOptions) { - return this.serviceClient.createSessionWithResponseAsync(agentName, isolationKey, createSessionRequest, - requestOptions); - } - /** * Retrieves a session by ID. *

Header Parameters

@@ -1962,37 +1909,6 @@ public Mono> getSessionWithResponse(String agentName, Strin return this.serviceClient.getSessionWithResponseAsync(agentName, sessionId, requestOptions); } - /** - * Deletes a session synchronously. - * Returns 204 No Content when the session is deleted or does not exist. - *

Header Parameters

- * - * - * - * - *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview - * operations or modifying persisted preview resources. Allowed values: "HostedAgents=V1Preview", - * "WorkflowAgents=V1Preview", "ContainerAgents=V1Preview", "AgentEndpoints=V1Preview".
- * You can add these to a request with {@link RequestOptions#addHeader} - * - * @param agentName The name of the agent. - * @param sessionId The session identifier. - * @param isolationKey Isolation key used by the agent endpoint to enforce session ownership for session-mutating - * operations. - * @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. - * @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 the {@link Response} on successful completion of {@link Mono}. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteSessionWithResponse(String agentName, String sessionId, String isolationKey, - RequestOptions requestOptions) { - return this.serviceClient.deleteSessionWithResponseAsync(agentName, sessionId, isolationKey, requestOptions); - } - /** * Returns a list of sessions for the specified agent. *

Query Parameters

@@ -2175,71 +2091,6 @@ public Mono createAgentVersion(String agentName, AgentDefin .map(protocolMethodData -> protocolMethodData.toObject(AgentVersionDetails.class)); } - /** - * Creates a new session for an agent endpoint. - * The endpoint resolves the backing agent version from `version_indicator` and - * enforces session ownership using the provided isolation key for session-mutating operations. - * - * @param agentName The name of the agent to create a session for. - * @param isolationKey Isolation key used by the agent endpoint to enforce session ownership for session-mutating - * operations. - * @param versionIndicator Determines which agent version backs the session. - * @param agentSessionId Optional caller-provided session ID. If specified, it must be unique within the agent - * endpoint. Auto-generated if omitted. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an agent session providing a long-lived compute sandbox for hosted agent invocations on successful - * completion of {@link Mono}. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createSession(String agentName, String isolationKey, - VersionIndicator versionIndicator, String agentSessionId) { - // Generated convenience method for createSessionWithResponse - RequestOptions requestOptions = new RequestOptions(); - CreateSessionRequest createSessionRequestObj - = new CreateSessionRequest(versionIndicator).setAgentSessionId(agentSessionId); - BinaryData createSessionRequest = BinaryData.fromObject(createSessionRequestObj); - return createSessionWithResponse(agentName, isolationKey, createSessionRequest, requestOptions) - .flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(AgentSessionResource.class)); - } - - /** - * Creates a new session for an agent endpoint. - * The endpoint resolves the backing agent version from `version_indicator` and - * enforces session ownership using the provided isolation key for session-mutating operations. - * - * @param agentName The name of the agent to create a session for. - * @param isolationKey Isolation key used by the agent endpoint to enforce session ownership for session-mutating - * operations. - * @param versionIndicator Determines which agent version backs the session. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an agent session providing a long-lived compute sandbox for hosted agent invocations on successful - * completion of {@link Mono}. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createSession(String agentName, String isolationKey, - VersionIndicator versionIndicator) { - // Generated convenience method for createSessionWithResponse - RequestOptions requestOptions = new RequestOptions(); - CreateSessionRequest createSessionRequestObj = new CreateSessionRequest(versionIndicator); - BinaryData createSessionRequest = BinaryData.fromObject(createSessionRequestObj); - return createSessionWithResponse(agentName, isolationKey, createSessionRequest, requestOptions) - .flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(AgentSessionResource.class)); - } - /** * Retrieves a session by ID. * @@ -2292,60 +2143,6 @@ public Mono getSession(String agentName, String sessionId) .map(protocolMethodData -> protocolMethodData.toObject(AgentSessionResource.class)); } - /** - * Deletes a session synchronously. - * Returns 204 No Content when the session is deleted or does not exist. - * - * @param agentName The name of the agent. - * @param sessionId The session identifier. - * @param isolationKey Isolation key used by the agent endpoint to enforce session ownership for session-mutating - * operations. - * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted - * preview resources. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteSession(String agentName, String sessionId, String isolationKey, - AgentDefinitionOptInKeys foundryFeatures) { - // Generated convenience method for deleteSessionWithResponse - RequestOptions requestOptions = new RequestOptions(); - if (foundryFeatures != null) { - requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); - } - return deleteSessionWithResponse(agentName, sessionId, isolationKey, requestOptions).flatMap(FluxUtil::toMono); - } - - /** - * Deletes a session synchronously. - * Returns 204 No Content when the session is deleted or does not exist. - * - * @param agentName The name of the agent. - * @param sessionId The session identifier. - * @param isolationKey Isolation key used by the agent endpoint to enforce session ownership for session-mutating - * operations. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteSession(String agentName, String sessionId, String isolationKey) { - // Generated convenience method for deleteSessionWithResponse - RequestOptions requestOptions = new RequestOptions(); - return deleteSessionWithResponse(agentName, sessionId, isolationKey, requestOptions).flatMap(FluxUtil::toMono); - } - /** * Returns a list of sessions for the specified agent. * @@ -2589,6 +2386,7 @@ public Mono> getSessionLogStreamWithResponse(String agentNa * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -2659,6 +2457,136 @@ public Mono> updateAgentDetailsWithResponse(String agentNam requestOptions); } + /** + * Create a new agent version. + * + * @param agentName The unique name that identifies the agent. Name can be used to retrieve/update/delete the agent. + * - Must start and end with alphanumeric characters, + * - Can contain hyphens in the middle + * - Must not exceed 63 characters. + * @param definition The agent definition. This can be a workflow, hosted agent, or a simple agent definition. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @param metadata Set of 16 key-value pairs that can be attached to an object. This can be + * useful for storing additional information about the object in a structured + * format, and querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings + * with a maximum length of 512 characters. + * @param description A human-readable description of the agent. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createAgentVersion(String agentName, AgentDefinition definition, + AgentDefinitionOptInKeys foundryFeatures, Map metadata, String description) { + // Generated convenience method for createAgentVersionWithResponse + RequestOptions requestOptions = new RequestOptions(); + CreateAgentVersionRequest createAgentVersionRequestObj + = new CreateAgentVersionRequest(definition).setMetadata(metadata).setDescription(description); + BinaryData createAgentVersionRequest = BinaryData.fromObject(createAgentVersionRequestObj); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + return createAgentVersionWithResponse(agentName, createAgentVersionRequest, requestOptions) + .flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(AgentVersionDetails.class)); + } + + /** + * Creates a new session for an agent endpoint. + * The endpoint resolves the backing agent version from `version_indicator` and + * enforces session ownership using the provided isolation key for session-mutating operations. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "HostedAgents=V1Preview", + * "WorkflowAgents=V1Preview", "ContainerAgents=V1Preview", "AgentEndpoints=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     agent_session_id: String (Optional)
+     *     version_indicator (Required): {
+     *         type: String(version_ref) (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     agent_session_id: String (Required)
+     *     version_indicator (Required): {
+     *         type: String(version_ref) (Required)
+     *     }
+     *     status: String(creating/active/idle/updating/failed/deleting/deleted/expired) (Required)
+     *     created_at: long (Required)
+     *     last_accessed_at: long (Required)
+     *     expires_at: long (Required)
+     * }
+     * }
+     * 
+ * + * @param agentName The name of the agent to create a session for. + * @param createSessionRequest The createSessionRequest parameter. + * @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. + * @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 session providing a long-lived compute sandbox for hosted agent invocations along with + * {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createSessionWithResponse(String agentName, BinaryData createSessionRequest, + RequestOptions requestOptions) { + return this.serviceClient.createSessionWithResponseAsync(agentName, createSessionRequest, requestOptions); + } + + /** + * Deletes a session synchronously. + * Returns 204 No Content when the session is deleted or does not exist. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "HostedAgents=V1Preview", + * "WorkflowAgents=V1Preview", "ContainerAgents=V1Preview", "AgentEndpoints=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + * + * @param agentName The name of the agent. + * @param sessionId The session identifier. + * @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. + * @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 the {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteSessionWithResponse(String agentName, String sessionId, + RequestOptions requestOptions) { + return this.serviceClient.deleteSessionWithResponseAsync(agentName, sessionId, requestOptions); + } + /** * Updates an agent endpoint. * @@ -2727,43 +2655,109 @@ public Mono updateAgentDetails(String agentName, } /** - * Create a new agent version. + * Creates a new session for an agent endpoint. + * The endpoint resolves the backing agent version from `version_indicator` and + * enforces session ownership using the provided isolation key for session-mutating operations. * - * @param agentName The unique name that identifies the agent. Name can be used to retrieve/update/delete the agent. - * - Must start and end with alphanumeric characters, - * - Can contain hyphens in the middle - * - Must not exceed 63 characters. - * @param definition The agent definition. This can be a workflow, hosted agent, or a simple agent definition. + * @param agentName The name of the agent to create a session for. + * @param versionIndicator Determines which agent version backs the session. + * @param agentSessionId Optional caller-provided session ID. If specified, it must be unique within the agent + * endpoint. Auto-generated if omitted. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an agent session providing a long-lived compute sandbox for hosted agent invocations on successful + * completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createSession(String agentName, VersionIndicator versionIndicator, + String agentSessionId) { + // Generated convenience method for createSessionWithResponse + RequestOptions requestOptions = new RequestOptions(); + CreateSessionRequest createSessionRequestObj + = new CreateSessionRequest(versionIndicator).setAgentSessionId(agentSessionId); + BinaryData createSessionRequest = BinaryData.fromObject(createSessionRequestObj); + return createSessionWithResponse(agentName, createSessionRequest, requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(AgentSessionResource.class)); + } + + /** + * Creates a new session for an agent endpoint. + * The endpoint resolves the backing agent version from `version_indicator` and + * enforces session ownership using the provided isolation key for session-mutating operations. + * + * @param agentName The name of the agent to create a session for. + * @param versionIndicator Determines which agent version backs the session. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an agent session providing a long-lived compute sandbox for hosted agent invocations on successful + * completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createSession(String agentName, VersionIndicator versionIndicator) { + // Generated convenience method for createSessionWithResponse + RequestOptions requestOptions = new RequestOptions(); + CreateSessionRequest createSessionRequestObj = new CreateSessionRequest(versionIndicator); + BinaryData createSessionRequest = BinaryData.fromObject(createSessionRequestObj); + return createSessionWithResponse(agentName, createSessionRequest, requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(AgentSessionResource.class)); + } + + /** + * Deletes a session synchronously. + * Returns 204 No Content when the session is deleted or does not exist. + * + * @param agentName The name of the agent. + * @param sessionId The session identifier. * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted * preview resources. - * @param metadata Set of 16 key-value pairs that can be attached to an object. This can be - * useful for storing additional information about the object in a structured - * format, and querying for objects via API or the dashboard. - * - * Keys are strings with a maximum length of 64 characters. Values are strings - * with a maximum length of 512 characters. - * @param description A human-readable description of the agent. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. * @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. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ + @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createAgentVersion(String agentName, AgentDefinition definition, - AgentDefinitionOptInKeys foundryFeatures, Map metadata, String description) { - // Generated convenience method for createAgentVersionWithResponse + public Mono deleteSession(String agentName, String sessionId, AgentDefinitionOptInKeys foundryFeatures) { + // Generated convenience method for deleteSessionWithResponse RequestOptions requestOptions = new RequestOptions(); - CreateAgentVersionRequest createAgentVersionRequestObj - = new CreateAgentVersionRequest(definition).setMetadata(metadata).setDescription(description); - BinaryData createAgentVersionRequest = BinaryData.fromObject(createAgentVersionRequestObj); if (foundryFeatures != null) { requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); } - return createAgentVersionWithResponse(agentName, createAgentVersionRequest, requestOptions) - .flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(AgentVersionDetails.class)); + return deleteSessionWithResponse(agentName, sessionId, requestOptions).flatMap(FluxUtil::toMono); + } + + /** + * Deletes a session synchronously. + * Returns 204 No Content when the session is deleted or does not exist. + * + * @param agentName The name of the agent. + * @param sessionId The session identifier. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteSession(String agentName, String sessionId) { + // Generated convenience method for deleteSessionWithResponse + RequestOptions requestOptions = new RequestOptions(); + return deleteSessionWithResponse(agentName, sessionId, requestOptions).flatMap(FluxUtil::toMono); } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsClient.java index 2f8716996663..40eb32f36642 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsClient.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsClient.java @@ -76,6 +76,7 @@ public final class AgentsClient { * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -196,6 +197,7 @@ public Response getAgentWithResponse(String agentName, RequestOption * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -318,6 +320,7 @@ public void deleteAgentVersion(String agentName, String agentVersion) { * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -526,6 +529,7 @@ public AgentVersionDetails createAgentVersion(String agentName, AgentDefinition * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -652,6 +656,7 @@ Response createAgentWithResponse(BinaryData createAgentRequest, Requ * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -801,6 +806,7 @@ AgentDetails updateAgent(String agentName, AgentDefinition definition) { * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -914,6 +920,7 @@ Response createAgentFromManifestWithResponse(BinaryData createAgentF * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -1023,6 +1030,7 @@ Response updateAgentFromManifestWithResponse(String agentName, * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -1240,6 +1248,7 @@ public AgentVersionDetails createAgentVersionFromManifest(String agentName, Stri * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -1431,6 +1440,7 @@ public PagedIterable listAgentVersions(String agentName, In * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -1765,69 +1775,6 @@ Response internalDeleteAgentVersionWithResponse(String agentName, St return this.serviceClient.internalDeleteAgentVersionWithResponse(agentName, agentVersion, requestOptions); } - /** - * Creates a new session for an agent endpoint. - * The endpoint resolves the backing agent version from `version_indicator` and - * enforces session ownership using the provided isolation key for session-mutating operations. - *

Header Parameters

- * - * - * - * - *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview - * operations or modifying persisted preview resources. Allowed values: "HostedAgents=V1Preview", - * "WorkflowAgents=V1Preview", "ContainerAgents=V1Preview", "AgentEndpoints=V1Preview".
- * You can add these to a request with {@link RequestOptions#addHeader} - *

Request Body Schema

- * - *
-     * {@code
-     * {
-     *     agent_session_id: String (Optional)
-     *     version_indicator (Required): {
-     *         type: String(version_ref) (Required)
-     *     }
-     * }
-     * }
-     * 
- * - *

Response Body Schema

- * - *
-     * {@code
-     * {
-     *     agent_session_id: String (Required)
-     *     version_indicator (Required): {
-     *         type: String(version_ref) (Required)
-     *     }
-     *     status: String(creating/active/idle/updating/failed/deleting/deleted/expired) (Required)
-     *     created_at: long (Required)
-     *     last_accessed_at: long (Required)
-     *     expires_at: long (Required)
-     * }
-     * }
-     * 
- * - * @param agentName The name of the agent to create a session for. - * @param isolationKey Isolation key used by the agent endpoint to enforce session ownership for session-mutating - * operations. - * @param createSessionRequest The createSessionRequest parameter. - * @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. - * @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 session providing a long-lived compute sandbox for hosted agent invocations along with - * {@link Response}. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createSessionWithResponse(String agentName, String isolationKey, - BinaryData createSessionRequest, RequestOptions requestOptions) { - return this.serviceClient.createSessionWithResponse(agentName, isolationKey, createSessionRequest, - requestOptions); - } - /** * Retrieves a session by ID. *

Header Parameters

@@ -1873,37 +1820,6 @@ public Response getSessionWithResponse(String agentName, String sess return this.serviceClient.getSessionWithResponse(agentName, sessionId, requestOptions); } - /** - * Deletes a session synchronously. - * Returns 204 No Content when the session is deleted or does not exist. - *

Header Parameters

- * - * - * - * - *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview - * operations or modifying persisted preview resources. Allowed values: "HostedAgents=V1Preview", - * "WorkflowAgents=V1Preview", "ContainerAgents=V1Preview", "AgentEndpoints=V1Preview".
- * You can add these to a request with {@link RequestOptions#addHeader} - * - * @param agentName The name of the agent. - * @param sessionId The session identifier. - * @param isolationKey Isolation key used by the agent endpoint to enforce session ownership for session-mutating - * operations. - * @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. - * @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 the {@link Response}. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteSessionWithResponse(String agentName, String sessionId, String isolationKey, - RequestOptions requestOptions) { - return this.serviceClient.deleteSessionWithResponse(agentName, sessionId, isolationKey, requestOptions); - } - /** * Returns a list of sessions for the specified agent. *

Query Parameters

@@ -2083,67 +1999,6 @@ public AgentVersionDetails createAgentVersion(String agentName, AgentDefinition .toObject(AgentVersionDetails.class); } - /** - * Creates a new session for an agent endpoint. - * The endpoint resolves the backing agent version from `version_indicator` and - * enforces session ownership using the provided isolation key for session-mutating operations. - * - * @param agentName The name of the agent to create a session for. - * @param isolationKey Isolation key used by the agent endpoint to enforce session ownership for session-mutating - * operations. - * @param versionIndicator Determines which agent version backs the session. - * @param agentSessionId Optional caller-provided session ID. If specified, it must be unique within the agent - * endpoint. Auto-generated if omitted. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an agent session providing a long-lived compute sandbox for hosted agent invocations. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public AgentSessionResource createSession(String agentName, String isolationKey, VersionIndicator versionIndicator, - String agentSessionId) { - // Generated convenience method for createSessionWithResponse - RequestOptions requestOptions = new RequestOptions(); - CreateSessionRequest createSessionRequestObj - = new CreateSessionRequest(versionIndicator).setAgentSessionId(agentSessionId); - BinaryData createSessionRequest = BinaryData.fromObject(createSessionRequestObj); - return createSessionWithResponse(agentName, isolationKey, createSessionRequest, requestOptions).getValue() - .toObject(AgentSessionResource.class); - } - - /** - * Creates a new session for an agent endpoint. - * The endpoint resolves the backing agent version from `version_indicator` and - * enforces session ownership using the provided isolation key for session-mutating operations. - * - * @param agentName The name of the agent to create a session for. - * @param isolationKey Isolation key used by the agent endpoint to enforce session ownership for session-mutating - * operations. - * @param versionIndicator Determines which agent version backs the session. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an agent session providing a long-lived compute sandbox for hosted agent invocations. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public AgentSessionResource createSession(String agentName, String isolationKey, - VersionIndicator versionIndicator) { - // Generated convenience method for createSessionWithResponse - RequestOptions requestOptions = new RequestOptions(); - CreateSessionRequest createSessionRequestObj = new CreateSessionRequest(versionIndicator); - BinaryData createSessionRequest = BinaryData.fromObject(createSessionRequestObj); - return createSessionWithResponse(agentName, isolationKey, createSessionRequest, requestOptions).getValue() - .toObject(AgentSessionResource.class); - } - /** * Retrieves a session by ID. * @@ -2194,58 +2049,6 @@ public AgentSessionResource getSession(String agentName, String sessionId) { .toObject(AgentSessionResource.class); } - /** - * Deletes a session synchronously. - * Returns 204 No Content when the session is deleted or does not exist. - * - * @param agentName The name of the agent. - * @param sessionId The session identifier. - * @param isolationKey Isolation key used by the agent endpoint to enforce session ownership for session-mutating - * operations. - * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted - * preview resources. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteSession(String agentName, String sessionId, String isolationKey, - AgentDefinitionOptInKeys foundryFeatures) { - // Generated convenience method for deleteSessionWithResponse - RequestOptions requestOptions = new RequestOptions(); - if (foundryFeatures != null) { - requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); - } - deleteSessionWithResponse(agentName, sessionId, isolationKey, requestOptions).getValue(); - } - - /** - * Deletes a session synchronously. - * Returns 204 No Content when the session is deleted or does not exist. - * - * @param agentName The name of the agent. - * @param sessionId The session identifier. - * @param isolationKey Isolation key used by the agent endpoint to enforce session ownership for session-mutating - * operations. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteSession(String agentName, String sessionId, String isolationKey) { - // Generated convenience method for deleteSessionWithResponse - RequestOptions requestOptions = new RequestOptions(); - deleteSessionWithResponse(agentName, sessionId, isolationKey, requestOptions).getValue(); - } - /** * Returns a list of sessions for the specified agent. * @@ -2464,6 +2267,7 @@ public Response getSessionLogStreamWithResponse(String agentName, St * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -2533,6 +2337,134 @@ public Response updateAgentDetailsWithResponse(String agentName, Bin return this.serviceClient.updateAgentDetailsWithResponse(agentName, patchAgentObjectRequest, requestOptions); } + /** + * Create a new agent version. + * + * @param agentName The unique name that identifies the agent. Name can be used to retrieve/update/delete the agent. + * - Must start and end with alphanumeric characters, + * - Can contain hyphens in the middle + * - Must not exceed 63 characters. + * @param definition The agent definition. This can be a workflow, hosted agent, or a simple agent definition. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @param metadata Set of 16 key-value pairs that can be attached to an object. This can be + * useful for storing additional information about the object in a structured + * format, and querying for objects via API or the dashboard. + * + * Keys are strings with a maximum length of 64 characters. Values are strings + * with a maximum length of 512 characters. + * @param description A human-readable description of the agent. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AgentVersionDetails createAgentVersion(String agentName, AgentDefinition definition, + AgentDefinitionOptInKeys foundryFeatures, Map metadata, String description) { + // Generated convenience method for createAgentVersionWithResponse + RequestOptions requestOptions = new RequestOptions(); + CreateAgentVersionRequest createAgentVersionRequestObj + = new CreateAgentVersionRequest(definition).setMetadata(metadata).setDescription(description); + BinaryData createAgentVersionRequest = BinaryData.fromObject(createAgentVersionRequestObj); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + return createAgentVersionWithResponse(agentName, createAgentVersionRequest, requestOptions).getValue() + .toObject(AgentVersionDetails.class); + } + + /** + * Creates a new session for an agent endpoint. + * The endpoint resolves the backing agent version from `version_indicator` and + * enforces session ownership using the provided isolation key for session-mutating operations. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "HostedAgents=V1Preview", + * "WorkflowAgents=V1Preview", "ContainerAgents=V1Preview", "AgentEndpoints=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     agent_session_id: String (Optional)
+     *     version_indicator (Required): {
+     *         type: String(version_ref) (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     agent_session_id: String (Required)
+     *     version_indicator (Required): {
+     *         type: String(version_ref) (Required)
+     *     }
+     *     status: String(creating/active/idle/updating/failed/deleting/deleted/expired) (Required)
+     *     created_at: long (Required)
+     *     last_accessed_at: long (Required)
+     *     expires_at: long (Required)
+     * }
+     * }
+     * 
+ * + * @param agentName The name of the agent to create a session for. + * @param createSessionRequest The createSessionRequest parameter. + * @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. + * @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 session providing a long-lived compute sandbox for hosted agent invocations along with + * {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createSessionWithResponse(String agentName, BinaryData createSessionRequest, + RequestOptions requestOptions) { + return this.serviceClient.createSessionWithResponse(agentName, createSessionRequest, requestOptions); + } + + /** + * Deletes a session synchronously. + * Returns 204 No Content when the session is deleted or does not exist. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "HostedAgents=V1Preview", + * "WorkflowAgents=V1Preview", "ContainerAgents=V1Preview", "AgentEndpoints=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + * + * @param agentName The name of the agent. + * @param sessionId The session identifier. + * @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. + * @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 the {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response deleteSessionWithResponse(String agentName, String sessionId, RequestOptions requestOptions) { + return this.serviceClient.deleteSessionWithResponse(agentName, sessionId, requestOptions); + } + /** * Updates an agent endpoint. * @@ -2598,42 +2530,105 @@ public AgentDetails updateAgentDetails(String agentName, UpdateAgentDetailsPatch } /** - * Create a new agent version. + * Creates a new session for an agent endpoint. + * The endpoint resolves the backing agent version from `version_indicator` and + * enforces session ownership using the provided isolation key for session-mutating operations. * - * @param agentName The unique name that identifies the agent. Name can be used to retrieve/update/delete the agent. - * - Must start and end with alphanumeric characters, - * - Can contain hyphens in the middle - * - Must not exceed 63 characters. - * @param definition The agent definition. This can be a workflow, hosted agent, or a simple agent definition. + * @param agentName The name of the agent to create a session for. + * @param versionIndicator Determines which agent version backs the session. + * @param agentSessionId Optional caller-provided session ID. If specified, it must be unique within the agent + * endpoint. Auto-generated if omitted. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an agent session providing a long-lived compute sandbox for hosted agent invocations. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public AgentSessionResource createSession(String agentName, VersionIndicator versionIndicator, + String agentSessionId) { + // Generated convenience method for createSessionWithResponse + RequestOptions requestOptions = new RequestOptions(); + CreateSessionRequest createSessionRequestObj + = new CreateSessionRequest(versionIndicator).setAgentSessionId(agentSessionId); + BinaryData createSessionRequest = BinaryData.fromObject(createSessionRequestObj); + return createSessionWithResponse(agentName, createSessionRequest, requestOptions).getValue() + .toObject(AgentSessionResource.class); + } + + /** + * Creates a new session for an agent endpoint. + * The endpoint resolves the backing agent version from `version_indicator` and + * enforces session ownership using the provided isolation key for session-mutating operations. + * + * @param agentName The name of the agent to create a session for. + * @param versionIndicator Determines which agent version backs the session. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an agent session providing a long-lived compute sandbox for hosted agent invocations. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public AgentSessionResource createSession(String agentName, VersionIndicator versionIndicator) { + // Generated convenience method for createSessionWithResponse + RequestOptions requestOptions = new RequestOptions(); + CreateSessionRequest createSessionRequestObj = new CreateSessionRequest(versionIndicator); + BinaryData createSessionRequest = BinaryData.fromObject(createSessionRequestObj); + return createSessionWithResponse(agentName, createSessionRequest, requestOptions).getValue() + .toObject(AgentSessionResource.class); + } + + /** + * Deletes a session synchronously. + * Returns 204 No Content when the session is deleted or does not exist. + * + * @param agentName The name of the agent. + * @param sessionId The session identifier. * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted * preview resources. - * @param metadata Set of 16 key-value pairs that can be attached to an object. This can be - * useful for storing additional information about the object in a structured - * format, and querying for objects via API or the dashboard. - * - * Keys are strings with a maximum length of 64 characters. Values are strings - * with a maximum length of 512 characters. - * @param description A human-readable description of the agent. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. * @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. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. */ + @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public AgentVersionDetails createAgentVersion(String agentName, AgentDefinition definition, - AgentDefinitionOptInKeys foundryFeatures, Map metadata, String description) { - // Generated convenience method for createAgentVersionWithResponse + public void deleteSession(String agentName, String sessionId, AgentDefinitionOptInKeys foundryFeatures) { + // Generated convenience method for deleteSessionWithResponse RequestOptions requestOptions = new RequestOptions(); - CreateAgentVersionRequest createAgentVersionRequestObj - = new CreateAgentVersionRequest(definition).setMetadata(metadata).setDescription(description); - BinaryData createAgentVersionRequest = BinaryData.fromObject(createAgentVersionRequestObj); if (foundryFeatures != null) { requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); } - return createAgentVersionWithResponse(agentName, createAgentVersionRequest, requestOptions).getValue() - .toObject(AgentVersionDetails.class); + deleteSessionWithResponse(agentName, sessionId, requestOptions).getValue(); + } + + /** + * Deletes a session synchronously. + * Returns 204 No Content when the session is deleted or does not exist. + * + * @param agentName The name of the agent. + * @param sessionId The session identifier. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public void deleteSession(String agentName, String sessionId) { + // Generated convenience method for deleteSessionWithResponse + RequestOptions requestOptions = new RequestOptions(); + deleteSessionWithResponse(agentName, sessionId, requestOptions).getValue(); } } 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 5d90fd4b70a8..ecc5ca171573 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 @@ -64,7 +64,7 @@ public final class ToolboxesAsyncClient { * } * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -91,7 +91,7 @@ public final class ToolboxesAsyncClient { * created_at: long (Required) * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -103,7 +103,7 @@ public final class ToolboxesAsyncClient { * } * * - * @param toolboxName The name of the toolbox. If the toolbox does not exist, it will be created. + * @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. * @throws HttpResponseException thrown if the request is rejected by server. @@ -114,9 +114,9 @@ public final class ToolboxesAsyncClient { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createToolboxVersionWithResponse(String toolboxName, + public Mono> createToolboxVersionWithResponse(String name, BinaryData createToolboxVersionRequest, RequestOptions requestOptions) { - return this.serviceClient.createToolboxVersionWithResponseAsync(toolboxName, createToolboxVersionRequest, + return this.serviceClient.createToolboxVersionWithResponseAsync(name, createToolboxVersionRequest, requestOptions); } @@ -134,7 +134,7 @@ public Mono> createToolboxVersionWithResponse(String toolbo * } * * - * @param toolboxName The name of the toolbox to retrieve. + * @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. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -145,8 +145,8 @@ public Mono> createToolboxVersionWithResponse(String toolbo */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getToolboxWithResponse(String toolboxName, RequestOptions requestOptions) { - return this.serviceClient.getToolboxWithResponseAsync(toolboxName, requestOptions); + public Mono> getToolboxWithResponse(String name, RequestOptions requestOptions) { + return this.serviceClient.getToolboxWithResponseAsync(name, requestOptions); } /** @@ -233,7 +233,7 @@ public PagedFlux listToolboxes(RequestOptions requestOptions) { * created_at: long (Required) * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -245,7 +245,7 @@ public PagedFlux listToolboxes(RequestOptions requestOptions) { * } * * - * @param toolboxName The name of the toolbox to list versions for. + * @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. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -255,8 +255,8 @@ public PagedFlux listToolboxes(RequestOptions requestOptions) { */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listToolboxVersions(String toolboxName, RequestOptions requestOptions) { - return this.serviceClient.listToolboxVersionsAsync(toolboxName, requestOptions); + public PagedFlux listToolboxVersions(String name, RequestOptions requestOptions) { + return this.serviceClient.listToolboxVersionsAsync(name, requestOptions); } /** @@ -276,7 +276,7 @@ public PagedFlux listToolboxVersions(String toolboxName, RequestOpti * created_at: long (Required) * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -288,7 +288,7 @@ public PagedFlux listToolboxVersions(String toolboxName, RequestOpti * } * * - * @param toolboxName The name of the toolbox. + * @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. * @throws HttpResponseException thrown if the request is rejected by server. @@ -299,9 +299,9 @@ public PagedFlux listToolboxVersions(String toolboxName, RequestOpti */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getToolboxVersionWithResponse(String toolboxName, String version, + public Mono> getToolboxVersionWithResponse(String name, String version, RequestOptions requestOptions) { - return this.serviceClient.getToolboxVersionWithResponseAsync(toolboxName, version, requestOptions); + return this.serviceClient.getToolboxVersionWithResponseAsync(name, version, requestOptions); } /** @@ -328,7 +328,7 @@ public Mono> getToolboxVersionWithResponse(String toolboxNa * } * * - * @param toolboxName The name of the toolbox to update. + * @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. * @throws HttpResponseException thrown if the request is rejected by server. @@ -340,15 +340,15 @@ public Mono> getToolboxVersionWithResponse(String toolboxNa */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateToolboxWithResponse(String toolboxName, BinaryData updateToolboxRequest, + public Mono> updateToolboxWithResponse(String name, BinaryData updateToolboxRequest, RequestOptions requestOptions) { - return this.serviceClient.updateToolboxWithResponseAsync(toolboxName, updateToolboxRequest, requestOptions); + return this.serviceClient.updateToolboxWithResponseAsync(name, updateToolboxRequest, requestOptions); } /** * Delete a toolbox and all its versions. * - * @param toolboxName The name of the toolbox to delete. + * @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. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -358,14 +358,14 @@ public Mono> updateToolboxWithResponse(String toolboxName, */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteToolboxWithResponse(String toolboxName, RequestOptions requestOptions) { - return this.serviceClient.deleteToolboxWithResponseAsync(toolboxName, requestOptions); + public Mono> deleteToolboxWithResponse(String name, RequestOptions requestOptions) { + return this.serviceClient.deleteToolboxWithResponseAsync(name, requestOptions); } /** * Delete a specific version of a toolbox. * - * @param toolboxName The name of the 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. * @throws HttpResponseException thrown if the request is rejected by server. @@ -376,15 +376,15 @@ public Mono> deleteToolboxWithResponse(String toolboxName, Reques */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteToolboxVersionWithResponse(String toolboxName, String version, + public Mono> deleteToolboxVersionWithResponse(String name, String version, RequestOptions requestOptions) { - return this.serviceClient.deleteToolboxVersionWithResponseAsync(toolboxName, version, requestOptions); + return this.serviceClient.deleteToolboxVersionWithResponseAsync(name, version, requestOptions); } /** * Create a new version of a toolbox. If the toolbox does not exist, it will be created. * - * @param toolboxName The name of the toolbox. If the toolbox does not exist, it will be created. + * @param name The name of the toolbox. If the toolbox does not exist, it will be created. * @param tools The list of tools to include in this version. * @param description A human-readable description of the toolbox. * @param metadata Arbitrary key-value metadata to associate with the toolbox. @@ -399,7 +399,7 @@ public Mono> deleteToolboxVersionWithResponse(String toolboxName, */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createToolboxVersion(String toolboxName, List tools, String description, + public Mono createToolboxVersion(String name, List tools, String description, Map metadata, ToolboxPolicies policies) { // Generated convenience method for createToolboxVersionWithResponse RequestOptions requestOptions = new RequestOptions(); @@ -408,7 +408,7 @@ public Mono createToolboxVersion(String toolboxName, List .setMetadata(metadata) .setPolicies(policies); BinaryData createToolboxVersionRequest = BinaryData.fromObject(createToolboxVersionRequestObj); - return createToolboxVersionWithResponse(toolboxName, createToolboxVersionRequest, requestOptions) + return createToolboxVersionWithResponse(name, createToolboxVersionRequest, requestOptions) .flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(ToolboxVersionDetails.class)); } @@ -416,7 +416,7 @@ public Mono createToolboxVersion(String toolboxName, List /** * Create a new version of a toolbox. If the toolbox does not exist, it will be created. * - * @param toolboxName The name of the toolbox. If the toolbox does not exist, it will be created. + * @param name The name of the toolbox. If the toolbox does not exist, it will be created. * @param tools The list of tools to include in this version. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -428,12 +428,12 @@ public Mono createToolboxVersion(String toolboxName, List */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createToolboxVersion(String toolboxName, List tools) { + public Mono createToolboxVersion(String name, List tools) { // Generated convenience method for createToolboxVersionWithResponse RequestOptions requestOptions = new RequestOptions(); CreateToolboxVersionRequest createToolboxVersionRequestObj = new CreateToolboxVersionRequest(tools); BinaryData createToolboxVersionRequest = BinaryData.fromObject(createToolboxVersionRequestObj); - return createToolboxVersionWithResponse(toolboxName, createToolboxVersionRequest, requestOptions) + return createToolboxVersionWithResponse(name, createToolboxVersionRequest, requestOptions) .flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(ToolboxVersionDetails.class)); } @@ -441,7 +441,7 @@ public Mono createToolboxVersion(String toolboxName, List /** * Retrieve a toolbox. * - * @param toolboxName The name of the toolbox to retrieve. + * @param name The name of the toolbox to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -452,10 +452,10 @@ public Mono createToolboxVersion(String toolboxName, List */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getToolbox(String toolboxName) { + public Mono getToolbox(String name) { // Generated convenience method for getToolboxWithResponse RequestOptions requestOptions = new RequestOptions(); - return getToolboxWithResponse(toolboxName, requestOptions).flatMap(FluxUtil::toMono) + return getToolboxWithResponse(name, requestOptions).flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(ToolboxDetails.class)); } @@ -545,7 +545,7 @@ public PagedFlux listToolboxes() { /** * List all versions of a toolbox. * - * @param toolboxName The name of the toolbox to list versions for. + * @param name The name of the toolbox to list versions for. * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the * default is 20. * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` @@ -566,7 +566,7 @@ public PagedFlux listToolboxes() { */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listToolboxVersions(String toolboxName, Integer limit, PageOrder order, + public PagedFlux listToolboxVersions(String name, Integer limit, PageOrder order, String after, String before) { // Generated convenience method for listToolboxVersions RequestOptions requestOptions = new RequestOptions(); @@ -582,7 +582,7 @@ public PagedFlux listToolboxVersions(String toolboxName, if (before != null) { requestOptions.addQueryParam("before", before, false); } - PagedFlux pagedFluxResponse = listToolboxVersions(toolboxName, requestOptions); + PagedFlux pagedFluxResponse = listToolboxVersions(name, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux = (continuationTokenParam == null) ? pagedFluxResponse.byPage().take(1) @@ -601,7 +601,7 @@ public PagedFlux listToolboxVersions(String toolboxName, /** * List all versions of a toolbox. * - * @param toolboxName The name of the toolbox to list versions for. + * @param name The name of the toolbox to list versions for. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -612,10 +612,10 @@ public PagedFlux listToolboxVersions(String toolboxName, */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listToolboxVersions(String toolboxName) { + public PagedFlux listToolboxVersions(String name) { // Generated convenience method for listToolboxVersions RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listToolboxVersions(toolboxName, requestOptions); + PagedFlux pagedFluxResponse = listToolboxVersions(name, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux = (continuationTokenParam == null) ? pagedFluxResponse.byPage().take(1) @@ -634,7 +634,7 @@ public PagedFlux listToolboxVersions(String toolboxName) /** * Retrieve a specific version of a toolbox. * - * @param toolboxName The name of the toolbox. + * @param name The name of the toolbox. * @param version The version identifier to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -646,17 +646,17 @@ public PagedFlux listToolboxVersions(String toolboxName) */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getToolboxVersion(String toolboxName, String version) { + public Mono getToolboxVersion(String name, String version) { // Generated convenience method for getToolboxVersionWithResponse RequestOptions requestOptions = new RequestOptions(); - return getToolboxVersionWithResponse(toolboxName, version, requestOptions).flatMap(FluxUtil::toMono) + return getToolboxVersionWithResponse(name, version, requestOptions).flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(ToolboxVersionDetails.class)); } /** * Update a toolbox to point to a specific version. * - * @param toolboxName The name of the toolbox to update. + * @param name The name of the toolbox to update. * @param defaultVersion The version identifier that the toolbox should point to. When set, the toolbox's default * version will resolve to this version instead of the latest. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -669,19 +669,19 @@ public Mono getToolboxVersion(String toolboxName, String */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateToolbox(String toolboxName, String defaultVersion) { + public Mono updateToolbox(String name, String defaultVersion) { // Generated convenience method for updateToolboxWithResponse RequestOptions requestOptions = new RequestOptions(); UpdateToolboxRequest updateToolboxRequestObj = new UpdateToolboxRequest(defaultVersion); BinaryData updateToolboxRequest = BinaryData.fromObject(updateToolboxRequestObj); - return updateToolboxWithResponse(toolboxName, updateToolboxRequest, requestOptions).flatMap(FluxUtil::toMono) + return updateToolboxWithResponse(name, updateToolboxRequest, requestOptions).flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(ToolboxDetails.class)); } /** * Delete a toolbox and all its versions. * - * @param toolboxName The name of the toolbox to delete. + * @param name The name of the toolbox to delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -692,16 +692,16 @@ public Mono updateToolbox(String toolboxName, String defaultVers */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteToolbox(String toolboxName) { + public Mono deleteToolbox(String name) { // Generated convenience method for deleteToolboxWithResponse RequestOptions requestOptions = new RequestOptions(); - return deleteToolboxWithResponse(toolboxName, requestOptions).flatMap(FluxUtil::toMono); + return deleteToolboxWithResponse(name, requestOptions).flatMap(FluxUtil::toMono); } /** * Delete a specific version of a toolbox. * - * @param toolboxName The name of the toolbox. + * @param name The name of the toolbox. * @param version The version identifier to delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -713,9 +713,9 @@ public Mono deleteToolbox(String toolboxName) { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteToolboxVersion(String toolboxName, String version) { + public Mono deleteToolboxVersion(String name, String version) { // Generated convenience method for deleteToolboxVersionWithResponse RequestOptions requestOptions = new RequestOptions(); - return deleteToolboxVersionWithResponse(toolboxName, version, requestOptions).flatMap(FluxUtil::toMono); + return deleteToolboxVersionWithResponse(name, version, requestOptions).flatMap(FluxUtil::toMono); } } 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 890d5d655491..f07483a6da32 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 @@ -58,7 +58,7 @@ public final class ToolboxesClient { * } * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -85,7 +85,7 @@ public final class ToolboxesClient { * created_at: long (Required) * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -97,7 +97,7 @@ public final class ToolboxesClient { * } * * - * @param toolboxName The name of the toolbox. If the toolbox does not exist, it will be created. + * @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. * @throws HttpResponseException thrown if the request is rejected by server. @@ -108,10 +108,9 @@ public final class ToolboxesClient { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response createToolboxVersionWithResponse(String toolboxName, - BinaryData createToolboxVersionRequest, RequestOptions requestOptions) { - return this.serviceClient.createToolboxVersionWithResponse(toolboxName, createToolboxVersionRequest, - requestOptions); + public Response createToolboxVersionWithResponse(String name, BinaryData createToolboxVersionRequest, + RequestOptions requestOptions) { + return this.serviceClient.createToolboxVersionWithResponse(name, createToolboxVersionRequest, requestOptions); } /** @@ -128,7 +127,7 @@ public Response createToolboxVersionWithResponse(String toolboxName, * } * * - * @param toolboxName The name of the toolbox to retrieve. + * @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. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -138,8 +137,8 @@ public Response createToolboxVersionWithResponse(String toolboxName, */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response getToolboxWithResponse(String toolboxName, RequestOptions requestOptions) { - return this.serviceClient.getToolboxWithResponse(toolboxName, requestOptions); + public Response getToolboxWithResponse(String name, RequestOptions requestOptions) { + return this.serviceClient.getToolboxWithResponse(name, requestOptions); } /** @@ -226,7 +225,7 @@ public PagedIterable listToolboxes(RequestOptions requestOptions) { * created_at: long (Required) * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -238,7 +237,7 @@ public PagedIterable listToolboxes(RequestOptions requestOptions) { * } * * - * @param toolboxName The name of the toolbox to list versions for. + * @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. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -248,8 +247,8 @@ public PagedIterable listToolboxes(RequestOptions requestOptions) { */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listToolboxVersions(String toolboxName, RequestOptions requestOptions) { - return this.serviceClient.listToolboxVersions(toolboxName, requestOptions); + public PagedIterable listToolboxVersions(String name, RequestOptions requestOptions) { + return this.serviceClient.listToolboxVersions(name, requestOptions); } /** @@ -269,7 +268,7 @@ public PagedIterable listToolboxVersions(String toolboxName, Request * created_at: long (Required) * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -281,7 +280,7 @@ public PagedIterable listToolboxVersions(String toolboxName, Request * } * * - * @param toolboxName The name of the toolbox. + * @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. * @throws HttpResponseException thrown if the request is rejected by server. @@ -292,9 +291,9 @@ public PagedIterable listToolboxVersions(String toolboxName, Request */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response getToolboxVersionWithResponse(String toolboxName, String version, + public Response getToolboxVersionWithResponse(String name, String version, RequestOptions requestOptions) { - return this.serviceClient.getToolboxVersionWithResponse(toolboxName, version, requestOptions); + return this.serviceClient.getToolboxVersionWithResponse(name, version, requestOptions); } /** @@ -321,7 +320,7 @@ public Response getToolboxVersionWithResponse(String toolboxName, St * } * * - * @param toolboxName The name of the toolbox to update. + * @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. * @throws HttpResponseException thrown if the request is rejected by server. @@ -332,15 +331,15 @@ public Response getToolboxVersionWithResponse(String toolboxName, St */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateToolboxWithResponse(String toolboxName, BinaryData updateToolboxRequest, + public Response updateToolboxWithResponse(String name, BinaryData updateToolboxRequest, RequestOptions requestOptions) { - return this.serviceClient.updateToolboxWithResponse(toolboxName, updateToolboxRequest, requestOptions); + return this.serviceClient.updateToolboxWithResponse(name, updateToolboxRequest, requestOptions); } /** * Delete a toolbox and all its versions. * - * @param toolboxName The name of the toolbox to delete. + * @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. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -350,14 +349,14 @@ public Response updateToolboxWithResponse(String toolboxName, Binary */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteToolboxWithResponse(String toolboxName, RequestOptions requestOptions) { - return this.serviceClient.deleteToolboxWithResponse(toolboxName, requestOptions); + public Response deleteToolboxWithResponse(String name, RequestOptions requestOptions) { + return this.serviceClient.deleteToolboxWithResponse(name, requestOptions); } /** * Delete a specific version of a toolbox. * - * @param toolboxName The name of the 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. * @throws HttpResponseException thrown if the request is rejected by server. @@ -368,15 +367,14 @@ public Response deleteToolboxWithResponse(String toolboxName, RequestOptio */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteToolboxVersionWithResponse(String toolboxName, String version, - RequestOptions requestOptions) { - return this.serviceClient.deleteToolboxVersionWithResponse(toolboxName, version, requestOptions); + public Response deleteToolboxVersionWithResponse(String name, String version, RequestOptions requestOptions) { + return this.serviceClient.deleteToolboxVersionWithResponse(name, version, requestOptions); } /** * Create a new version of a toolbox. If the toolbox does not exist, it will be created. * - * @param toolboxName The name of the toolbox. If the toolbox does not exist, it will be created. + * @param name The name of the toolbox. If the toolbox does not exist, it will be created. * @param tools The list of tools to include in this version. * @param description A human-readable description of the toolbox. * @param metadata Arbitrary key-value metadata to associate with the toolbox. @@ -391,7 +389,7 @@ public Response deleteToolboxVersionWithResponse(String toolboxName, Strin */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public ToolboxVersionDetails createToolboxVersion(String toolboxName, List tools, String description, + public ToolboxVersionDetails createToolboxVersion(String name, List tools, String description, Map metadata, ToolboxPolicies policies) { // Generated convenience method for createToolboxVersionWithResponse RequestOptions requestOptions = new RequestOptions(); @@ -400,14 +398,14 @@ public ToolboxVersionDetails createToolboxVersion(String toolboxName, List .setMetadata(metadata) .setPolicies(policies); BinaryData createToolboxVersionRequest = BinaryData.fromObject(createToolboxVersionRequestObj); - return createToolboxVersionWithResponse(toolboxName, createToolboxVersionRequest, requestOptions).getValue() + return createToolboxVersionWithResponse(name, createToolboxVersionRequest, requestOptions).getValue() .toObject(ToolboxVersionDetails.class); } /** * Create a new version of a toolbox. If the toolbox does not exist, it will be created. * - * @param toolboxName The name of the toolbox. If the toolbox does not exist, it will be created. + * @param name The name of the toolbox. If the toolbox does not exist, it will be created. * @param tools The list of tools to include in this version. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -419,19 +417,19 @@ public ToolboxVersionDetails createToolboxVersion(String toolboxName, List */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public ToolboxVersionDetails createToolboxVersion(String toolboxName, List tools) { + public ToolboxVersionDetails createToolboxVersion(String name, List tools) { // Generated convenience method for createToolboxVersionWithResponse RequestOptions requestOptions = new RequestOptions(); CreateToolboxVersionRequest createToolboxVersionRequestObj = new CreateToolboxVersionRequest(tools); BinaryData createToolboxVersionRequest = BinaryData.fromObject(createToolboxVersionRequestObj); - return createToolboxVersionWithResponse(toolboxName, createToolboxVersionRequest, requestOptions).getValue() + return createToolboxVersionWithResponse(name, createToolboxVersionRequest, requestOptions).getValue() .toObject(ToolboxVersionDetails.class); } /** * Retrieve a toolbox. * - * @param toolboxName The name of the toolbox to retrieve. + * @param name The name of the toolbox to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -442,10 +440,10 @@ public ToolboxVersionDetails createToolboxVersion(String toolboxName, List */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public ToolboxDetails getToolbox(String toolboxName) { + public ToolboxDetails getToolbox(String name) { // Generated convenience method for getToolboxWithResponse RequestOptions requestOptions = new RequestOptions(); - return getToolboxWithResponse(toolboxName, requestOptions).getValue().toObject(ToolboxDetails.class); + return getToolboxWithResponse(name, requestOptions).getValue().toObject(ToolboxDetails.class); } /** @@ -512,7 +510,7 @@ public PagedIterable listToolboxes() { /** * List all versions of a toolbox. * - * @param toolboxName The name of the toolbox to list versions for. + * @param name The name of the toolbox to list versions for. * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the * default is 20. * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` @@ -533,7 +531,7 @@ public PagedIterable listToolboxes() { */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listToolboxVersions(String toolboxName, Integer limit, PageOrder order, + public PagedIterable listToolboxVersions(String name, Integer limit, PageOrder order, String after, String before) { // Generated convenience method for listToolboxVersions RequestOptions requestOptions = new RequestOptions(); @@ -549,14 +547,14 @@ public PagedIterable listToolboxVersions(String toolboxNa if (before != null) { requestOptions.addQueryParam("before", before, false); } - return serviceClient.listToolboxVersions(toolboxName, requestOptions) + return serviceClient.listToolboxVersions(name, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(ToolboxVersionDetails.class)); } /** * List all versions of a toolbox. * - * @param toolboxName The name of the toolbox to list versions for. + * @param name The name of the toolbox to list versions for. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -567,17 +565,17 @@ public PagedIterable listToolboxVersions(String toolboxNa */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listToolboxVersions(String toolboxName) { + public PagedIterable listToolboxVersions(String name) { // Generated convenience method for listToolboxVersions RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listToolboxVersions(toolboxName, requestOptions) + return serviceClient.listToolboxVersions(name, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(ToolboxVersionDetails.class)); } /** * Retrieve a specific version of a toolbox. * - * @param toolboxName The name of the toolbox. + * @param name The name of the toolbox. * @param version The version identifier to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -589,17 +587,17 @@ public PagedIterable listToolboxVersions(String toolboxNa */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public ToolboxVersionDetails getToolboxVersion(String toolboxName, String version) { + public ToolboxVersionDetails getToolboxVersion(String name, String version) { // Generated convenience method for getToolboxVersionWithResponse RequestOptions requestOptions = new RequestOptions(); - return getToolboxVersionWithResponse(toolboxName, version, requestOptions).getValue() + return getToolboxVersionWithResponse(name, version, requestOptions).getValue() .toObject(ToolboxVersionDetails.class); } /** * Update a toolbox to point to a specific version. * - * @param toolboxName The name of the toolbox to update. + * @param name The name of the toolbox to update. * @param defaultVersion The version identifier that the toolbox should point to. When set, the toolbox's default * version will resolve to this version instead of the latest. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -612,19 +610,19 @@ public ToolboxVersionDetails getToolboxVersion(String toolboxName, String versio */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public ToolboxDetails updateToolbox(String toolboxName, String defaultVersion) { + public ToolboxDetails updateToolbox(String name, String defaultVersion) { // Generated convenience method for updateToolboxWithResponse RequestOptions requestOptions = new RequestOptions(); UpdateToolboxRequest updateToolboxRequestObj = new UpdateToolboxRequest(defaultVersion); BinaryData updateToolboxRequest = BinaryData.fromObject(updateToolboxRequestObj); - return updateToolboxWithResponse(toolboxName, updateToolboxRequest, requestOptions).getValue() + return updateToolboxWithResponse(name, updateToolboxRequest, requestOptions).getValue() .toObject(ToolboxDetails.class); } /** * Delete a toolbox and all its versions. * - * @param toolboxName The name of the toolbox to delete. + * @param name The name of the toolbox to delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -634,16 +632,16 @@ public ToolboxDetails updateToolbox(String toolboxName, String defaultVersion) { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteToolbox(String toolboxName) { + public void deleteToolbox(String name) { // Generated convenience method for deleteToolboxWithResponse RequestOptions requestOptions = new RequestOptions(); - deleteToolboxWithResponse(toolboxName, requestOptions).getValue(); + deleteToolboxWithResponse(name, requestOptions).getValue(); } /** * Delete a specific version of a toolbox. * - * @param toolboxName The name of the toolbox. + * @param name The name of the toolbox. * @param version The version identifier to delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -654,9 +652,9 @@ public void deleteToolbox(String toolboxName) { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteToolboxVersion(String toolboxName, String version) { + public void deleteToolboxVersion(String name, String version) { // Generated convenience method for deleteToolboxVersionWithResponse RequestOptions requestOptions = new RequestOptions(); - deleteToolboxVersionWithResponse(toolboxName, version, requestOptions).getValue(); + deleteToolboxVersionWithResponse(name, version, requestOptions).getValue(); } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentSessionFilesImpl.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentSessionFilesImpl.java index 2bca3680c34d..a303a4934615 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentSessionFilesImpl.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentSessionFilesImpl.java @@ -72,93 +72,93 @@ public AgentsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AgentsClientAgentSessionFiles") public interface AgentSessionFilesService { - @Put("/agents/{agent_name}/endpoint/sessions/{session_id}/files/content") + @Put("/agents/{agent_name}/endpoint/sessions/{agent_session_id}/files/content") @ExpectedResponses({ 201 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> uploadSessionFile(@HostParam("endpoint") String endpoint, - @PathParam("agent_name") String agentName, @PathParam("session_id") String sessionId, + @PathParam("agent_name") String agentName, @PathParam("agent_session_id") String agentSessionId, @QueryParam("path") String path, @HeaderParam("Content-Type") String contentType, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @BodyParam("application/octet-stream") BinaryData content, RequestOptions requestOptions, Context context); - @Put("/agents/{agent_name}/endpoint/sessions/{session_id}/files/content") + @Put("/agents/{agent_name}/endpoint/sessions/{agent_session_id}/files/content") @ExpectedResponses({ 201 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response uploadSessionFileSync(@HostParam("endpoint") String endpoint, - @PathParam("agent_name") String agentName, @PathParam("session_id") String sessionId, + @PathParam("agent_name") String agentName, @PathParam("agent_session_id") String agentSessionId, @QueryParam("path") String path, @HeaderParam("Content-Type") String contentType, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @BodyParam("application/octet-stream") BinaryData content, RequestOptions requestOptions, Context context); - @Get("/agents/{agent_name}/endpoint/sessions/{session_id}/files/content") + @Get("/agents/{agent_name}/endpoint/sessions/{agent_session_id}/files/content") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> downloadSessionFile(@HostParam("endpoint") String endpoint, - @PathParam("agent_name") String agentName, @PathParam("session_id") String sessionId, + @PathParam("agent_name") String agentName, @PathParam("agent_session_id") String agentSessionId, @QueryParam("path") String path, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); - @Get("/agents/{agent_name}/endpoint/sessions/{session_id}/files/content") + @Get("/agents/{agent_name}/endpoint/sessions/{agent_session_id}/files/content") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response downloadSessionFileSync(@HostParam("endpoint") String endpoint, - @PathParam("agent_name") String agentName, @PathParam("session_id") String sessionId, + @PathParam("agent_name") String agentName, @PathParam("agent_session_id") String agentSessionId, @QueryParam("path") String path, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); - @Get("/agents/{agent_name}/endpoint/sessions/{session_id}/files") + @Get("/agents/{agent_name}/endpoint/sessions/{agent_session_id}/files") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getSessionFiles(@HostParam("endpoint") String endpoint, - @PathParam("agent_name") String agentName, @PathParam("session_id") String sessionId, + @PathParam("agent_name") String agentName, @PathParam("agent_session_id") String agentSessionId, @QueryParam("path") String path, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); - @Get("/agents/{agent_name}/endpoint/sessions/{session_id}/files") + @Get("/agents/{agent_name}/endpoint/sessions/{agent_session_id}/files") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response getSessionFilesSync(@HostParam("endpoint") String endpoint, - @PathParam("agent_name") String agentName, @PathParam("session_id") String sessionId, + @PathParam("agent_name") String agentName, @PathParam("agent_session_id") String agentSessionId, @QueryParam("path") String path, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); - @Delete("/agents/{agent_name}/endpoint/sessions/{session_id}/files") + @Delete("/agents/{agent_name}/endpoint/sessions/{agent_session_id}/files") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> deleteSessionFile(@HostParam("endpoint") String endpoint, - @PathParam("agent_name") String agentName, @PathParam("session_id") String sessionId, + @PathParam("agent_name") String agentName, @PathParam("agent_session_id") String agentSessionId, @QueryParam("path") String path, @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); - @Delete("/agents/{agent_name}/endpoint/sessions/{session_id}/files") + @Delete("/agents/{agent_name}/endpoint/sessions/{agent_session_id}/files") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response deleteSessionFileSync(@HostParam("endpoint") String endpoint, - @PathParam("agent_name") String agentName, @PathParam("session_id") String sessionId, + @PathParam("agent_name") String agentName, @PathParam("agent_session_id") String agentSessionId, @QueryParam("path") String path, @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); } @@ -195,7 +195,7 @@ Response deleteSessionFileSync(@HostParam("endpoint") String endpoint, * * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The destination file path within the sandbox, relative to the session home directory. * @param content The content parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -207,12 +207,12 @@ Response deleteSessionFileSync(@HostParam("endpoint") String endpoint, * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> uploadSessionFileWithResponseAsync(String agentName, String sessionId, + public Mono> uploadSessionFileWithResponseAsync(String agentName, String agentSessionId, String path, BinaryData content, RequestOptions requestOptions) { final String contentType = "application/octet-stream"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.uploadSessionFile(this.client.getEndpoint(), agentName, sessionId, path, + return FluxUtil.withContext( + context -> service.uploadSessionFile(this.client.getEndpoint(), agentName, agentSessionId, path, contentType, this.client.getServiceVersion().getVersion(), accept, content, requestOptions, context)); } @@ -248,7 +248,7 @@ public Mono> uploadSessionFileWithResponseAsync(String agen * * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The destination file path within the sandbox, relative to the session home directory. * @param content The content parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -259,11 +259,11 @@ public Mono> uploadSessionFileWithResponseAsync(String agen * @return response from uploading a file to a session sandbox along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response uploadSessionFileWithResponse(String agentName, String sessionId, String path, + public Response uploadSessionFileWithResponse(String agentName, String agentSessionId, String path, BinaryData content, RequestOptions requestOptions) { final String contentType = "application/octet-stream"; final String accept = "application/json"; - return service.uploadSessionFileSync(this.client.getEndpoint(), agentName, sessionId, path, contentType, + return service.uploadSessionFileSync(this.client.getEndpoint(), agentName, agentSessionId, path, contentType, this.client.getServiceVersion().getVersion(), accept, content, requestOptions, Context.NONE); } @@ -287,7 +287,7 @@ public Response uploadSessionFileWithResponse(String agentName, Stri * * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The file path to download from the sandbox, relative to the session home directory. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -297,11 +297,11 @@ public Response uploadSessionFileWithResponse(String agentName, Stri * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> downloadSessionFileWithResponseAsync(String agentName, String sessionId, + public Mono> downloadSessionFileWithResponseAsync(String agentName, String agentSessionId, String path, RequestOptions requestOptions) { final String accept = "application/octet-stream"; return FluxUtil.withContext(context -> service.downloadSessionFile(this.client.getEndpoint(), agentName, - sessionId, path, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); + agentSessionId, path, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); } /** @@ -324,7 +324,7 @@ public Mono> downloadSessionFileWithResponseAsync(String ag * * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The file path to download from the sandbox, relative to the session home directory. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -334,10 +334,10 @@ public Mono> downloadSessionFileWithResponseAsync(String ag * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response downloadSessionFileWithResponse(String agentName, String sessionId, String path, + public Response downloadSessionFileWithResponse(String agentName, String agentSessionId, String path, RequestOptions requestOptions) { final String accept = "application/octet-stream"; - return service.downloadSessionFileSync(this.client.getEndpoint(), agentName, sessionId, path, + return service.downloadSessionFileSync(this.client.getEndpoint(), agentName, agentSessionId, path, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); } @@ -364,7 +364,7 @@ public Response downloadSessionFileWithResponse(String agentName, St * name: String (Required) * size: long (Required) * is_directory: boolean (Required) - * modified_time: OffsetDateTime (Required) + * modified_time: long (Required) * } * ] * } @@ -372,7 +372,7 @@ public Response downloadSessionFileWithResponse(String agentName, St * * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The directory path to list, relative to the session home directory. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -383,11 +383,11 @@ public Response downloadSessionFileWithResponse(String agentName, St * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getSessionFilesWithResponseAsync(String agentName, String sessionId, String path, - RequestOptions requestOptions) { + public Mono> getSessionFilesWithResponseAsync(String agentName, String agentSessionId, + String path, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext(context -> service.getSessionFiles(this.client.getEndpoint(), agentName, sessionId, - path, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); + return FluxUtil.withContext(context -> service.getSessionFiles(this.client.getEndpoint(), agentName, + agentSessionId, path, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); } /** @@ -413,7 +413,7 @@ public Mono> getSessionFilesWithResponseAsync(String agentN * name: String (Required) * size: long (Required) * is_directory: boolean (Required) - * modified_time: OffsetDateTime (Required) + * modified_time: long (Required) * } * ] * } @@ -421,7 +421,7 @@ public Mono> getSessionFilesWithResponseAsync(String agentN * * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The directory path to list, relative to the session home directory. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -431,10 +431,10 @@ public Mono> getSessionFilesWithResponseAsync(String agentN * @return response from listing a directory in a session sandbox along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getSessionFilesWithResponse(String agentName, String sessionId, String path, + public Response getSessionFilesWithResponse(String agentName, String agentSessionId, String path, RequestOptions requestOptions) { final String accept = "application/json"; - return service.getSessionFilesSync(this.client.getEndpoint(), agentName, sessionId, path, + return service.getSessionFilesSync(this.client.getEndpoint(), agentName, agentSessionId, path, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); } @@ -460,7 +460,7 @@ public Response getSessionFilesWithResponse(String agentName, String * You can add these to a request with {@link RequestOptions#addHeader} * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The file or directory path to delete, relative to the session home directory. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -470,10 +470,10 @@ public Response getSessionFilesWithResponse(String agentName, String * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteSessionFileWithResponseAsync(String agentName, String sessionId, String path, + public Mono> deleteSessionFileWithResponseAsync(String agentName, String agentSessionId, String path, RequestOptions requestOptions) { return FluxUtil.withContext(context -> service.deleteSessionFile(this.client.getEndpoint(), agentName, - sessionId, path, this.client.getServiceVersion().getVersion(), requestOptions, context)); + agentSessionId, path, this.client.getServiceVersion().getVersion(), requestOptions, context)); } /** @@ -498,7 +498,7 @@ public Mono> deleteSessionFileWithResponseAsync(String agentName, * You can add these to a request with {@link RequestOptions#addHeader} * * @param agentName The name of the agent. - * @param sessionId The session ID. + * @param agentSessionId The session ID. * @param path The file or directory path to delete, relative to the session home directory. * @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,9 +508,9 @@ public Mono> deleteSessionFileWithResponseAsync(String agentName, * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteSessionFileWithResponse(String agentName, String sessionId, String path, + public Response deleteSessionFileWithResponse(String agentName, String agentSessionId, String path, RequestOptions requestOptions) { - return service.deleteSessionFileSync(this.client.getEndpoint(), agentName, sessionId, path, + return service.deleteSessionFileSync(this.client.getEndpoint(), agentName, agentSessionId, path, this.client.getServiceVersion().getVersion(), requestOptions, Context.NONE); } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsImpl.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsImpl.java index 9131220953cb..c4fce8e8d4e5 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsImpl.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsImpl.java @@ -376,10 +376,10 @@ Response updateAgentDetailsSync(@HostParam("endpoint") String endpoi @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> createSession(@HostParam("endpoint") String endpoint, - @PathParam("agent_name") String agentName, @HeaderParam("x-session-isolation-key") String isolationKey, - @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData createSessionRequest, - RequestOptions requestOptions, Context context); + @PathParam("agent_name") String agentName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData createSessionRequest, RequestOptions requestOptions, + Context context); @Post("/agents/{agent_name}/endpoint/sessions") @ExpectedResponses({ 201 }) @@ -388,10 +388,10 @@ Mono> createSession(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response createSessionSync(@HostParam("endpoint") String endpoint, - @PathParam("agent_name") String agentName, @HeaderParam("x-session-isolation-key") String isolationKey, - @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData createSessionRequest, - RequestOptions requestOptions, Context context); + @PathParam("agent_name") String agentName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData createSessionRequest, RequestOptions requestOptions, + Context context); @Get("/agents/{agent_name}/endpoint/sessions/{session_id}") @ExpectedResponses({ 200 }) @@ -423,8 +423,7 @@ Response getSessionSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> deleteSession(@HostParam("endpoint") String endpoint, @PathParam("agent_name") String agentName, @PathParam("session_id") String sessionId, - @HeaderParam("x-session-isolation-key") String isolationKey, @QueryParam("api-version") String apiVersion, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); @Delete("/agents/{agent_name}/endpoint/sessions/{session_id}") @ExpectedResponses({ 204 }) @@ -434,8 +433,7 @@ Mono> deleteSession(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(HttpResponseException.class) Response deleteSessionSync(@HostParam("endpoint") String endpoint, @PathParam("agent_name") String agentName, @PathParam("session_id") String sessionId, - @HeaderParam("x-session-isolation-key") String isolationKey, @QueryParam("api-version") String apiVersion, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); @Get("/agents/{agent_name}/endpoint/sessions") @ExpectedResponses({ 200 }) @@ -525,6 +523,7 @@ Response listAgentConversationsSync(@HostParam("endpoint") String en * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -620,6 +619,7 @@ public Mono> getAgentWithResponseAsync(String agentName, Re * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -782,6 +782,7 @@ public Response getAgentWithResponse(String agentName, RequestOption * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -947,6 +948,7 @@ public Mono> createAgentWithResponseAsync(BinaryData create * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -1075,6 +1077,7 @@ public Response createAgentWithResponse(BinaryData createAgentReques * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -1206,6 +1209,7 @@ public Mono> updateAgentWithResponseAsync(String agentName, * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -1323,6 +1327,7 @@ public Response updateAgentWithResponse(String agentName, BinaryData * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -1439,6 +1444,7 @@ public Mono> createAgentFromManifestWithResponseAsync( * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -1555,6 +1561,7 @@ public Response createAgentFromManifestWithResponse(BinaryData creat * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -1672,6 +1679,7 @@ public Mono> updateAgentFromManifestWithResponseAsync(Strin * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -1852,6 +1860,7 @@ public Response internalDeleteAgentWithResponse(String agentName, Re * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -1972,6 +1981,7 @@ private Mono> listAgentsSinglePageAsync(RequestOptions * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -2086,6 +2096,7 @@ public PagedFlux listAgentsAsync(RequestOptions requestOptions) { * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -2204,6 +2215,7 @@ private PagedResponse listAgentsSinglePage(RequestOptions requestOpt * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -2322,6 +2334,7 @@ public PagedIterable listAgents(RequestOptions requestOptions) { * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -2410,6 +2423,7 @@ public Mono> createAgentVersionWithResponseAsync(String age * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -2484,6 +2498,7 @@ public Response createAgentVersionWithResponse(String agentName, Bin * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -2558,6 +2573,7 @@ public Mono> createAgentVersionFromManifestWithResponseAsyn * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -2615,6 +2631,7 @@ public Response createAgentVersionFromManifestWithResponse(String ag * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -2667,6 +2684,7 @@ public Mono> getAgentVersionDetailsWithResponseAsync(String * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -2803,6 +2821,7 @@ public Response internalDeleteAgentVersionWithResponse(String agentN * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -2878,6 +2897,7 @@ private Mono> listAgentVersionsSinglePageAsync(String * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -2946,6 +2966,7 @@ public PagedFlux listAgentVersionsAsync(String agentName, RequestOpt * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -3018,6 +3039,7 @@ private PagedResponse listAgentVersionsSinglePage(String agentName, * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -3124,6 +3146,7 @@ public PagedIterable listAgentVersions(String agentName, RequestOpti * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -3276,6 +3299,7 @@ public Mono> updateAgentDetailsWithResponseAsync(String age * rai_policy_name: String (Required) * } * } + * status: String(creating/active/failed/deleting/deleted) (Optional) * instance_identity (Optional): { * principal_id: String (Required) * client_id: String (Required) @@ -3392,8 +3416,6 @@ public Response updateAgentDetailsWithResponse(String agentName, Bin * * * @param agentName The name of the agent to create a session for. - * @param isolationKey Isolation key used by the agent endpoint to enforce session ownership for session-mutating - * operations. * @param createSessionRequest The createSessionRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3404,11 +3426,11 @@ public Response updateAgentDetailsWithResponse(String agentName, Bin * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createSessionWithResponseAsync(String agentName, String isolationKey, - BinaryData createSessionRequest, RequestOptions requestOptions) { + public Mono> createSessionWithResponseAsync(String agentName, BinaryData createSessionRequest, + RequestOptions requestOptions) { final String contentType = "application/json"; final String accept = "application/json"; - return FluxUtil.withContext(context -> service.createSession(this.client.getEndpoint(), agentName, isolationKey, + return FluxUtil.withContext(context -> service.createSession(this.client.getEndpoint(), agentName, this.client.getServiceVersion().getVersion(), contentType, accept, createSessionRequest, requestOptions, context)); } @@ -3457,8 +3479,6 @@ public Mono> createSessionWithResponseAsync(String agentNam * * * @param agentName The name of the agent to create a session for. - * @param isolationKey Isolation key used by the agent endpoint to enforce session ownership for session-mutating - * operations. * @param createSessionRequest The createSessionRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3469,11 +3489,11 @@ public Mono> createSessionWithResponseAsync(String agentNam * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createSessionWithResponse(String agentName, String isolationKey, - BinaryData createSessionRequest, RequestOptions requestOptions) { + public Response createSessionWithResponse(String agentName, BinaryData createSessionRequest, + RequestOptions requestOptions) { final String contentType = "application/json"; final String accept = "application/json"; - return service.createSessionSync(this.client.getEndpoint(), agentName, isolationKey, + return service.createSessionSync(this.client.getEndpoint(), agentName, this.client.getServiceVersion().getVersion(), contentType, accept, createSessionRequest, requestOptions, Context.NONE); } @@ -3585,8 +3605,6 @@ public Response getSessionWithResponse(String agentName, String sess * * @param agentName The name of the agent. * @param sessionId The session identifier. - * @param isolationKey Isolation key used by the agent endpoint to enforce session ownership for session-mutating - * operations. * @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. @@ -3595,10 +3613,10 @@ public Response getSessionWithResponse(String agentName, String sess * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteSessionWithResponseAsync(String agentName, String sessionId, String isolationKey, + public Mono> deleteSessionWithResponseAsync(String agentName, String sessionId, RequestOptions requestOptions) { return FluxUtil.withContext(context -> service.deleteSession(this.client.getEndpoint(), agentName, sessionId, - isolationKey, this.client.getServiceVersion().getVersion(), requestOptions, context)); + this.client.getServiceVersion().getVersion(), requestOptions, context)); } /** @@ -3616,8 +3634,6 @@ public Mono> deleteSessionWithResponseAsync(String agentName, Str * * @param agentName The name of the agent. * @param sessionId The session identifier. - * @param isolationKey Isolation key used by the agent endpoint to enforce session ownership for session-mutating - * operations. * @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. @@ -3626,9 +3642,8 @@ public Mono> deleteSessionWithResponseAsync(String agentName, Str * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteSessionWithResponse(String agentName, String sessionId, String isolationKey, - RequestOptions requestOptions) { - return service.deleteSessionSync(this.client.getEndpoint(), agentName, sessionId, isolationKey, + public Response deleteSessionWithResponse(String agentName, String sessionId, RequestOptions requestOptions) { + return service.deleteSessionSync(this.client.getEndpoint(), agentName, sessionId, this.client.getServiceVersion().getVersion(), requestOptions, Context.NONE); } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/JsonMergePatchHelper.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/JsonMergePatchHelper.java index 7b911e9d0653..34e975000444 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/JsonMergePatchHelper.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/JsonMergePatchHelper.java @@ -6,9 +6,8 @@ import com.azure.ai.agents.models.AgentCard; import com.azure.ai.agents.models.AgentCardSkill; -import com.azure.ai.agents.models.AgentEndpoint; import com.azure.ai.agents.models.AgentEndpointAuthorizationScheme; -import com.azure.ai.agents.models.IsolationKeySource; +import com.azure.ai.agents.models.AgentEndpointConfig; import com.azure.ai.agents.models.UpdateAgentDetailsPatchRequest; import com.azure.ai.agents.models.VersionSelectionRule; import com.azure.ai.agents.models.VersionSelector; @@ -17,20 +16,21 @@ * This is the Helper class to enable json merge patch serialization for a model. */ public class JsonMergePatchHelper { - private static AgentEndpointAccessor agentEndpointAccessor; + private static AgentEndpointConfigAccessor agentEndpointConfigAccessor; - public interface AgentEndpointAccessor { - AgentEndpoint prepareModelForJsonMergePatch(AgentEndpoint agentEndpoint, boolean jsonMergePatchEnabled); + public interface AgentEndpointConfigAccessor { + AgentEndpointConfig prepareModelForJsonMergePatch(AgentEndpointConfig agentEndpointConfig, + boolean jsonMergePatchEnabled); - boolean isJsonMergePatch(AgentEndpoint agentEndpoint); + boolean isJsonMergePatch(AgentEndpointConfig agentEndpointConfig); } - public static void setAgentEndpointAccessor(AgentEndpointAccessor accessor) { - agentEndpointAccessor = accessor; + public static void setAgentEndpointConfigAccessor(AgentEndpointConfigAccessor accessor) { + agentEndpointConfigAccessor = accessor; } - public static AgentEndpointAccessor getAgentEndpointAccessor() { - return agentEndpointAccessor; + public static AgentEndpointConfigAccessor getAgentEndpointConfigAccessor() { + return agentEndpointConfigAccessor; } private static VersionSelectorAccessor versionSelectorAccessor; @@ -85,23 +85,6 @@ public static AgentEndpointAuthorizationSchemeAccessor getAgentEndpointAuthoriza return agentEndpointAuthorizationSchemeAccessor; } - private static IsolationKeySourceAccessor isolationKeySourceAccessor; - - public interface IsolationKeySourceAccessor { - IsolationKeySource prepareModelForJsonMergePatch(IsolationKeySource isolationKeySource, - boolean jsonMergePatchEnabled); - - boolean isJsonMergePatch(IsolationKeySource isolationKeySource); - } - - public static void setIsolationKeySourceAccessor(IsolationKeySourceAccessor accessor) { - isolationKeySourceAccessor = accessor; - } - - public static IsolationKeySourceAccessor getIsolationKeySourceAccessor() { - return isolationKeySourceAccessor; - } - private static AgentCardAccessor agentCardAccessor; public interface AgentCardAccessor { 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 e4645a7c1054..2aadd4baf19f 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 @@ -80,51 +80,49 @@ public AgentsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AgentsClientToolboxes") public interface ToolboxesService { - @Post("/toolboxes/{toolbox_name}/versions") + @Post("/toolboxes/{name}/versions") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> createToolboxVersion(@HostParam("endpoint") String endpoint, - @PathParam("toolbox_name") String toolboxName, @HeaderParam("Foundry-Features") String foundryFeatures, + @PathParam("name") String name, @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData createToolboxVersionRequest, RequestOptions requestOptions, Context context); - @Post("/toolboxes/{toolbox_name}/versions") + @Post("/toolboxes/{name}/versions") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response createToolboxVersionSync(@HostParam("endpoint") String endpoint, - @PathParam("toolbox_name") String toolboxName, @HeaderParam("Foundry-Features") String foundryFeatures, + @PathParam("name") String name, @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData createToolboxVersionRequest, RequestOptions requestOptions, Context context); - @Get("/toolboxes/{toolbox_name}") + @Get("/toolboxes/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Mono> getToolbox(@HostParam("endpoint") String endpoint, - @PathParam("toolbox_name") String toolboxName, @HeaderParam("Foundry-Features") String foundryFeatures, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + Mono> getToolbox(@HostParam("endpoint") String endpoint, @PathParam("name") String name, + @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); - @Get("/toolboxes/{toolbox_name}") + @Get("/toolboxes/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Response getToolboxSync(@HostParam("endpoint") String endpoint, - @PathParam("toolbox_name") String toolboxName, @HeaderParam("Foundry-Features") String foundryFeatures, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + Response getToolboxSync(@HostParam("endpoint") String endpoint, @PathParam("name") String name, + @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); @Get("/toolboxes") @ExpectedResponses({ 200 }) @@ -146,115 +144,114 @@ Response listToolboxesSync(@HostParam("endpoint") String endpoint, @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); - @Get("/toolboxes/{toolbox_name}/versions") + @Get("/toolboxes/{name}/versions") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> listToolboxVersions(@HostParam("endpoint") String endpoint, - @PathParam("toolbox_name") String toolboxName, @HeaderParam("Foundry-Features") String foundryFeatures, + @PathParam("name") String name, @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); - @Get("/toolboxes/{toolbox_name}/versions") + @Get("/toolboxes/{name}/versions") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response listToolboxVersionsSync(@HostParam("endpoint") String endpoint, - @PathParam("toolbox_name") String toolboxName, @HeaderParam("Foundry-Features") String foundryFeatures, + @PathParam("name") String name, @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); - @Get("/toolboxes/{toolbox_name}/versions/{version}") + @Get("/toolboxes/{name}/versions/{version}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> getToolboxVersion(@HostParam("endpoint") String endpoint, - @PathParam("toolbox_name") String toolboxName, @PathParam("version") String version, + @PathParam("name") String name, @PathParam("version") String version, @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); - @Get("/toolboxes/{toolbox_name}/versions/{version}") + @Get("/toolboxes/{name}/versions/{version}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response getToolboxVersionSync(@HostParam("endpoint") String endpoint, - @PathParam("toolbox_name") String toolboxName, @PathParam("version") String version, + @PathParam("name") String name, @PathParam("version") String version, @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); - @Patch("/toolboxes/{toolbox_name}") + @Patch("/toolboxes/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Mono> updateToolbox(@HostParam("endpoint") String endpoint, - @PathParam("toolbox_name") String toolboxName, @HeaderParam("Foundry-Features") String foundryFeatures, - @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData updateToolboxRequest, - RequestOptions requestOptions, Context context); + Mono> updateToolbox(@HostParam("endpoint") String endpoint, @PathParam("name") String name, + @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData updateToolboxRequest, RequestOptions requestOptions, + Context context); - @Patch("/toolboxes/{toolbox_name}") + @Patch("/toolboxes/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Response updateToolboxSync(@HostParam("endpoint") String endpoint, - @PathParam("toolbox_name") String toolboxName, @HeaderParam("Foundry-Features") String foundryFeatures, - @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData updateToolboxRequest, - RequestOptions requestOptions, Context context); + Response updateToolboxSync(@HostParam("endpoint") String endpoint, @PathParam("name") String name, + @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData updateToolboxRequest, RequestOptions requestOptions, + Context context); - @Delete("/toolboxes/{toolbox_name}") + @Delete("/toolboxes/{name}") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Mono> deleteToolbox(@HostParam("endpoint") String endpoint, - @PathParam("toolbox_name") String toolboxName, @HeaderParam("Foundry-Features") String foundryFeatures, - @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); + Mono> deleteToolbox(@HostParam("endpoint") String endpoint, @PathParam("name") String name, + @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, + RequestOptions requestOptions, Context context); - @Delete("/toolboxes/{toolbox_name}") + @Delete("/toolboxes/{name}") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Response deleteToolboxSync(@HostParam("endpoint") String endpoint, - @PathParam("toolbox_name") String toolboxName, @HeaderParam("Foundry-Features") String foundryFeatures, - @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); + Response deleteToolboxSync(@HostParam("endpoint") String endpoint, @PathParam("name") String name, + @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, + RequestOptions requestOptions, Context context); - @Delete("/toolboxes/{toolbox_name}/versions/{version}") + @Delete("/toolboxes/{name}/versions/{version}") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono> deleteToolboxVersion(@HostParam("endpoint") String endpoint, - @PathParam("toolbox_name") String toolboxName, @PathParam("version") String version, + @PathParam("name") String name, @PathParam("version") String version, @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); - @Delete("/toolboxes/{toolbox_name}/versions/{version}") + @Delete("/toolboxes/{name}/versions/{version}") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Response deleteToolboxVersionSync(@HostParam("endpoint") String endpoint, - @PathParam("toolbox_name") String toolboxName, @PathParam("version") String version, - @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, - RequestOptions requestOptions, Context context); + Response deleteToolboxVersionSync(@HostParam("endpoint") String endpoint, @PathParam("name") String name, + @PathParam("version") String version, @HeaderParam("Foundry-Features") String foundryFeatures, + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); } /** @@ -270,7 +267,7 @@ Response deleteToolboxVersionSync(@HostParam("endpoint") String endpoint, * } * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -297,7 +294,7 @@ Response deleteToolboxVersionSync(@HostParam("endpoint") String endpoint, * created_at: long (Required) * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -309,7 +306,7 @@ Response deleteToolboxVersionSync(@HostParam("endpoint") String endpoint, * } * * - * @param toolboxName The name of the toolbox. If the toolbox does not exist, it will be created. + * @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. * @throws HttpResponseException thrown if the request is rejected by server. @@ -319,12 +316,12 @@ Response deleteToolboxVersionSync(@HostParam("endpoint") String endpoint, * @return a specific version of a toolbox along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createToolboxVersionWithResponseAsync(String toolboxName, + public Mono> createToolboxVersionWithResponseAsync(String name, BinaryData createToolboxVersionRequest, RequestOptions requestOptions) { final String foundryFeatures = "Toolboxes=V1Preview"; final String contentType = "application/json"; final String accept = "application/json"; - return FluxUtil.withContext(context -> service.createToolboxVersion(this.client.getEndpoint(), toolboxName, + return FluxUtil.withContext(context -> service.createToolboxVersion(this.client.getEndpoint(), name, foundryFeatures, this.client.getServiceVersion().getVersion(), contentType, accept, createToolboxVersionRequest, requestOptions, context)); } @@ -342,7 +339,7 @@ public Mono> createToolboxVersionWithResponseAsync(String t * } * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -369,7 +366,7 @@ public Mono> createToolboxVersionWithResponseAsync(String t * created_at: long (Required) * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -381,7 +378,7 @@ public Mono> createToolboxVersionWithResponseAsync(String t * } * * - * @param toolboxName The name of the toolbox. If the toolbox does not exist, it will be created. + * @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. * @throws HttpResponseException thrown if the request is rejected by server. @@ -391,12 +388,12 @@ public Mono> createToolboxVersionWithResponseAsync(String t * @return a specific version of a toolbox along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createToolboxVersionWithResponse(String toolboxName, - BinaryData createToolboxVersionRequest, RequestOptions requestOptions) { + public Response createToolboxVersionWithResponse(String name, BinaryData createToolboxVersionRequest, + RequestOptions requestOptions) { final String foundryFeatures = "Toolboxes=V1Preview"; final String contentType = "application/json"; final String accept = "application/json"; - return service.createToolboxVersionSync(this.client.getEndpoint(), toolboxName, foundryFeatures, + return service.createToolboxVersionSync(this.client.getEndpoint(), name, foundryFeatures, this.client.getServiceVersion().getVersion(), contentType, accept, createToolboxVersionRequest, requestOptions, Context.NONE); } @@ -415,7 +412,7 @@ public Response createToolboxVersionWithResponse(String toolboxName, * } * * - * @param toolboxName The name of the toolbox to retrieve. + * @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. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -425,11 +422,11 @@ public Response createToolboxVersionWithResponse(String toolboxName, * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getToolboxWithResponseAsync(String toolboxName, RequestOptions requestOptions) { + public Mono> getToolboxWithResponseAsync(String name, RequestOptions requestOptions) { final String foundryFeatures = "Toolboxes=V1Preview"; final String accept = "application/json"; - return FluxUtil.withContext(context -> service.getToolbox(this.client.getEndpoint(), toolboxName, - foundryFeatures, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); + return FluxUtil.withContext(context -> service.getToolbox(this.client.getEndpoint(), name, foundryFeatures, + this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); } /** @@ -446,7 +443,7 @@ public Mono> getToolboxWithResponseAsync(String toolboxName * } * * - * @param toolboxName The name of the toolbox to retrieve. + * @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. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -455,10 +452,10 @@ public Mono> getToolboxWithResponseAsync(String toolboxName * @return a toolbox that stores reusable tool definitions for agents along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getToolboxWithResponse(String toolboxName, RequestOptions requestOptions) { + public Response getToolboxWithResponse(String name, RequestOptions requestOptions) { final String foundryFeatures = "Toolboxes=V1Preview"; final String accept = "application/json"; - return service.getToolboxSync(this.client.getEndpoint(), toolboxName, foundryFeatures, + return service.getToolboxSync(this.client.getEndpoint(), name, foundryFeatures, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); } @@ -695,7 +692,7 @@ public PagedIterable listToolboxes(RequestOptions requestOptions) { * created_at: long (Required) * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -707,7 +704,7 @@ public PagedIterable listToolboxes(RequestOptions requestOptions) { * } * * - * @param toolboxName The name of the toolbox to list versions for. + * @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. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -717,12 +714,12 @@ public PagedIterable listToolboxes(RequestOptions requestOptions) { * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listToolboxVersionsSinglePageAsync(String toolboxName, + private Mono> listToolboxVersionsSinglePageAsync(String name, RequestOptions requestOptions) { final String foundryFeatures = "Toolboxes=V1Preview"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listToolboxVersions(this.client.getEndpoint(), toolboxName, foundryFeatures, + .withContext(context -> service.listToolboxVersions(this.client.getEndpoint(), name, foundryFeatures, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), getValues(res.getValue(), "data"), null, null)); @@ -765,7 +762,7 @@ private Mono> listToolboxVersionsSinglePageAsync(Strin * created_at: long (Required) * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -777,7 +774,7 @@ private Mono> listToolboxVersionsSinglePageAsync(Strin * } * * - * @param toolboxName The name of the toolbox to list versions for. + * @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. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -786,8 +783,8 @@ private Mono> listToolboxVersionsSinglePageAsync(Strin * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listToolboxVersionsAsync(String toolboxName, RequestOptions requestOptions) { - return new PagedFlux<>(() -> listToolboxVersionsSinglePageAsync(toolboxName, requestOptions)); + public PagedFlux listToolboxVersionsAsync(String name, RequestOptions requestOptions) { + return new PagedFlux<>(() -> listToolboxVersionsSinglePageAsync(name, requestOptions)); } /** @@ -827,7 +824,7 @@ public PagedFlux listToolboxVersionsAsync(String toolboxName, Reques * created_at: long (Required) * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -839,7 +836,7 @@ public PagedFlux listToolboxVersionsAsync(String toolboxName, Reques * } * * - * @param toolboxName The name of the toolbox to list versions for. + * @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. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -848,11 +845,11 @@ public PagedFlux listToolboxVersionsAsync(String toolboxName, Reques * @return the response data for a requested list of items along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listToolboxVersionsSinglePage(String toolboxName, RequestOptions requestOptions) { + private PagedResponse listToolboxVersionsSinglePage(String name, RequestOptions requestOptions) { final String foundryFeatures = "Toolboxes=V1Preview"; final String accept = "application/json"; - Response res = service.listToolboxVersionsSync(this.client.getEndpoint(), toolboxName, - foundryFeatures, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); + Response res = service.listToolboxVersionsSync(this.client.getEndpoint(), name, foundryFeatures, + this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), getValues(res.getValue(), "data"), null, null); } @@ -894,7 +891,7 @@ private PagedResponse listToolboxVersionsSinglePage(String toolboxNa * created_at: long (Required) * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -906,7 +903,7 @@ private PagedResponse listToolboxVersionsSinglePage(String toolboxNa * } * * - * @param toolboxName The name of the toolbox to list versions for. + * @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. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -915,8 +912,8 @@ private PagedResponse listToolboxVersionsSinglePage(String toolboxNa * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listToolboxVersions(String toolboxName, RequestOptions requestOptions) { - return new PagedIterable<>(() -> listToolboxVersionsSinglePage(toolboxName, requestOptions)); + public PagedIterable listToolboxVersions(String name, RequestOptions requestOptions) { + return new PagedIterable<>(() -> listToolboxVersionsSinglePage(name, requestOptions)); } /** @@ -936,7 +933,7 @@ public PagedIterable listToolboxVersions(String toolboxName, Request * created_at: long (Required) * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -948,7 +945,7 @@ public PagedIterable listToolboxVersions(String toolboxName, Request * } * * - * @param toolboxName The name of the toolbox. + * @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. * @throws HttpResponseException thrown if the request is rejected by server. @@ -958,12 +955,12 @@ public PagedIterable listToolboxVersions(String toolboxName, Request * @return a specific version of a toolbox along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getToolboxVersionWithResponseAsync(String toolboxName, String version, + public Mono> getToolboxVersionWithResponseAsync(String name, String version, RequestOptions requestOptions) { final String foundryFeatures = "Toolboxes=V1Preview"; final String accept = "application/json"; - return FluxUtil.withContext(context -> service.getToolboxVersion(this.client.getEndpoint(), toolboxName, - version, foundryFeatures, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); + return FluxUtil.withContext(context -> service.getToolboxVersion(this.client.getEndpoint(), name, version, + foundryFeatures, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); } /** @@ -983,7 +980,7 @@ public Mono> getToolboxVersionWithResponseAsync(String tool * created_at: long (Required) * tools (Required): [ * (Required){ - * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) + * type: String(function/file_search/computer_use_preview/web_search/mcp/code_interpreter/image_generation/local_shell/shell/custom/web_search_preview/apply_patch/a2a_preview/bing_custom_search_preview/browser_automation_preview/fabric_dataagent_preview/sharepoint_grounding_preview/memory_search_preview/work_iq_preview/fabric_iq_preview/toolbox_search_preview/azure_ai_search/azure_function/bing_grounding/capture_structured_outputs/openapi) (Required) * } * ] * policies (Optional): { @@ -995,7 +992,7 @@ public Mono> getToolboxVersionWithResponseAsync(String tool * } * * - * @param toolboxName The name of the toolbox. + * @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. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1005,11 +1002,11 @@ public Mono> getToolboxVersionWithResponseAsync(String tool * @return a specific version of a toolbox along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getToolboxVersionWithResponse(String toolboxName, String version, + public Response getToolboxVersionWithResponse(String name, String version, RequestOptions requestOptions) { final String foundryFeatures = "Toolboxes=V1Preview"; final String accept = "application/json"; - return service.getToolboxVersionSync(this.client.getEndpoint(), toolboxName, version, foundryFeatures, + return service.getToolboxVersionSync(this.client.getEndpoint(), name, version, foundryFeatures, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); } @@ -1037,7 +1034,7 @@ public Response getToolboxVersionWithResponse(String toolboxName, St * } * * - * @param toolboxName The name of the toolbox to update. + * @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. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1048,14 +1045,14 @@ public Response getToolboxVersionWithResponse(String toolboxName, St * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateToolboxWithResponseAsync(String toolboxName, - BinaryData updateToolboxRequest, RequestOptions requestOptions) { + public Mono> updateToolboxWithResponseAsync(String name, BinaryData updateToolboxRequest, + RequestOptions requestOptions) { final String foundryFeatures = "Toolboxes=V1Preview"; final String contentType = "application/json"; final String accept = "application/json"; - return FluxUtil.withContext(context -> service.updateToolbox(this.client.getEndpoint(), toolboxName, - foundryFeatures, this.client.getServiceVersion().getVersion(), contentType, accept, updateToolboxRequest, - requestOptions, context)); + return FluxUtil.withContext(context -> service.updateToolbox(this.client.getEndpoint(), name, foundryFeatures, + this.client.getServiceVersion().getVersion(), contentType, accept, updateToolboxRequest, requestOptions, + context)); } /** @@ -1082,7 +1079,7 @@ public Mono> updateToolboxWithResponseAsync(String toolboxN * } * * - * @param toolboxName The name of the toolbox to update. + * @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. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1092,12 +1089,12 @@ public Mono> updateToolboxWithResponseAsync(String toolboxN * @return a toolbox that stores reusable tool definitions for agents along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateToolboxWithResponse(String toolboxName, BinaryData updateToolboxRequest, + public Response updateToolboxWithResponse(String name, BinaryData updateToolboxRequest, RequestOptions requestOptions) { final String foundryFeatures = "Toolboxes=V1Preview"; final String contentType = "application/json"; final String accept = "application/json"; - return service.updateToolboxSync(this.client.getEndpoint(), toolboxName, foundryFeatures, + return service.updateToolboxSync(this.client.getEndpoint(), name, foundryFeatures, this.client.getServiceVersion().getVersion(), contentType, accept, updateToolboxRequest, requestOptions, Context.NONE); } @@ -1105,7 +1102,7 @@ public Response updateToolboxWithResponse(String toolboxName, Binary /** * Delete a toolbox and all its versions. * - * @param toolboxName The name of the toolbox to delete. + * @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. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -1114,16 +1111,16 @@ public Response updateToolboxWithResponse(String toolboxName, Binary * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteToolboxWithResponseAsync(String toolboxName, RequestOptions requestOptions) { + public Mono> deleteToolboxWithResponseAsync(String name, RequestOptions requestOptions) { final String foundryFeatures = "Toolboxes=V1Preview"; - return FluxUtil.withContext(context -> service.deleteToolbox(this.client.getEndpoint(), toolboxName, - foundryFeatures, this.client.getServiceVersion().getVersion(), requestOptions, context)); + return FluxUtil.withContext(context -> service.deleteToolbox(this.client.getEndpoint(), name, foundryFeatures, + this.client.getServiceVersion().getVersion(), requestOptions, context)); } /** * Delete a toolbox and all its versions. * - * @param toolboxName The name of the toolbox to delete. + * @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. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -1132,16 +1129,16 @@ public Mono> deleteToolboxWithResponseAsync(String toolboxName, R * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteToolboxWithResponse(String toolboxName, RequestOptions requestOptions) { + public Response deleteToolboxWithResponse(String name, RequestOptions requestOptions) { final String foundryFeatures = "Toolboxes=V1Preview"; - return service.deleteToolboxSync(this.client.getEndpoint(), toolboxName, foundryFeatures, + return service.deleteToolboxSync(this.client.getEndpoint(), name, foundryFeatures, this.client.getServiceVersion().getVersion(), requestOptions, Context.NONE); } /** * Delete a specific version of a toolbox. * - * @param toolboxName The name of the 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. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1151,17 +1148,17 @@ public Response deleteToolboxWithResponse(String toolboxName, RequestOptio * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteToolboxVersionWithResponseAsync(String toolboxName, String version, + public Mono> deleteToolboxVersionWithResponseAsync(String name, String version, RequestOptions requestOptions) { final String foundryFeatures = "Toolboxes=V1Preview"; - return FluxUtil.withContext(context -> service.deleteToolboxVersion(this.client.getEndpoint(), toolboxName, - version, foundryFeatures, this.client.getServiceVersion().getVersion(), requestOptions, context)); + return FluxUtil.withContext(context -> service.deleteToolboxVersion(this.client.getEndpoint(), name, version, + foundryFeatures, this.client.getServiceVersion().getVersion(), requestOptions, context)); } /** * Delete a specific version of a toolbox. * - * @param toolboxName The name of the 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. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1171,10 +1168,9 @@ public Mono> deleteToolboxVersionWithResponseAsync(String toolbox * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteToolboxVersionWithResponse(String toolboxName, String version, - RequestOptions requestOptions) { + public Response deleteToolboxVersionWithResponse(String name, String version, RequestOptions requestOptions) { final String foundryFeatures = "Toolboxes=V1Preview"; - return service.deleteToolboxVersionSync(this.client.getEndpoint(), toolboxName, version, foundryFeatures, + return service.deleteToolboxVersionSync(this.client.getEndpoint(), name, version, foundryFeatures, this.client.getServiceVersion().getVersion(), requestOptions, Context.NONE); } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/models/CreateAgentOptions.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/models/CreateAgentOptions.java index 93b7ebfd645c..a260a1072b60 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/models/CreateAgentOptions.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/models/CreateAgentOptions.java @@ -7,7 +7,7 @@ import com.azure.ai.agents.models.AgentCard; import com.azure.ai.agents.models.AgentDefinition; import com.azure.ai.agents.models.AgentDefinitionOptInKeys; -import com.azure.ai.agents.models.AgentEndpoint; +import com.azure.ai.agents.models.AgentEndpointConfig; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.Generated; import java.util.Map; @@ -66,7 +66,7 @@ public final class CreateAgentOptions { * An optional endpoint configuration. If not specified, a default endpoint configuration will be set for the agent */ @Generated - private AgentEndpoint agentEndpoint; + private AgentEndpointConfig agentEndpoint; /* * Optional agent card for the agent @@ -218,23 +218,10 @@ public CreateAgentOptions setBlueprintReference(AgentBlueprintReference blueprin * @return the agentEndpoint value. */ @Generated - public AgentEndpoint getAgentEndpoint() { + public AgentEndpointConfig getAgentEndpoint() { return this.agentEndpoint; } - /** - * Set the agentEndpoint property: An optional endpoint configuration. If not specified, a default endpoint - * configuration will be set for the agent. - * - * @param agentEndpoint the agentEndpoint value to set. - * @return the CreateAgentOptions object itself. - */ - @Generated - public CreateAgentOptions setAgentEndpoint(AgentEndpoint agentEndpoint) { - this.agentEndpoint = agentEndpoint; - return this; - } - /** * Get the agentCard property: Optional agent card for the agent. * @@ -256,4 +243,17 @@ public CreateAgentOptions setAgentCard(AgentCard agentCard) { this.agentCard = agentCard; return this; } + + /** + * Set the agentEndpoint property: An optional endpoint configuration. If not specified, a default endpoint + * configuration will be set for the agent. + * + * @param agentEndpoint the agentEndpoint value to set. + * @return the CreateAgentOptions object itself. + */ + @Generated + public CreateAgentOptions setAgentEndpoint(AgentEndpointConfig agentEndpoint) { + this.agentEndpoint = agentEndpoint; + return this; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/models/CreateAgentRequest.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/models/CreateAgentRequest.java index 114fd3919c62..d7389f2b4adc 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/models/CreateAgentRequest.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/models/CreateAgentRequest.java @@ -6,7 +6,7 @@ import com.azure.ai.agents.models.AgentBlueprintReference; import com.azure.ai.agents.models.AgentCard; import com.azure.ai.agents.models.AgentDefinition; -import com.azure.ai.agents.models.AgentEndpoint; +import com.azure.ai.agents.models.AgentEndpointConfig; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.Generated; import com.azure.json.JsonReader; @@ -179,7 +179,7 @@ public static CreateAgentRequest fromJson(JsonReader jsonReader) throws IOExcept Map metadata = null; String description = null; AgentBlueprintReference blueprintReference = null; - AgentEndpoint agentEndpoint = null; + AgentEndpointConfig agentEndpoint = null; AgentCard agentCard = null; while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); @@ -195,7 +195,7 @@ public static CreateAgentRequest fromJson(JsonReader jsonReader) throws IOExcept } else if ("blueprint_reference".equals(fieldName)) { blueprintReference = AgentBlueprintReference.fromJson(reader); } else if ("agent_endpoint".equals(fieldName)) { - agentEndpoint = AgentEndpoint.fromJson(reader); + agentEndpoint = AgentEndpointConfig.fromJson(reader); } else if ("agent_card".equals(fieldName)) { agentCard = AgentCard.fromJson(reader); } else { @@ -222,7 +222,7 @@ public static CreateAgentRequest fromJson(JsonReader jsonReader) throws IOExcept * An optional endpoint configuration. If not specified, a default endpoint configuration will be set for the agent */ @Generated - private AgentEndpoint agentEndpoint; + private AgentEndpointConfig agentEndpoint; /* * Optional agent card for the agent @@ -259,23 +259,10 @@ public CreateAgentRequest setBlueprintReference(AgentBlueprintReference blueprin * @return the agentEndpoint value. */ @Generated - public AgentEndpoint getAgentEndpoint() { + public AgentEndpointConfig getAgentEndpoint() { return this.agentEndpoint; } - /** - * Set the agentEndpoint property: An optional endpoint configuration. If not specified, a default endpoint - * configuration will be set for the agent. - * - * @param agentEndpoint the agentEndpoint value to set. - * @return the CreateAgentRequest object itself. - */ - @Generated - public CreateAgentRequest setAgentEndpoint(AgentEndpoint agentEndpoint) { - this.agentEndpoint = agentEndpoint; - return this; - } - /** * Get the agentCard property: Optional agent card for the agent. * @@ -297,4 +284,17 @@ public CreateAgentRequest setAgentCard(AgentCard agentCard) { this.agentCard = agentCard; return this; } + + /** + * Set the agentEndpoint property: An optional endpoint configuration. If not specified, a default endpoint + * configuration will be set for the agent. + * + * @param agentEndpoint the agentEndpoint value to set. + * @return the CreateAgentRequest object itself. + */ + @Generated + public CreateAgentRequest setAgentEndpoint(AgentEndpointConfig agentEndpoint) { + this.agentEndpoint = agentEndpoint; + return this; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/A2APreviewTool.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/A2APreviewTool.java index 0d87544cb110..50c05d9d3073 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/A2APreviewTool.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/A2APreviewTool.java @@ -138,6 +138,8 @@ public A2APreviewTool setProjectConnectionId(String projectConnectionId) { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("description", this.description); jsonWriter.writeStringField("base_url", this.baseUrl); jsonWriter.writeStringField("agent_card_path", this.agentCardPath); jsonWriter.writeStringField("project_connection_id", this.projectConnectionId); @@ -161,6 +163,10 @@ public static A2APreviewTool fromJson(JsonReader jsonReader) throws IOException reader.nextToken(); if ("type".equals(fieldName)) { deserializedA2APreviewTool.type = ToolType.fromString(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedA2APreviewTool.name = reader.getString(); + } else if ("description".equals(fieldName)) { + deserializedA2APreviewTool.description = reader.getString(); } else if ("base_url".equals(fieldName)) { deserializedA2APreviewTool.baseUrl = reader.getString(); } else if ("agent_card_path".equals(fieldName)) { @@ -174,4 +180,60 @@ public static A2APreviewTool fromJson(JsonReader jsonReader) throws IOException return deserializedA2APreviewTool; }); } + + /* + * Optional user-defined name for this tool or configuration. + */ + @Generated + private String name; + + /* + * Optional user-defined description for this tool or configuration. + */ + @Generated + private String description; + + /** + * Get the name property: Optional user-defined name for this tool or configuration. + * + * @return the name value. + */ + @Generated + public String getName() { + return this.name; + } + + /** + * Set the name property: Optional user-defined name for this tool or configuration. + * + * @param name the name value to set. + * @return the A2APreviewTool object itself. + */ + @Generated + public A2APreviewTool setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Optional user-defined description for this tool or configuration. + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional user-defined description for this tool or configuration. + * + * @param description the description value to set. + * @return the A2APreviewTool object itself. + */ + @Generated + public A2APreviewTool setDescription(String description) { + this.description = description; + return this; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentDetails.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentDetails.java index 4e8becf05f02..05893327cf1b 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentDetails.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentDetails.java @@ -96,7 +96,7 @@ public static AgentDetails fromJson(JsonReader jsonReader) throws IOException { String id = null; String name = null; AgentDetailsVersions versions = null; - AgentEndpoint agentEndpoint = null; + AgentEndpointConfig agentEndpoint = null; AgentIdentity instanceIdentity = null; AgentIdentity blueprint = null; AgentBlueprintReference blueprintReference = null; @@ -111,7 +111,7 @@ public static AgentDetails fromJson(JsonReader jsonReader) throws IOException { } else if ("versions".equals(fieldName)) { versions = AgentDetailsVersions.fromJson(reader); } else if ("agent_endpoint".equals(fieldName)) { - agentEndpoint = AgentEndpoint.fromJson(reader); + agentEndpoint = AgentEndpointConfig.fromJson(reader); } else if ("instance_identity".equals(fieldName)) { instanceIdentity = AgentIdentity.fromJson(reader); } else if ("blueprint".equals(fieldName)) { @@ -168,7 +168,7 @@ public AgentObjectType getObjectType() { * The endpoint configuration for the agent */ @Generated - private AgentEndpoint agentEndpoint; + private AgentEndpointConfig agentEndpoint; /* * The instance identity of the agent @@ -200,7 +200,7 @@ public AgentObjectType getObjectType() { * @return the agentEndpoint value. */ @Generated - public AgentEndpoint getAgentEndpoint() { + public AgentEndpointConfig getAgentEndpoint() { return this.agentEndpoint; } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentEndpoint.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentEndpointConfig.java similarity index 79% rename from sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentEndpoint.java rename to sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentEndpointConfig.java index d1a116c3b403..24913afc1760 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentEndpoint.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentEndpointConfig.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.JsonMergePatchHelper; @@ -16,11 +17,10 @@ import java.util.Set; /** - * The AgentEndpoint model. + * The AgentEndpointConfig model. */ @Fluent -public final class AgentEndpoint implements JsonSerializable { - +public final class AgentEndpointConfig implements JsonSerializable { /* * The version selector of the agent endpoint determines how traffic is routed to different versions of the agent. */ @@ -54,32 +54,32 @@ private void serializeAsJsonMergePatch(boolean jsonMergePatch) { } static { - JsonMergePatchHelper.setAgentEndpointAccessor(new JsonMergePatchHelper.AgentEndpointAccessor() { - + JsonMergePatchHelper.setAgentEndpointConfigAccessor(new JsonMergePatchHelper.AgentEndpointConfigAccessor() { @Override - public AgentEndpoint prepareModelForJsonMergePatch(AgentEndpoint model, boolean jsonMergePatchEnabled) { + public AgentEndpointConfig prepareModelForJsonMergePatch(AgentEndpointConfig model, + boolean jsonMergePatchEnabled) { model.serializeAsJsonMergePatch(jsonMergePatchEnabled); return model; } @Override - public boolean isJsonMergePatch(AgentEndpoint model) { + public boolean isJsonMergePatch(AgentEndpointConfig model) { return model.jsonMergePatch; } }); } /** - * Creates an instance of AgentEndpoint class. + * Creates an instance of AgentEndpointConfig class. */ @Generated - public AgentEndpoint() { + public AgentEndpointConfig() { } /** * Get the versionSelector property: The version selector of the agent endpoint determines how traffic is routed to * different versions of the agent. - * + * * @return the versionSelector value. */ @Generated @@ -90,12 +90,12 @@ public VersionSelector getVersionSelector() { /** * Set the versionSelector property: The version selector of the agent endpoint determines how traffic is routed to * different versions of the agent. - * + * * @param versionSelector the versionSelector value to set. - * @return the AgentEndpoint object itself. + * @return the AgentEndpointConfig object itself. */ @Generated - public AgentEndpoint setVersionSelector(VersionSelector versionSelector) { + public AgentEndpointConfig setVersionSelector(VersionSelector versionSelector) { this.versionSelector = versionSelector; this.updatedProperties.add("versionSelector"); return this; @@ -103,7 +103,7 @@ public AgentEndpoint setVersionSelector(VersionSelector versionSelector) { /** * Get the protocols property: The protocols that the agent supports. - * + * * @return the protocols value. */ @Generated @@ -113,12 +113,12 @@ public List getProtocols() { /** * Set the protocols property: The protocols that the agent supports. - * + * * @param protocols the protocols value to set. - * @return the AgentEndpoint object itself. + * @return the AgentEndpointConfig object itself. */ @Generated - public AgentEndpoint setProtocols(List protocols) { + public AgentEndpointConfig setProtocols(List protocols) { this.protocols = protocols; this.updatedProperties.add("protocols"); return this; @@ -126,7 +126,7 @@ public AgentEndpoint setProtocols(List protocols) { /** * Get the authorizationSchemes property: The authorization schemes supported by the agent endpoint. - * + * * @return the authorizationSchemes value. */ @Generated @@ -136,12 +136,12 @@ public List getAuthorizationSchemes() { /** * Set the authorizationSchemes property: The authorization schemes supported by the agent endpoint. - * + * * @param authorizationSchemes the authorizationSchemes value to set. - * @return the AgentEndpoint object itself. + * @return the AgentEndpointConfig object itself. */ @Generated - public AgentEndpoint setAuthorizationSchemes(List authorizationSchemes) { + public AgentEndpointConfig setAuthorizationSchemes(List authorizationSchemes) { this.authorizationSchemes = authorizationSchemes; this.updatedProperties.add("authorizationSchemes"); return this; @@ -200,35 +200,37 @@ private JsonWriter toJsonMergePatch(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of AgentEndpoint from the JsonReader. - * + * Reads an instance of AgentEndpointConfig from the JsonReader. + * * @param jsonReader The JsonReader being read. - * @return An instance of AgentEndpoint if the JsonReader was pointing to an instance of it, or null if it was + * @return An instance of AgentEndpointConfig if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IOException If an error occurs while reading the AgentEndpoint. + * @throws IOException If an error occurs while reading the AgentEndpointConfig. */ @Generated - public static AgentEndpoint fromJson(JsonReader jsonReader) throws IOException { + public static AgentEndpointConfig fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - AgentEndpoint deserializedAgentEndpoint = new AgentEndpoint(); + AgentEndpointConfig deserializedAgentEndpointConfig = new AgentEndpointConfig(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); + if ("version_selector".equals(fieldName)) { - deserializedAgentEndpoint.versionSelector = VersionSelector.fromJson(reader); + deserializedAgentEndpointConfig.versionSelector = VersionSelector.fromJson(reader); } else if ("protocols".equals(fieldName)) { List protocols = reader.readArray(reader1 -> AgentEndpointProtocol.fromString(reader1.getString())); - deserializedAgentEndpoint.protocols = protocols; + deserializedAgentEndpointConfig.protocols = protocols; } else if ("authorization_schemes".equals(fieldName)) { List authorizationSchemes = reader.readArray(reader1 -> AgentEndpointAuthorizationScheme.fromJson(reader1)); - deserializedAgentEndpoint.authorizationSchemes = authorizationSchemes; + deserializedAgentEndpointConfig.authorizationSchemes = authorizationSchemes; } else { reader.skipChildren(); } } - return deserializedAgentEndpoint; + + return deserializedAgentEndpointConfig; }); } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentVersionDetails.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentVersionDetails.java index b911543b5130..ae18f6f2872f 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentVersionDetails.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentVersionDetails.java @@ -185,6 +185,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeLongField("created_at", this.createdAt); jsonWriter.writeJsonField("definition", this.definition); jsonWriter.writeStringField("description", this.description); + jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString()); return jsonWriter.writeEndObject(); } @@ -207,6 +208,7 @@ public static AgentVersionDetails fromJson(JsonReader jsonReader) throws IOExcep OffsetDateTime createdAt = null; AgentDefinition definition = null; String description = null; + AgentVersionStatus status = null; AgentIdentity instanceIdentity = null; AgentIdentity blueprint = null; AgentBlueprintReference blueprintReference = null; @@ -228,6 +230,8 @@ public static AgentVersionDetails fromJson(JsonReader jsonReader) throws IOExcep definition = AgentDefinition.fromJson(reader); } else if ("description".equals(fieldName)) { description = reader.getString(); + } else if ("status".equals(fieldName)) { + status = AgentVersionStatus.fromString(reader.getString()); } else if ("instance_identity".equals(fieldName)) { instanceIdentity = AgentIdentity.fromJson(reader); } else if ("blueprint".equals(fieldName)) { @@ -243,6 +247,7 @@ public static AgentVersionDetails fromJson(JsonReader jsonReader) throws IOExcep AgentVersionDetails deserializedAgentVersionDetails = new AgentVersionDetails(metadata, id, name, version, createdAt, definition); deserializedAgentVersionDetails.description = description; + deserializedAgentVersionDetails.status = status; deserializedAgentVersionDetails.instanceIdentity = instanceIdentity; deserializedAgentVersionDetails.blueprint = blueprint; deserializedAgentVersionDetails.blueprintReference = blueprintReference; @@ -330,4 +335,22 @@ public AgentBlueprintReference getBlueprintReference() { public String getAgentGuid() { return this.agentGuid; } + + /* + * The provisioning status of the agent version. Defaults to 'active' for non-hosted agents. For hosted agents, + * reflects infrastructure readiness. + */ + @Generated + private AgentVersionStatus status; + + /** + * Get the status property: The provisioning status of the agent version. Defaults to 'active' for non-hosted + * agents. For hosted agents, reflects infrastructure readiness. + * + * @return the status value. + */ + @Generated + public AgentVersionStatus getStatus() { + return this.status; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentVersionStatus.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentVersionStatus.java new file mode 100644 index 000000000000..da1971dc290a --- /dev/null +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AgentVersionStatus.java @@ -0,0 +1,71 @@ +// 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; + +/** + * The provisioning status of an agent version. + */ +public enum AgentVersionStatus { + /** + * The agent version is being provisioned. + */ + CREATING("creating"), + + /** + * The agent version is active and ready to serve requests. + */ + ACTIVE("active"), + + /** + * The agent version provisioning failed. + */ + FAILED("failed"), + + /** + * The agent version is being deleted. + */ + DELETING("deleting"), + + /** + * The agent version has been deleted. + */ + DELETED("deleted"); + + /** + * The actual serialized value for a AgentVersionStatus instance. + */ + private final String value; + + AgentVersionStatus(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a AgentVersionStatus instance. + * + * @param value the serialized value to parse. + * @return the parsed AgentVersionStatus object, or null if unable to parse. + */ + public static AgentVersionStatus fromString(String value) { + if (value == null) { + return null; + } + AgentVersionStatus[] items = AgentVersionStatus.values(); + for (AgentVersionStatus item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + /** + * {@inheritDoc} + */ + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AzureAISearchTool.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AzureAISearchTool.java index 19435e12d288..e7612b469dcf 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AzureAISearchTool.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/AzureAISearchTool.java @@ -3,8 +3,8 @@ // Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.ai.agents.models; +import com.azure.core.annotation.Fluent; import com.azure.core.annotation.Generated; -import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -13,7 +13,7 @@ /** * The input definition information for an Azure AI search tool as used to configure an agent. */ -@Immutable +@Fluent public final class AzureAISearchTool extends Tool { /* @@ -68,6 +68,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("azure_ai_search", this.azureAISearch); jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("description", this.description); return jsonWriter.writeEndObject(); } @@ -85,6 +87,8 @@ public static AzureAISearchTool fromJson(JsonReader jsonReader) throws IOExcepti return jsonReader.readObject(reader -> { AzureAISearchToolResource azureAISearch = null; ToolType type = ToolType.AZURE_AI_SEARCH; + String name = null; + String description = null; while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); @@ -92,13 +96,75 @@ public static AzureAISearchTool fromJson(JsonReader jsonReader) throws IOExcepti azureAISearch = AzureAISearchToolResource.fromJson(reader); } else if ("type".equals(fieldName)) { type = ToolType.fromString(reader.getString()); + } else if ("name".equals(fieldName)) { + name = reader.getString(); + } else if ("description".equals(fieldName)) { + description = reader.getString(); } else { reader.skipChildren(); } } AzureAISearchTool deserializedAzureAISearchTool = new AzureAISearchTool(azureAISearch); deserializedAzureAISearchTool.type = type; + deserializedAzureAISearchTool.name = name; + deserializedAzureAISearchTool.description = description; return deserializedAzureAISearchTool; }); } + + /* + * Optional user-defined name for this tool or configuration. + */ + @Generated + private String name; + + /* + * Optional user-defined description for this tool or configuration. + */ + @Generated + private String description; + + /** + * Get the name property: Optional user-defined name for this tool or configuration. + * + * @return the name value. + */ + @Generated + public String getName() { + return this.name; + } + + /** + * Set the name property: Optional user-defined name for this tool or configuration. + * + * @param name the name value to set. + * @return the AzureAISearchTool object itself. + */ + @Generated + public AzureAISearchTool setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Optional user-defined description for this tool or configuration. + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional user-defined description for this tool or configuration. + * + * @param description the description value to set. + * @return the AzureAISearchTool object itself. + */ + @Generated + public AzureAISearchTool setDescription(String description) { + this.description = description; + return this; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BingCustomSearchPreviewTool.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BingCustomSearchPreviewTool.java index 624f62aa3864..b3fa5abcd2f6 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BingCustomSearchPreviewTool.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BingCustomSearchPreviewTool.java @@ -3,8 +3,8 @@ // Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.ai.agents.models; +import com.azure.core.annotation.Fluent; import com.azure.core.annotation.Generated; -import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -13,7 +13,7 @@ /** * The input definition information for a Bing custom search tool as used to configure an agent. */ -@Immutable +@Fluent public final class BingCustomSearchPreviewTool extends Tool { /* @@ -68,6 +68,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("bing_custom_search_preview", this.bingCustomSearchPreview); jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("description", this.description); return jsonWriter.writeEndObject(); } @@ -85,6 +87,8 @@ public static BingCustomSearchPreviewTool fromJson(JsonReader jsonReader) throws return jsonReader.readObject(reader -> { BingCustomSearchToolParameters bingCustomSearchPreview = null; ToolType type = ToolType.BING_CUSTOM_SEARCH_PREVIEW; + String name = null; + String description = null; while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); @@ -92,6 +96,10 @@ public static BingCustomSearchPreviewTool fromJson(JsonReader jsonReader) throws bingCustomSearchPreview = BingCustomSearchToolParameters.fromJson(reader); } else if ("type".equals(fieldName)) { type = ToolType.fromString(reader.getString()); + } else if ("name".equals(fieldName)) { + name = reader.getString(); + } else if ("description".equals(fieldName)) { + description = reader.getString(); } else { reader.skipChildren(); } @@ -99,7 +107,65 @@ public static BingCustomSearchPreviewTool fromJson(JsonReader jsonReader) throws BingCustomSearchPreviewTool deserializedBingCustomSearchPreviewTool = new BingCustomSearchPreviewTool(bingCustomSearchPreview); deserializedBingCustomSearchPreviewTool.type = type; + deserializedBingCustomSearchPreviewTool.name = name; + deserializedBingCustomSearchPreviewTool.description = description; return deserializedBingCustomSearchPreviewTool; }); } + + /* + * Optional user-defined name for this tool or configuration. + */ + @Generated + private String name; + + /* + * Optional user-defined description for this tool or configuration. + */ + @Generated + private String description; + + /** + * Get the name property: Optional user-defined name for this tool or configuration. + * + * @return the name value. + */ + @Generated + public String getName() { + return this.name; + } + + /** + * Set the name property: Optional user-defined name for this tool or configuration. + * + * @param name the name value to set. + * @return the BingCustomSearchPreviewTool object itself. + */ + @Generated + public BingCustomSearchPreviewTool setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Optional user-defined description for this tool or configuration. + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional user-defined description for this tool or configuration. + * + * @param description the description value to set. + * @return the BingCustomSearchPreviewTool object itself. + */ + @Generated + public BingCustomSearchPreviewTool setDescription(String description) { + this.description = description; + return this; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BingGroundingTool.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BingGroundingTool.java index aa18a2a874c4..62eb78a149ec 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BingGroundingTool.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BingGroundingTool.java @@ -3,8 +3,8 @@ // Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.ai.agents.models; +import com.azure.core.annotation.Fluent; import com.azure.core.annotation.Generated; -import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -13,7 +13,7 @@ /** * The input definition information for a bing grounding search tool as used to configure an agent. */ -@Immutable +@Fluent public final class BingGroundingTool extends Tool { /* @@ -68,6 +68,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("bing_grounding", this.bingGrounding); jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("description", this.description); return jsonWriter.writeEndObject(); } @@ -85,6 +87,8 @@ public static BingGroundingTool fromJson(JsonReader jsonReader) throws IOExcepti return jsonReader.readObject(reader -> { BingGroundingSearchToolParameters bingGrounding = null; ToolType type = ToolType.BING_GROUNDING; + String name = null; + String description = null; while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); @@ -92,13 +96,75 @@ public static BingGroundingTool fromJson(JsonReader jsonReader) throws IOExcepti bingGrounding = BingGroundingSearchToolParameters.fromJson(reader); } else if ("type".equals(fieldName)) { type = ToolType.fromString(reader.getString()); + } else if ("name".equals(fieldName)) { + name = reader.getString(); + } else if ("description".equals(fieldName)) { + description = reader.getString(); } else { reader.skipChildren(); } } BingGroundingTool deserializedBingGroundingTool = new BingGroundingTool(bingGrounding); deserializedBingGroundingTool.type = type; + deserializedBingGroundingTool.name = name; + deserializedBingGroundingTool.description = description; return deserializedBingGroundingTool; }); } + + /* + * Optional user-defined name for this tool or configuration. + */ + @Generated + private String name; + + /* + * Optional user-defined description for this tool or configuration. + */ + @Generated + private String description; + + /** + * Get the name property: Optional user-defined name for this tool or configuration. + * + * @return the name value. + */ + @Generated + public String getName() { + return this.name; + } + + /** + * Set the name property: Optional user-defined name for this tool or configuration. + * + * @param name the name value to set. + * @return the BingGroundingTool object itself. + */ + @Generated + public BingGroundingTool setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Optional user-defined description for this tool or configuration. + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional user-defined description for this tool or configuration. + * + * @param description the description value to set. + * @return the BingGroundingTool object itself. + */ + @Generated + public BingGroundingTool setDescription(String description) { + this.description = description; + return this; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BrowserAutomationPreviewTool.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BrowserAutomationPreviewTool.java index 5e5867c33e7b..f9fa993f8028 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BrowserAutomationPreviewTool.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/BrowserAutomationPreviewTool.java @@ -3,8 +3,8 @@ // Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.ai.agents.models; +import com.azure.core.annotation.Fluent; import com.azure.core.annotation.Generated; -import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -13,7 +13,7 @@ /** * The input definition information for a Browser Automation Tool, as used to configure an Agent. */ -@Immutable +@Fluent public final class BrowserAutomationPreviewTool extends Tool { /* @@ -68,6 +68,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("browser_automation_preview", this.browserAutomationPreview); jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("description", this.description); return jsonWriter.writeEndObject(); } @@ -85,6 +87,8 @@ public static BrowserAutomationPreviewTool fromJson(JsonReader jsonReader) throw return jsonReader.readObject(reader -> { BrowserAutomationToolParameters browserAutomationPreview = null; ToolType type = ToolType.BROWSER_AUTOMATION_PREVIEW; + String name = null; + String description = null; while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); @@ -92,6 +96,10 @@ public static BrowserAutomationPreviewTool fromJson(JsonReader jsonReader) throw browserAutomationPreview = BrowserAutomationToolParameters.fromJson(reader); } else if ("type".equals(fieldName)) { type = ToolType.fromString(reader.getString()); + } else if ("name".equals(fieldName)) { + name = reader.getString(); + } else if ("description".equals(fieldName)) { + description = reader.getString(); } else { reader.skipChildren(); } @@ -99,7 +107,65 @@ public static BrowserAutomationPreviewTool fromJson(JsonReader jsonReader) throw BrowserAutomationPreviewTool deserializedBrowserAutomationPreviewTool = new BrowserAutomationPreviewTool(browserAutomationPreview); deserializedBrowserAutomationPreviewTool.type = type; + deserializedBrowserAutomationPreviewTool.name = name; + deserializedBrowserAutomationPreviewTool.description = description; return deserializedBrowserAutomationPreviewTool; }); } + + /* + * Optional user-defined name for this tool or configuration. + */ + @Generated + private String name; + + /* + * Optional user-defined description for this tool or configuration. + */ + @Generated + private String description; + + /** + * Get the name property: Optional user-defined name for this tool or configuration. + * + * @return the name value. + */ + @Generated + public String getName() { + return this.name; + } + + /** + * Set the name property: Optional user-defined name for this tool or configuration. + * + * @param name the name value to set. + * @return the BrowserAutomationPreviewTool object itself. + */ + @Generated + public BrowserAutomationPreviewTool setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Optional user-defined description for this tool or configuration. + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional user-defined description for this tool or configuration. + * + * @param description the description value to set. + * @return the BrowserAutomationPreviewTool object itself. + */ + @Generated + public BrowserAutomationPreviewTool setDescription(String description) { + this.description = description; + return this; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/CodeConfiguration.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/CodeConfiguration.java index d6f75280f848..71e0e58fe569 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/CodeConfiguration.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/CodeConfiguration.java @@ -89,6 +89,7 @@ public static CodeConfiguration fromJson(JsonReader jsonReader) throws IOExcepti return jsonReader.readObject(reader -> { String runtime = null; List entryPoint = null; + String contentHash = null; while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); @@ -96,11 +97,33 @@ public static CodeConfiguration fromJson(JsonReader jsonReader) throws IOExcepti runtime = reader.getString(); } else if ("entry_point".equals(fieldName)) { entryPoint = reader.readArray(reader1 -> reader1.getString()); + } else if ("content_hash".equals(fieldName)) { + contentHash = reader.getString(); } else { reader.skipChildren(); } } - return new CodeConfiguration(runtime, entryPoint); + CodeConfiguration deserializedCodeConfiguration = new CodeConfiguration(runtime, entryPoint); + deserializedCodeConfiguration.contentHash = contentHash; + return deserializedCodeConfiguration; }); } + + /* + * The SHA-256 hex digest of the uploaded code zip. Set by the service from the `x-ms-code-zip-sha256` request + * header; read-only in responses and never accepted in request payloads. + */ + @Generated + private String contentHash; + + /** + * Get the contentHash property: The SHA-256 hex digest of the uploaded code zip. Set by the service from the + * `x-ms-code-zip-sha256` request header; read-only in responses and never accepted in request payloads. + * + * @return the contentHash value. + */ + @Generated + public String getContentHash() { + return this.contentHash; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/EntraAuthorizationScheme.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/EntraAuthorizationScheme.java index 706ee54cfd87..14b340e44e31 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/EntraAuthorizationScheme.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/EntraAuthorizationScheme.java @@ -4,8 +4,8 @@ package com.azure.ai.agents.models; import com.azure.ai.agents.implementation.JsonMergePatchHelper; -import com.azure.core.annotation.Fluent; import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -16,7 +16,7 @@ /** * The EntraAuthorizationScheme model. */ -@Fluent +@Immutable public final class EntraAuthorizationScheme extends AgentEndpointAuthorizationScheme { /* @@ -25,12 +25,6 @@ public final class EntraAuthorizationScheme extends AgentEndpointAuthorizationSc @Generated private AgentEndpointAuthorizationSchemeType type = AgentEndpointAuthorizationSchemeType.ENTRA; - /* - * The isolation_key_source property. - */ - @Generated - private IsolationKeySource isolationKeySource; - /** * Stores updated model property, the value is property name, not serialized name. */ @@ -55,30 +49,6 @@ public AgentEndpointAuthorizationSchemeType getType() { return this.type; } - /** - * Get the isolationKeySource property: The isolation_key_source property. - * - * @return the isolationKeySource value. - */ - @Generated - public IsolationKeySource getIsolationKeySource() { - return this.isolationKeySource; - } - - /** - * Set the isolationKeySource property: The isolation_key_source property. - *

Required when create the resource.

- * - * @param isolationKeySource the isolationKeySource value to set. - * @return the EntraAuthorizationScheme object itself. - */ - @Generated - public EntraAuthorizationScheme setIsolationKeySource(IsolationKeySource isolationKeySource) { - this.isolationKeySource = isolationKeySource; - this.updatedProperties.add("isolationKeySource"); - return this; - } - /** * {@inheritDoc} */ @@ -90,7 +60,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } else { jsonWriter.writeStartObject(); jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); - jsonWriter.writeJsonField("isolation_key_source", this.isolationKeySource); return jsonWriter.writeEndObject(); } } @@ -99,17 +68,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { private JsonWriter toJsonMergePatch(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("type", this.type.toString()); - if (updatedProperties.contains("isolationKeySource")) { - if (this.isolationKeySource == null) { - jsonWriter.writeNullField("isolation_key_source"); - } else { - JsonMergePatchHelper.getIsolationKeySourceAccessor() - .prepareModelForJsonMergePatch(this.isolationKeySource, true); - jsonWriter.writeJsonField("isolation_key_source", this.isolationKeySource); - JsonMergePatchHelper.getIsolationKeySourceAccessor() - .prepareModelForJsonMergePatch(this.isolationKeySource, false); - } - } return jsonWriter.writeEndObject(); } @@ -131,8 +89,6 @@ public static EntraAuthorizationScheme fromJson(JsonReader jsonReader) throws IO if ("type".equals(fieldName)) { deserializedEntraAuthorizationScheme.type = AgentEndpointAuthorizationSchemeType.fromString(reader.getString()); - } else if ("isolation_key_source".equals(fieldName)) { - deserializedEntraAuthorizationScheme.isolationKeySource = IsolationKeySource.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/EntraIsolationKeySource.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/EntraIsolationKeySource.java deleted file mode 100644 index b9a58d6487b4..000000000000 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/EntraIsolationKeySource.java +++ /dev/null @@ -1,98 +0,0 @@ -// 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.JsonMergePatchHelper; -import com.azure.core.annotation.Generated; -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.HashSet; -import java.util.Set; - -/** - * The EntraIsolationKeySource model. - */ -@Immutable -public final class EntraIsolationKeySource extends IsolationKeySource { - - /* - * The kind property. - */ - @Generated - private IsolationKeySourceKind kind = IsolationKeySourceKind.ENTRA; - - /** - * Stores updated model property, the value is property name, not serialized name. - */ - @Generated - private final Set updatedProperties = new HashSet<>(); - - /** - * Creates an instance of EntraIsolationKeySource class. - */ - @Generated - public EntraIsolationKeySource() { - } - - /** - * Get the kind property: The kind property. - * - * @return the kind value. - */ - @Generated - @Override - public IsolationKeySourceKind getKind() { - return this.kind; - } - - /** - * {@inheritDoc} - */ - @Generated - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - if (JsonMergePatchHelper.getIsolationKeySourceAccessor().isJsonMergePatch(this)) { - return toJsonMergePatch(jsonWriter); - } else { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); - return jsonWriter.writeEndObject(); - } - } - - @Generated - private JsonWriter toJsonMergePatch(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("kind", this.kind.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of EntraIsolationKeySource from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of EntraIsolationKeySource if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IOException If an error occurs while reading the EntraIsolationKeySource. - */ - @Generated - public static EntraIsolationKeySource fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - EntraIsolationKeySource deserializedEntraIsolationKeySource = new EntraIsolationKeySource(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if ("kind".equals(fieldName)) { - deserializedEntraIsolationKeySource.kind = IsolationKeySourceKind.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - return deserializedEntraIsolationKeySource; - }); - } -} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/FabricIQPreviewTool.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/FabricIQPreviewTool.java new file mode 100644 index 000000000000..f912e879eda9 --- /dev/null +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/FabricIQPreviewTool.java @@ -0,0 +1,106 @@ +// 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.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The FabricIQPreviewTool model. + */ +@Immutable +public final class FabricIQPreviewTool extends Tool { + /* + * The type property. + */ + @Generated + private ToolType type = ToolType.FABRIC_IQ_PREVIEW; + + /* + * The FabricIQ tool parameters. + */ + @Generated + private final FabricIQPreviewToolParameters fabricIqPreview; + + /** + * Creates an instance of FabricIQPreviewTool class. + * + * @param fabricIqPreview the fabricIqPreview value to set. + */ + @Generated + public FabricIQPreviewTool(FabricIQPreviewToolParameters fabricIqPreview) { + this.fabricIqPreview = fabricIqPreview; + } + + /** + * Get the type property: The type property. + * + * @return the type value. + */ + @Generated + @Override + public ToolType getType() { + return this.type; + } + + /** + * Get the fabricIqPreview property: The FabricIQ tool parameters. + * + * @return the fabricIqPreview value. + */ + @Generated + public FabricIQPreviewToolParameters getFabricIqPreview() { + return this.fabricIqPreview; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("fabric_iq_preview", this.fabricIqPreview); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FabricIQPreviewTool from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FabricIQPreviewTool if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the FabricIQPreviewTool. + */ + @Generated + public static FabricIQPreviewTool fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FabricIQPreviewToolParameters fabricIqPreview = null; + ToolType type = ToolType.FABRIC_IQ_PREVIEW; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("fabric_iq_preview".equals(fieldName)) { + fabricIqPreview = FabricIQPreviewToolParameters.fromJson(reader); + } else if ("type".equals(fieldName)) { + type = ToolType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + FabricIQPreviewTool deserializedFabricIQPreviewTool = new FabricIQPreviewTool(fabricIqPreview); + deserializedFabricIQPreviewTool.type = type; + + return deserializedFabricIQPreviewTool; + }); + } +} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/FabricIQPreviewToolParameters.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/FabricIQPreviewToolParameters.java new file mode 100644 index 000000000000..55f40ee1f70b --- /dev/null +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/FabricIQPreviewToolParameters.java @@ -0,0 +1,194 @@ +// 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.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.core.util.BinaryData; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The FabricIQPreviewToolParameters model. + */ +@Fluent +public final class FabricIQPreviewToolParameters implements JsonSerializable { + /* + * The ID of the FabricIQ project connection. + */ + @Generated + private final String projectConnectionId; + + /* + * (Optional) The label of the FabricIQ MCP server to connect to. + */ + @Generated + private String serverLabel; + + /* + * (Optional) The URL of the FabricIQ MCP server. If not provided, the URL from the project connection will be used. + */ + @Generated + private String serverUrl; + + /* + * (Optional) Whether the agent requires approval before executing actions. Default is always. + */ + @Generated + private BinaryData requireApproval; + + /** + * Creates an instance of FabricIQPreviewToolParameters class. + * + * @param projectConnectionId the projectConnectionId value to set. + */ + @Generated + public FabricIQPreviewToolParameters(String projectConnectionId) { + this.projectConnectionId = projectConnectionId; + } + + /** + * Get the projectConnectionId property: The ID of the FabricIQ project connection. + * + * @return the projectConnectionId value. + */ + @Generated + public String getProjectConnectionId() { + return this.projectConnectionId; + } + + /** + * Get the serverLabel property: (Optional) The label of the FabricIQ MCP server to connect to. + * + * @return the serverLabel value. + */ + @Generated + public String getServerLabel() { + return this.serverLabel; + } + + /** + * Set the serverLabel property: (Optional) The label of the FabricIQ MCP server to connect to. + * + * @param serverLabel the serverLabel value to set. + * @return the FabricIQPreviewToolParameters object itself. + */ + @Generated + public FabricIQPreviewToolParameters setServerLabel(String serverLabel) { + this.serverLabel = serverLabel; + return this; + } + + /** + * Get the serverUrl property: (Optional) The URL of the FabricIQ MCP server. If not provided, the URL from the + * project connection will be used. + * + * @return the serverUrl value. + */ + @Generated + public String getServerUrl() { + return this.serverUrl; + } + + /** + * Set the serverUrl property: (Optional) The URL of the FabricIQ MCP server. If not provided, the URL from the + * project connection will be used. + * + * @param serverUrl the serverUrl value to set. + * @return the FabricIQPreviewToolParameters object itself. + */ + @Generated + public FabricIQPreviewToolParameters setServerUrl(String serverUrl) { + this.serverUrl = serverUrl; + return this; + } + + /** + * Get the requireApproval property: (Optional) Whether the agent requires approval before executing actions. + * Default is always. + * + * @return the requireApproval value. + */ + @Generated + public BinaryData getRequireApproval() { + return this.requireApproval; + } + + /** + * Set the requireApproval property: (Optional) Whether the agent requires approval before executing actions. + * Default is always. + * + * @param requireApproval the requireApproval value to set. + * @return the FabricIQPreviewToolParameters object itself. + */ + @Generated + public FabricIQPreviewToolParameters setRequireApproval(BinaryData requireApproval) { + this.requireApproval = requireApproval; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("project_connection_id", this.projectConnectionId); + jsonWriter.writeStringField("server_label", this.serverLabel); + jsonWriter.writeStringField("server_url", this.serverUrl); + if (this.requireApproval != null) { + jsonWriter.writeFieldName("require_approval"); + this.requireApproval.writeTo(jsonWriter); + } + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FabricIQPreviewToolParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FabricIQPreviewToolParameters if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the FabricIQPreviewToolParameters. + */ + @Generated + public static FabricIQPreviewToolParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String projectConnectionId = null; + String serverLabel = null; + String serverUrl = null; + BinaryData requireApproval = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("project_connection_id".equals(fieldName)) { + projectConnectionId = reader.getString(); + } else if ("server_label".equals(fieldName)) { + serverLabel = reader.getString(); + } else if ("server_url".equals(fieldName)) { + serverUrl = reader.getString(); + } else if ("require_approval".equals(fieldName)) { + requireApproval + = reader.getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped())); + } else { + reader.skipChildren(); + } + } + FabricIQPreviewToolParameters deserializedFabricIQPreviewToolParameters + = new FabricIQPreviewToolParameters(projectConnectionId); + deserializedFabricIQPreviewToolParameters.serverLabel = serverLabel; + deserializedFabricIQPreviewToolParameters.serverUrl = serverUrl; + deserializedFabricIQPreviewToolParameters.requireApproval = requireApproval; + + return deserializedFabricIQPreviewToolParameters; + }); + } +} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/FoundryFeaturesOptInKeys.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/FoundryFeaturesOptInKeys.java index af213dc1d96d..34babf1adf10 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/FoundryFeaturesOptInKeys.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/FoundryFeaturesOptInKeys.java @@ -41,7 +41,12 @@ public enum FoundryFeaturesOptInKeys { /** * Enum value Toolboxes=V1Preview. */ - TOOLBOXES_V1_PREVIEW("Toolboxes=V1Preview"); + TOOLBOXES_V1_PREVIEW("Toolboxes=V1Preview"), + + /** + * Enum value DataGenerationJobs=V1Preview. + */ + DATA_GENERATION_JOBS_V1_PREVIEW("DataGenerationJobs=V1Preview"); /** * The actual serialized value for a FoundryFeaturesOptInKeys instance. diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/HeaderIsolationKeySource.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/HeaderIsolationKeySource.java deleted file mode 100644 index c29c338d2304..000000000000 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/HeaderIsolationKeySource.java +++ /dev/null @@ -1,178 +0,0 @@ -// 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.JsonMergePatchHelper; -import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.Generated; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.HashSet; -import java.util.Set; - -/** - * The HeaderIsolationKeySource model. - */ -@Fluent -public final class HeaderIsolationKeySource extends IsolationKeySource { - - /* - * The kind property. - */ - @Generated - private IsolationKeySourceKind kind = IsolationKeySourceKind.HEADER; - - /* - * The user isolation key header value - */ - @Generated - private String userIsolationKey; - - /* - * The chat isolation key header value - */ - @Generated - private String chatIsolationKey; - - /** - * Stores updated model property, the value is property name, not serialized name. - */ - @Generated - private final Set updatedProperties = new HashSet<>(); - - /** - * Creates an instance of HeaderIsolationKeySource class. - */ - @Generated - public HeaderIsolationKeySource() { - } - - /** - * Get the kind property: The kind property. - * - * @return the kind value. - */ - @Generated - @Override - public IsolationKeySourceKind getKind() { - return this.kind; - } - - /** - * Get the userIsolationKey property: The user isolation key header value. - * - * @return the userIsolationKey value. - */ - @Generated - public String getUserIsolationKey() { - return this.userIsolationKey; - } - - /** - * Set the userIsolationKey property: The user isolation key header value. - *

Required when create the resource.

- * - * @param userIsolationKey the userIsolationKey value to set. - * @return the HeaderIsolationKeySource object itself. - */ - @Generated - public HeaderIsolationKeySource setUserIsolationKey(String userIsolationKey) { - this.userIsolationKey = userIsolationKey; - this.updatedProperties.add("userIsolationKey"); - return this; - } - - /** - * Get the chatIsolationKey property: The chat isolation key header value. - * - * @return the chatIsolationKey value. - */ - @Generated - public String getChatIsolationKey() { - return this.chatIsolationKey; - } - - /** - * Set the chatIsolationKey property: The chat isolation key header value. - *

Required when create the resource.

- * - * @param chatIsolationKey the chatIsolationKey value to set. - * @return the HeaderIsolationKeySource object itself. - */ - @Generated - public HeaderIsolationKeySource setChatIsolationKey(String chatIsolationKey) { - this.chatIsolationKey = chatIsolationKey; - this.updatedProperties.add("chatIsolationKey"); - return this; - } - - /** - * {@inheritDoc} - */ - @Generated - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - if (JsonMergePatchHelper.getIsolationKeySourceAccessor().isJsonMergePatch(this)) { - return toJsonMergePatch(jsonWriter); - } else { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); - jsonWriter.writeStringField("user_isolation_key", this.userIsolationKey); - jsonWriter.writeStringField("chat_isolation_key", this.chatIsolationKey); - return jsonWriter.writeEndObject(); - } - } - - @Generated - private JsonWriter toJsonMergePatch(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("kind", this.kind.toString()); - if (updatedProperties.contains("userIsolationKey")) { - if (this.userIsolationKey == null) { - jsonWriter.writeNullField("user_isolation_key"); - } else { - jsonWriter.writeStringField("user_isolation_key", this.userIsolationKey); - } - } - if (updatedProperties.contains("chatIsolationKey")) { - if (this.chatIsolationKey == null) { - jsonWriter.writeNullField("chat_isolation_key"); - } else { - jsonWriter.writeStringField("chat_isolation_key", this.chatIsolationKey); - } - } - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HeaderIsolationKeySource from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HeaderIsolationKeySource if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IOException If an error occurs while reading the HeaderIsolationKeySource. - */ - @Generated - public static HeaderIsolationKeySource fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - HeaderIsolationKeySource deserializedHeaderIsolationKeySource = new HeaderIsolationKeySource(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if ("kind".equals(fieldName)) { - deserializedHeaderIsolationKeySource.kind = IsolationKeySourceKind.fromString(reader.getString()); - } else if ("user_isolation_key".equals(fieldName)) { - deserializedHeaderIsolationKeySource.userIsolationKey = reader.getString(); - } else if ("chat_isolation_key".equals(fieldName)) { - deserializedHeaderIsolationKeySource.chatIsolationKey = reader.getString(); - } else { - reader.skipChildren(); - } - } - return deserializedHeaderIsolationKeySource; - }); - } -} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/HeaderTelemetryEndpointAuth.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/HeaderTelemetryEndpointAuth.java new file mode 100644 index 000000000000..83f53da0fea8 --- /dev/null +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/HeaderTelemetryEndpointAuth.java @@ -0,0 +1,151 @@ +// 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.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Header-based secret authentication for a telemetry endpoint. The resolved secret value is injected as an HTTP header. + */ +@Immutable +public final class HeaderTelemetryEndpointAuth extends TelemetryEndpointAuth { + /* + * The authentication type. + */ + @Generated + private TelemetryEndpointAuthType type = TelemetryEndpointAuthType.HEADER; + + /* + * The name of the HTTP header to inject the secret value into. + */ + @Generated + private final String headerName; + + /* + * The identifier of the secret store or connection. + */ + @Generated + private final String secretId; + + /* + * The key within the secret to retrieve the authentication value. + */ + @Generated + private final String secretKey; + + /** + * Creates an instance of HeaderTelemetryEndpointAuth class. + * + * @param headerName the headerName value to set. + * @param secretId the secretId value to set. + * @param secretKey the secretKey value to set. + */ + @Generated + public HeaderTelemetryEndpointAuth(String headerName, String secretId, String secretKey) { + this.headerName = headerName; + this.secretId = secretId; + this.secretKey = secretKey; + } + + /** + * Get the type property: The authentication type. + * + * @return the type value. + */ + @Generated + @Override + public TelemetryEndpointAuthType getType() { + return this.type; + } + + /** + * Get the headerName property: The name of the HTTP header to inject the secret value into. + * + * @return the headerName value. + */ + @Generated + public String getHeaderName() { + return this.headerName; + } + + /** + * Get the secretId property: The identifier of the secret store or connection. + * + * @return the secretId value. + */ + @Generated + public String getSecretId() { + return this.secretId; + } + + /** + * Get the secretKey property: The key within the secret to retrieve the authentication value. + * + * @return the secretKey value. + */ + @Generated + public String getSecretKey() { + return this.secretKey; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("header_name", this.headerName); + jsonWriter.writeStringField("secret_id", this.secretId); + jsonWriter.writeStringField("secret_key", this.secretKey); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of HeaderTelemetryEndpointAuth from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of HeaderTelemetryEndpointAuth if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the HeaderTelemetryEndpointAuth. + */ + @Generated + public static HeaderTelemetryEndpointAuth fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String headerName = null; + String secretId = null; + String secretKey = null; + TelemetryEndpointAuthType type = TelemetryEndpointAuthType.HEADER; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("header_name".equals(fieldName)) { + headerName = reader.getString(); + } else if ("secret_id".equals(fieldName)) { + secretId = reader.getString(); + } else if ("secret_key".equals(fieldName)) { + secretKey = reader.getString(); + } else if ("type".equals(fieldName)) { + type = TelemetryEndpointAuthType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + HeaderTelemetryEndpointAuth deserializedHeaderTelemetryEndpointAuth + = new HeaderTelemetryEndpointAuth(headerName, secretId, secretKey); + deserializedHeaderTelemetryEndpointAuth.type = type; + + return deserializedHeaderTelemetryEndpointAuth; + }); + } +} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/HostedAgentDefinition.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/HostedAgentDefinition.java index 2a4fa5ca0c73..265528b2257b 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/HostedAgentDefinition.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/HostedAgentDefinition.java @@ -174,6 +174,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeArrayField("protocol_versions", this.protocolVersions, (writer, element) -> writer.writeJson(element)); jsonWriter.writeJsonField("code_configuration", this.codeConfiguration); + jsonWriter.writeJsonField("telemetry_config", this.telemetryConfig); return jsonWriter.writeEndObject(); } @@ -200,6 +201,7 @@ public static HostedAgentDefinition fromJson(JsonReader jsonReader) throws IOExc ContainerConfiguration containerConfiguration = null; List protocolVersions = null; CodeConfiguration codeConfiguration = null; + TelemetryConfig telemetryConfig = null; while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); @@ -225,6 +227,8 @@ public static HostedAgentDefinition fromJson(JsonReader jsonReader) throws IOExc protocolVersions = reader.readArray(reader1 -> ProtocolVersionRecord.fromJson(reader1)); } else if ("code_configuration".equals(fieldName)) { codeConfiguration = CodeConfiguration.fromJson(reader); + } else if ("telemetry_config".equals(fieldName)) { + telemetryConfig = TelemetryConfig.fromJson(reader); } else { reader.skipChildren(); } @@ -239,6 +243,7 @@ public static HostedAgentDefinition fromJson(JsonReader jsonReader) throws IOExc deserializedHostedAgentDefinition.containerConfiguration = containerConfiguration; deserializedHostedAgentDefinition.protocolVersions = protocolVersions; deserializedHostedAgentDefinition.codeConfiguration = codeConfiguration; + deserializedHostedAgentDefinition.telemetryConfig = telemetryConfig; return deserializedHostedAgentDefinition; }); } @@ -398,4 +403,34 @@ public HostedAgentDefinition(List containerProtocolVersio this.cpu = cpu; this.memory = memory; } + + /* + * Optional customer-supplied telemetry configuration for exporting container logs, traces, and metrics. + */ + @Generated + private TelemetryConfig telemetryConfig; + + /** + * Get the telemetryConfig property: Optional customer-supplied telemetry configuration for exporting container + * logs, traces, and metrics. + * + * @return the telemetryConfig value. + */ + @Generated + public TelemetryConfig getTelemetryConfig() { + return this.telemetryConfig; + } + + /** + * Set the telemetryConfig property: Optional customer-supplied telemetry configuration for exporting container + * logs, traces, and metrics. + * + * @param telemetryConfig the telemetryConfig value to set. + * @return the HostedAgentDefinition object itself. + */ + @Generated + public HostedAgentDefinition setTelemetryConfig(TelemetryConfig telemetryConfig) { + this.telemetryConfig = telemetryConfig; + return this; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/IsolationKeySource.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/IsolationKeySource.java deleted file mode 100644 index ee7f3feb0f5b..000000000000 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/IsolationKeySource.java +++ /dev/null @@ -1,152 +0,0 @@ -// 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.JsonMergePatchHelper; -import com.azure.core.annotation.Generated; -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.HashSet; -import java.util.Set; - -/** - * The IsolationKeySource model. - */ -@Immutable -public class IsolationKeySource implements JsonSerializable { - - /* - * The kind property. - */ - @Generated - private IsolationKeySourceKind kind = IsolationKeySourceKind.fromString("IsolationKeySource"); - - /** - * Stores updated model property, the value is property name, not serialized name. - */ - @Generated - private final Set updatedProperties = new HashSet<>(); - - @Generated - private boolean jsonMergePatch; - - @Generated - private void serializeAsJsonMergePatch(boolean jsonMergePatch) { - this.jsonMergePatch = jsonMergePatch; - } - - static { - JsonMergePatchHelper.setIsolationKeySourceAccessor(new JsonMergePatchHelper.IsolationKeySourceAccessor() { - - @Override - public IsolationKeySource prepareModelForJsonMergePatch(IsolationKeySource model, - boolean jsonMergePatchEnabled) { - model.serializeAsJsonMergePatch(jsonMergePatchEnabled); - return model; - } - - @Override - public boolean isJsonMergePatch(IsolationKeySource model) { - return model.jsonMergePatch; - } - }); - } - - /** - * Creates an instance of IsolationKeySource class. - */ - @Generated - public IsolationKeySource() { - } - - /** - * Get the kind property: The kind property. - * - * @return the kind value. - */ - @Generated - public IsolationKeySourceKind getKind() { - return this.kind; - } - - /** - * {@inheritDoc} - */ - @Generated - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - if (jsonMergePatch) { - return toJsonMergePatch(jsonWriter); - } else { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); - return jsonWriter.writeEndObject(); - } - } - - @Generated - private JsonWriter toJsonMergePatch(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("kind", this.kind.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of IsolationKeySource from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of IsolationKeySource if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IOException If an error occurs while reading the IsolationKeySource. - */ - @Generated - public static IsolationKeySource fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - String discriminatorValue = null; - try (JsonReader readerToUse = reader.bufferObject()) { - // Prepare for reading - readerToUse.nextToken(); - while (readerToUse.nextToken() != JsonToken.END_OBJECT) { - String fieldName = readerToUse.getFieldName(); - readerToUse.nextToken(); - if ("kind".equals(fieldName)) { - discriminatorValue = readerToUse.getString(); - break; - } else { - readerToUse.skipChildren(); - } - } - // Use the discriminator value to determine which subtype should be deserialized. - if ("Entra".equals(discriminatorValue)) { - return EntraIsolationKeySource.fromJson(readerToUse.reset()); - } else if ("Header".equals(discriminatorValue)) { - return HeaderIsolationKeySource.fromJson(readerToUse.reset()); - } else { - return fromJsonKnownDiscriminator(readerToUse.reset()); - } - } - }); - } - - @Generated - static IsolationKeySource fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - IsolationKeySource deserializedIsolationKeySource = new IsolationKeySource(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - if ("kind".equals(fieldName)) { - deserializedIsolationKeySource.kind = IsolationKeySourceKind.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - return deserializedIsolationKeySource; - }); - } -} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/IsolationKeySourceKind.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/IsolationKeySourceKind.java deleted file mode 100644 index 7e7af6f9ae6d..000000000000 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/IsolationKeySourceKind.java +++ /dev/null @@ -1,57 +0,0 @@ -// 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.core.annotation.Generated; -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Defines values for IsolationKeySourceKind. - */ -public final class IsolationKeySourceKind extends ExpandableStringEnum { - - /** - * Static value Entra for IsolationKeySourceKind. - */ - @Generated - public static final IsolationKeySourceKind ENTRA = fromString("Entra"); - - /** - * Static value Header for IsolationKeySourceKind. - */ - @Generated - public static final IsolationKeySourceKind HEADER = fromString("Header"); - - /** - * Creates a new instance of IsolationKeySourceKind value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Generated - @Deprecated - public IsolationKeySourceKind() { - } - - /** - * Creates or finds a IsolationKeySourceKind from its string representation. - * - * @param name a name to look for. - * @return the corresponding IsolationKeySourceKind. - */ - @Generated - public static IsolationKeySourceKind fromString(String name) { - return fromString(name, IsolationKeySourceKind.class); - } - - /** - * Gets known IsolationKeySourceKind values. - * - * @return known IsolationKeySourceKind values. - */ - @Generated - public static Collection values() { - return values(IsolationKeySourceKind.class); - } -} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/MemorySearchPreviewTool.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/MemorySearchPreviewTool.java index 668b94075228..bc65f2bd84e9 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/MemorySearchPreviewTool.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/MemorySearchPreviewTool.java @@ -119,6 +119,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("memory_store_name", this.memoryStoreName); jsonWriter.writeStringField("scope", this.scope); jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("description", this.description); jsonWriter.writeJsonField("search_options", this.searchOptions); jsonWriter.writeNumberField("update_delay", this.updateDelaySeconds); return jsonWriter.writeEndObject(); @@ -139,6 +141,8 @@ public static MemorySearchPreviewTool fromJson(JsonReader jsonReader) throws IOE String memoryStoreName = null; String scope = null; ToolType type = ToolType.MEMORY_SEARCH_PREVIEW; + String name = null; + String description = null; MemorySearchOptions searchOptions = null; Integer updateDelaySeconds = null; while (reader.nextToken() != JsonToken.END_OBJECT) { @@ -150,6 +154,10 @@ public static MemorySearchPreviewTool fromJson(JsonReader jsonReader) throws IOE scope = reader.getString(); } else if ("type".equals(fieldName)) { type = ToolType.fromString(reader.getString()); + } else if ("name".equals(fieldName)) { + name = reader.getString(); + } else if ("description".equals(fieldName)) { + description = reader.getString(); } else if ("search_options".equals(fieldName)) { searchOptions = MemorySearchOptions.fromJson(reader); } else if ("update_delay".equals(fieldName)) { @@ -161,6 +169,8 @@ public static MemorySearchPreviewTool fromJson(JsonReader jsonReader) throws IOE MemorySearchPreviewTool deserializedMemorySearchPreviewTool = new MemorySearchPreviewTool(memoryStoreName, scope); deserializedMemorySearchPreviewTool.type = type; + deserializedMemorySearchPreviewTool.name = name; + deserializedMemorySearchPreviewTool.description = description; deserializedMemorySearchPreviewTool.searchOptions = searchOptions; deserializedMemorySearchPreviewTool.updateDelaySeconds = updateDelaySeconds; return deserializedMemorySearchPreviewTool; @@ -196,4 +206,60 @@ public MemorySearchPreviewTool setUpdateDelaySeconds(Integer updateDelaySeconds) this.updateDelaySeconds = updateDelaySeconds; return this; } + + /* + * Optional user-defined name for this tool or configuration. + */ + @Generated + private String name; + + /* + * Optional user-defined description for this tool or configuration. + */ + @Generated + private String description; + + /** + * Get the name property: Optional user-defined name for this tool or configuration. + * + * @return the name value. + */ + @Generated + public String getName() { + return this.name; + } + + /** + * Set the name property: Optional user-defined name for this tool or configuration. + * + * @param name the name value to set. + * @return the MemorySearchPreviewTool object itself. + */ + @Generated + public MemorySearchPreviewTool setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Optional user-defined description for this tool or configuration. + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional user-defined description for this tool or configuration. + * + * @param description the description value to set. + * @return the MemorySearchPreviewTool object itself. + */ + @Generated + public MemorySearchPreviewTool setDescription(String description) { + this.description = description; + return this; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/MicrosoftFabricPreviewTool.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/MicrosoftFabricPreviewTool.java index de17a8448955..7a161af22ea7 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/MicrosoftFabricPreviewTool.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/MicrosoftFabricPreviewTool.java @@ -3,8 +3,8 @@ // Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.ai.agents.models; +import com.azure.core.annotation.Fluent; import com.azure.core.annotation.Generated; -import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -13,7 +13,7 @@ /** * The input definition information for a Microsoft Fabric tool as used to configure an agent. */ -@Immutable +@Fluent public final class MicrosoftFabricPreviewTool extends Tool { /* @@ -68,6 +68,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("fabric_dataagent_preview", this.fabricDataAgentPreview); jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("description", this.description); return jsonWriter.writeEndObject(); } @@ -85,6 +87,8 @@ public static MicrosoftFabricPreviewTool fromJson(JsonReader jsonReader) throws return jsonReader.readObject(reader -> { FabricDataAgentToolParameters fabricDataAgentPreview = null; ToolType type = ToolType.FABRIC_DATAAGENT_PREVIEW; + String name = null; + String description = null; while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); @@ -92,6 +96,10 @@ public static MicrosoftFabricPreviewTool fromJson(JsonReader jsonReader) throws fabricDataAgentPreview = FabricDataAgentToolParameters.fromJson(reader); } else if ("type".equals(fieldName)) { type = ToolType.fromString(reader.getString()); + } else if ("name".equals(fieldName)) { + name = reader.getString(); + } else if ("description".equals(fieldName)) { + description = reader.getString(); } else { reader.skipChildren(); } @@ -99,7 +107,65 @@ public static MicrosoftFabricPreviewTool fromJson(JsonReader jsonReader) throws MicrosoftFabricPreviewTool deserializedMicrosoftFabricPreviewTool = new MicrosoftFabricPreviewTool(fabricDataAgentPreview); deserializedMicrosoftFabricPreviewTool.type = type; + deserializedMicrosoftFabricPreviewTool.name = name; + deserializedMicrosoftFabricPreviewTool.description = description; return deserializedMicrosoftFabricPreviewTool; }); } + + /* + * Optional user-defined name for this tool or configuration. + */ + @Generated + private String name; + + /* + * Optional user-defined description for this tool or configuration. + */ + @Generated + private String description; + + /** + * Get the name property: Optional user-defined name for this tool or configuration. + * + * @return the name value. + */ + @Generated + public String getName() { + return this.name; + } + + /** + * Set the name property: Optional user-defined name for this tool or configuration. + * + * @param name the name value to set. + * @return the MicrosoftFabricPreviewTool object itself. + */ + @Generated + public MicrosoftFabricPreviewTool setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Optional user-defined description for this tool or configuration. + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional user-defined description for this tool or configuration. + * + * @param description the description value to set. + * @return the MicrosoftFabricPreviewTool object itself. + */ + @Generated + public MicrosoftFabricPreviewTool setDescription(String description) { + this.description = description; + return this; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/OtlpTelemetryEndpoint.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/OtlpTelemetryEndpoint.java new file mode 100644 index 000000000000..95821800d6f5 --- /dev/null +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/OtlpTelemetryEndpoint.java @@ -0,0 +1,152 @@ +// 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.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * An OTLP (OpenTelemetry Protocol) telemetry export endpoint. + */ +@Fluent +public final class OtlpTelemetryEndpoint extends TelemetryEndpoint { + /* + * The telemetry export endpoint kind. + */ + @Generated + private TelemetryEndpointKind kind = TelemetryEndpointKind.OTLP; + + /* + * The OTLP collector endpoint URL. + */ + @Generated + private final String endpoint; + + /* + * The transport protocol for the OTLP endpoint. + */ + @Generated + private final TelemetryTransportProtocol protocol; + + /** + * Creates an instance of OtlpTelemetryEndpoint class. + * + * @param data the data value to set. + * @param endpoint the endpoint value to set. + * @param protocol the protocol value to set. + */ + @Generated + public OtlpTelemetryEndpoint(List data, String endpoint, TelemetryTransportProtocol protocol) { + super(data); + this.endpoint = endpoint; + this.protocol = protocol; + } + + /** + * Get the kind property: The telemetry export endpoint kind. + * + * @return the kind value. + */ + @Generated + @Override + public TelemetryEndpointKind getKind() { + return this.kind; + } + + /** + * Get the endpoint property: The OTLP collector endpoint URL. + * + * @return the endpoint value. + */ + @Generated + public String getEndpoint() { + return this.endpoint; + } + + /** + * Get the protocol property: The transport protocol for the OTLP endpoint. + * + * @return the protocol value. + */ + @Generated + public TelemetryTransportProtocol getProtocol() { + return this.protocol; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public OtlpTelemetryEndpoint setAuth(TelemetryEndpointAuth auth) { + super.setAuth(auth); + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("data", getData(), + (writer, element) -> writer.writeString(element == null ? null : element.toString())); + jsonWriter.writeJsonField("auth", getAuth()); + jsonWriter.writeStringField("endpoint", this.endpoint); + jsonWriter.writeStringField("protocol", this.protocol == null ? null : this.protocol.toString()); + jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OtlpTelemetryEndpoint from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OtlpTelemetryEndpoint if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the OtlpTelemetryEndpoint. + */ + @Generated + public static OtlpTelemetryEndpoint fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + List data = null; + TelemetryEndpointAuth auth = null; + String endpoint = null; + TelemetryTransportProtocol protocol = null; + TelemetryEndpointKind kind = TelemetryEndpointKind.OTLP; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("data".equals(fieldName)) { + data = reader.readArray(reader1 -> TelemetryDataKind.fromString(reader1.getString())); + } else if ("auth".equals(fieldName)) { + auth = TelemetryEndpointAuth.fromJson(reader); + } else if ("endpoint".equals(fieldName)) { + endpoint = reader.getString(); + } else if ("protocol".equals(fieldName)) { + protocol = TelemetryTransportProtocol.fromString(reader.getString()); + } else if ("kind".equals(fieldName)) { + kind = TelemetryEndpointKind.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + OtlpTelemetryEndpoint deserializedOtlpTelemetryEndpoint + = new OtlpTelemetryEndpoint(data, endpoint, protocol); + deserializedOtlpTelemetryEndpoint.setAuth(auth); + deserializedOtlpTelemetryEndpoint.kind = kind; + + return deserializedOtlpTelemetryEndpoint; + }); + } +} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/SessionDirectoryEntry.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/SessionDirectoryEntry.java index d4f543ca4406..20b1351ae2e3 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/SessionDirectoryEntry.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/SessionDirectoryEntry.java @@ -5,14 +5,14 @@ import com.azure.core.annotation.Generated; import com.azure.core.annotation.Immutable; -import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.time.Instant; import java.time.OffsetDateTime; -import java.time.format.DateTimeFormatter; +import java.time.ZoneOffset; /** * A single entry in a directory listing. @@ -39,10 +39,10 @@ public final class SessionDirectoryEntry implements JsonSerializable CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + modifiedTime = OffsetDateTime.ofInstant(Instant.ofEpochSecond(reader.getLong()), ZoneOffset.UTC); } else { reader.skipChildren(); } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/SharepointPreviewTool.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/SharepointPreviewTool.java index 6cdc2f1101d0..01ec4d38dfa1 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/SharepointPreviewTool.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/SharepointPreviewTool.java @@ -3,8 +3,8 @@ // Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.ai.agents.models; +import com.azure.core.annotation.Fluent; import com.azure.core.annotation.Generated; -import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -13,7 +13,7 @@ /** * The input definition information for a sharepoint tool as used to configure an agent. */ -@Immutable +@Fluent public final class SharepointPreviewTool extends Tool { /* @@ -68,6 +68,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("sharepoint_grounding_preview", this.sharepointGroundingPreview); jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("description", this.description); return jsonWriter.writeEndObject(); } @@ -85,6 +87,8 @@ public static SharepointPreviewTool fromJson(JsonReader jsonReader) throws IOExc return jsonReader.readObject(reader -> { SharepointGroundingToolParameters sharepointGroundingPreview = null; ToolType type = ToolType.SHAREPOINT_GROUNDING_PREVIEW; + String name = null; + String description = null; while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); @@ -92,6 +96,10 @@ public static SharepointPreviewTool fromJson(JsonReader jsonReader) throws IOExc sharepointGroundingPreview = SharepointGroundingToolParameters.fromJson(reader); } else if ("type".equals(fieldName)) { type = ToolType.fromString(reader.getString()); + } else if ("name".equals(fieldName)) { + name = reader.getString(); + } else if ("description".equals(fieldName)) { + description = reader.getString(); } else { reader.skipChildren(); } @@ -99,7 +107,65 @@ public static SharepointPreviewTool fromJson(JsonReader jsonReader) throws IOExc SharepointPreviewTool deserializedSharepointPreviewTool = new SharepointPreviewTool(sharepointGroundingPreview); deserializedSharepointPreviewTool.type = type; + deserializedSharepointPreviewTool.name = name; + deserializedSharepointPreviewTool.description = description; return deserializedSharepointPreviewTool; }); } + + /* + * Optional user-defined name for this tool or configuration. + */ + @Generated + private String name; + + /* + * Optional user-defined description for this tool or configuration. + */ + @Generated + private String description; + + /** + * Get the name property: Optional user-defined name for this tool or configuration. + * + * @return the name value. + */ + @Generated + public String getName() { + return this.name; + } + + /** + * Set the name property: Optional user-defined name for this tool or configuration. + * + * @param name the name value to set. + * @return the SharepointPreviewTool object itself. + */ + @Generated + public SharepointPreviewTool setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Optional user-defined description for this tool or configuration. + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional user-defined description for this tool or configuration. + * + * @param description the description value to set. + * @return the SharepointPreviewTool object itself. + */ + @Generated + public SharepointPreviewTool setDescription(String description) { + this.description = description; + return this; + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryConfig.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryConfig.java new file mode 100644 index 000000000000..397a7c4d697f --- /dev/null +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryConfig.java @@ -0,0 +1,84 @@ +// 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.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Customer-supplied telemetry configuration for exporting container logs, traces, and metrics. + */ +@Immutable +public final class TelemetryConfig implements JsonSerializable { + /* + * Customer-supplied telemetry export endpoint configurations. + */ + @Generated + private final List endpoints; + + /** + * Creates an instance of TelemetryConfig class. + * + * @param endpoints the endpoints value to set. + */ + @Generated + public TelemetryConfig(List endpoints) { + this.endpoints = endpoints; + } + + /** + * Get the endpoints property: Customer-supplied telemetry export endpoint configurations. + * + * @return the endpoints value. + */ + @Generated + public List getEndpoints() { + return this.endpoints; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("endpoints", this.endpoints, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TelemetryConfig from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TelemetryConfig if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the TelemetryConfig. + */ + @Generated + public static TelemetryConfig fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + List endpoints = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("endpoints".equals(fieldName)) { + endpoints = reader.readArray(reader1 -> TelemetryEndpoint.fromJson(reader1)); + } else { + reader.skipChildren(); + } + } + return new TelemetryConfig(endpoints); + }); + } +} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryDataKind.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryDataKind.java new file mode 100644 index 000000000000..23ebfdfc0ccf --- /dev/null +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryDataKind.java @@ -0,0 +1,63 @@ +// 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.core.annotation.Generated; +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The type of telemetry data to export. + */ +public final class TelemetryDataKind extends ExpandableStringEnum { + /** + * Container stdout and stderr logs. + */ + @Generated + public static final TelemetryDataKind CONTAINER_STDOUT_STDERR = fromString("ContainerStdoutStderr"); + + /** + * Container OpenTelemetry signals. + */ + @Generated + public static final TelemetryDataKind CONTAINER_OTEL = fromString("ContainerOtel"); + + /** + * Container metrics. + */ + @Generated + public static final TelemetryDataKind METRICS = fromString("Metrics"); + + /** + * Creates a new instance of TelemetryDataKind value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Generated + @Deprecated + public TelemetryDataKind() { + } + + /** + * Creates or finds a TelemetryDataKind from its string representation. + * + * @param name a name to look for. + * @return the corresponding TelemetryDataKind. + */ + @Generated + public static TelemetryDataKind fromString(String name) { + return fromString(name, TelemetryDataKind.class); + } + + /** + * Gets known TelemetryDataKind values. + * + * @return known TelemetryDataKind values. + */ + @Generated + public static Collection values() { + return values(TelemetryDataKind.class); + } +} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryEndpoint.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryEndpoint.java new file mode 100644 index 000000000000..2d52b2f754d5 --- /dev/null +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryEndpoint.java @@ -0,0 +1,167 @@ +// 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.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * A telemetry export endpoint configuration. + */ +@Fluent +public class TelemetryEndpoint implements JsonSerializable { + /* + * The telemetry export endpoint kind. + */ + @Generated + private TelemetryEndpointKind kind = TelemetryEndpointKind.fromString("TelemetryEndpoint"); + + /* + * Data types to export to this endpoint. Use an empty array to export no data. + */ + @Generated + private final List data; + + /* + * Optional authentication configuration. + */ + @Generated + private TelemetryEndpointAuth auth; + + /** + * Creates an instance of TelemetryEndpoint class. + * + * @param data the data value to set. + */ + @Generated + public TelemetryEndpoint(List data) { + this.data = data; + } + + /** + * Get the kind property: The telemetry export endpoint kind. + * + * @return the kind value. + */ + @Generated + public TelemetryEndpointKind getKind() { + return this.kind; + } + + /** + * Get the data property: Data types to export to this endpoint. Use an empty array to export no data. + * + * @return the data value. + */ + @Generated + public List getData() { + return this.data; + } + + /** + * Get the auth property: Optional authentication configuration. + * + * @return the auth value. + */ + @Generated + public TelemetryEndpointAuth getAuth() { + return this.auth; + } + + /** + * Set the auth property: Optional authentication configuration. + * + * @param auth the auth value to set. + * @return the TelemetryEndpoint object itself. + */ + @Generated + public TelemetryEndpoint setAuth(TelemetryEndpointAuth auth) { + this.auth = auth; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("data", this.data, + (writer, element) -> writer.writeString(element == null ? null : element.toString())); + jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); + jsonWriter.writeJsonField("auth", this.auth); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TelemetryEndpoint from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TelemetryEndpoint if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the TelemetryEndpoint. + */ + @Generated + public static TelemetryEndpoint fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("kind".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("OTLP".equals(discriminatorValue)) { + return OtlpTelemetryEndpoint.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + @Generated + static TelemetryEndpoint fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + List data = null; + TelemetryEndpointKind kind = null; + TelemetryEndpointAuth auth = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("data".equals(fieldName)) { + data = reader.readArray(reader1 -> TelemetryDataKind.fromString(reader1.getString())); + } else if ("kind".equals(fieldName)) { + kind = TelemetryEndpointKind.fromString(reader.getString()); + } else if ("auth".equals(fieldName)) { + auth = TelemetryEndpointAuth.fromJson(reader); + } else { + reader.skipChildren(); + } + } + TelemetryEndpoint deserializedTelemetryEndpoint = new TelemetryEndpoint(data); + deserializedTelemetryEndpoint.kind = kind; + deserializedTelemetryEndpoint.auth = auth; + + return deserializedTelemetryEndpoint; + }); + } +} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryEndpointAuth.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryEndpointAuth.java new file mode 100644 index 000000000000..a19029780a54 --- /dev/null +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryEndpointAuth.java @@ -0,0 +1,106 @@ +// 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.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Authentication configuration for a telemetry endpoint. + */ +@Immutable +public class TelemetryEndpointAuth implements JsonSerializable { + /* + * The authentication type. + */ + @Generated + private TelemetryEndpointAuthType type = TelemetryEndpointAuthType.fromString("TelemetryEndpointAuth"); + + /** + * Creates an instance of TelemetryEndpointAuth class. + */ + @Generated + public TelemetryEndpointAuth() { + } + + /** + * Get the type property: The authentication type. + * + * @return the type value. + */ + @Generated + public TelemetryEndpointAuthType getType() { + return this.type; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TelemetryEndpointAuth from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TelemetryEndpointAuth if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the TelemetryEndpointAuth. + */ + @Generated + public static TelemetryEndpointAuth fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("type".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("header".equals(discriminatorValue)) { + return HeaderTelemetryEndpointAuth.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + @Generated + static TelemetryEndpointAuth fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + TelemetryEndpointAuth deserializedTelemetryEndpointAuth = new TelemetryEndpointAuth(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedTelemetryEndpointAuth.type = TelemetryEndpointAuthType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedTelemetryEndpointAuth; + }); + } +} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryEndpointAuthType.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryEndpointAuthType.java new file mode 100644 index 000000000000..3a2a315309b7 --- /dev/null +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryEndpointAuthType.java @@ -0,0 +1,51 @@ +// 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.core.annotation.Generated; +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The type of authentication for a telemetry endpoint. + */ +public final class TelemetryEndpointAuthType extends ExpandableStringEnum { + /** + * Header-based secret authentication. + */ + @Generated + public static final TelemetryEndpointAuthType HEADER = fromString("header"); + + /** + * Creates a new instance of TelemetryEndpointAuthType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Generated + @Deprecated + public TelemetryEndpointAuthType() { + } + + /** + * Creates or finds a TelemetryEndpointAuthType from its string representation. + * + * @param name a name to look for. + * @return the corresponding TelemetryEndpointAuthType. + */ + @Generated + public static TelemetryEndpointAuthType fromString(String name) { + return fromString(name, TelemetryEndpointAuthType.class); + } + + /** + * Gets known TelemetryEndpointAuthType values. + * + * @return known TelemetryEndpointAuthType values. + */ + @Generated + public static Collection values() { + return values(TelemetryEndpointAuthType.class); + } +} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryEndpointKind.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryEndpointKind.java new file mode 100644 index 000000000000..03e8c23e1c84 --- /dev/null +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryEndpointKind.java @@ -0,0 +1,51 @@ +// 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.core.annotation.Generated; +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The kind of telemetry export endpoint. + */ +public final class TelemetryEndpointKind extends ExpandableStringEnum { + /** + * OpenTelemetry Protocol (OTLP) endpoint. + */ + @Generated + public static final TelemetryEndpointKind OTLP = fromString("OTLP"); + + /** + * Creates a new instance of TelemetryEndpointKind value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Generated + @Deprecated + public TelemetryEndpointKind() { + } + + /** + * Creates or finds a TelemetryEndpointKind from its string representation. + * + * @param name a name to look for. + * @return the corresponding TelemetryEndpointKind. + */ + @Generated + public static TelemetryEndpointKind fromString(String name) { + return fromString(name, TelemetryEndpointKind.class); + } + + /** + * Gets known TelemetryEndpointKind values. + * + * @return known TelemetryEndpointKind values. + */ + @Generated + public static Collection values() { + return values(TelemetryEndpointKind.class); + } +} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryTransportProtocol.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryTransportProtocol.java new file mode 100644 index 000000000000..c43dab7c746c --- /dev/null +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/TelemetryTransportProtocol.java @@ -0,0 +1,57 @@ +// 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.core.annotation.Generated; +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The transport protocol for telemetry export. + */ +public final class TelemetryTransportProtocol extends ExpandableStringEnum { + /** + * HTTP transport protocol. + */ + @Generated + public static final TelemetryTransportProtocol HTTP = fromString("Http"); + + /** + * gRPC transport protocol. + */ + @Generated + public static final TelemetryTransportProtocol GRPC = fromString("Grpc"); + + /** + * Creates a new instance of TelemetryTransportProtocol value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Generated + @Deprecated + public TelemetryTransportProtocol() { + } + + /** + * Creates or finds a TelemetryTransportProtocol from its string representation. + * + * @param name a name to look for. + * @return the corresponding TelemetryTransportProtocol. + */ + @Generated + public static TelemetryTransportProtocol fromString(String name) { + return fromString(name, TelemetryTransportProtocol.class); + } + + /** + * Gets known TelemetryTransportProtocol values. + * + * @return known TelemetryTransportProtocol values. + */ + @Generated + public static Collection values() { + return values(TelemetryTransportProtocol.class); + } +} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/Tool.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/Tool.java index 38481372f097..5751d4c490d5 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/Tool.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/Tool.java @@ -99,8 +99,12 @@ public static Tool fromJson(JsonReader jsonReader) throws IOException { return A2APreviewTool.fromJson(readerToUse.reset()); } else if ("work_iq_preview".equals(discriminatorValue)) { return WorkIqPreviewTool.fromJson(readerToUse.reset()); + } else if ("fabric_iq_preview".equals(discriminatorValue)) { + return FabricIQPreviewTool.fromJson(readerToUse.reset()); } else if ("memory_search_preview".equals(discriminatorValue)) { return MemorySearchPreviewTool.fromJson(readerToUse.reset()); + } else if ("toolbox_search_preview".equals(discriminatorValue)) { + return ToolboxSearchPreviewTool.fromJson(readerToUse.reset()); } else if ("code_interpreter".equals(discriminatorValue)) { return CodeInterpreterTool.fromJson(readerToUse.reset()); } else if ("function".equals(discriminatorValue)) { diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/ToolType.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/ToolType.java index 0826c0926809..7c40d8f7f4c2 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/ToolType.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/ToolType.java @@ -186,4 +186,16 @@ public static Collection values() { */ @Generated public static final ToolType WORK_IQ_PREVIEW = fromString("work_iq_preview"); + + /** + * Static value fabric_iq_preview for ToolType. + */ + @Generated + public static final ToolType FABRIC_IQ_PREVIEW = fromString("fabric_iq_preview"); + + /** + * Static value toolbox_search_preview for ToolType. + */ + @Generated + public static final ToolType TOOLBOX_SEARCH_PREVIEW = fromString("toolbox_search_preview"); } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/ToolboxSearchPreviewTool.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/ToolboxSearchPreviewTool.java new file mode 100644 index 000000000000..c86d988255c0 --- /dev/null +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/ToolboxSearchPreviewTool.java @@ -0,0 +1,144 @@ +// 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.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * A tool for searching over the agent's toolbox. + * When present, deferred tools are hidden from `tools/list` and only + * discoverable via `search_tools` queries at runtime. + */ +@Fluent +public final class ToolboxSearchPreviewTool extends Tool { + /* + * The type property. + */ + @Generated + private ToolType type = ToolType.TOOLBOX_SEARCH_PREVIEW; + + /* + * Optional user-defined name for this tool or configuration. + */ + @Generated + private String name; + + /* + * Optional user-defined description for this tool or configuration. + */ + @Generated + private String description; + + /** + * Creates an instance of ToolboxSearchPreviewTool class. + */ + @Generated + public ToolboxSearchPreviewTool() { + } + + /** + * Get the type property: The type property. + * + * @return the type value. + */ + @Generated + @Override + public ToolType getType() { + return this.type; + } + + /** + * Get the name property: Optional user-defined name for this tool or configuration. + * + * @return the name value. + */ + @Generated + public String getName() { + return this.name; + } + + /** + * Set the name property: Optional user-defined name for this tool or configuration. + * + * @param name the name value to set. + * @return the ToolboxSearchPreviewTool object itself. + */ + @Generated + public ToolboxSearchPreviewTool setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Optional user-defined description for this tool or configuration. + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional user-defined description for this tool or configuration. + * + * @param description the description value to set. + * @return the ToolboxSearchPreviewTool object itself. + */ + @Generated + public ToolboxSearchPreviewTool setDescription(String description) { + this.description = description; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("description", this.description); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ToolboxSearchPreviewTool from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ToolboxSearchPreviewTool if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ToolboxSearchPreviewTool. + */ + @Generated + public static ToolboxSearchPreviewTool fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ToolboxSearchPreviewTool deserializedToolboxSearchPreviewTool = new ToolboxSearchPreviewTool(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedToolboxSearchPreviewTool.type = ToolType.fromString(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedToolboxSearchPreviewTool.name = reader.getString(); + } else if ("description".equals(fieldName)) { + deserializedToolboxSearchPreviewTool.description = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedToolboxSearchPreviewTool; + }); + } +} diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/UpdateAgentDetailsPatchRequest.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/UpdateAgentDetailsPatchRequest.java index 868b89b29dbb..569bf1754979 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/UpdateAgentDetailsPatchRequest.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/UpdateAgentDetailsPatchRequest.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.JsonMergePatchHelper; @@ -19,12 +20,11 @@ */ @Fluent public final class UpdateAgentDetailsPatchRequest implements JsonSerializable { - /* * The endpoint configuration for the agent */ @Generated - private AgentEndpoint agentEndpoint; + private AgentEndpointConfig agentEndpoint; /* * Optional agent card for the agent @@ -49,7 +49,6 @@ private void serializeAsJsonMergePatch(boolean jsonMergePatch) { static { JsonMergePatchHelper.setUpdateAgentDetailsPatchRequestAccessor( new JsonMergePatchHelper.UpdateAgentDetailsPatchRequestAccessor() { - @Override public UpdateAgentDetailsPatchRequest prepareModelForJsonMergePatch(UpdateAgentDetailsPatchRequest model, boolean jsonMergePatchEnabled) { @@ -73,22 +72,22 @@ public UpdateAgentDetailsPatchRequest() { /** * Get the agentEndpoint property: The endpoint configuration for the agent. - * + * * @return the agentEndpoint value. */ @Generated - public AgentEndpoint getAgentEndpoint() { + public AgentEndpointConfig getAgentEndpoint() { return this.agentEndpoint; } /** * Set the agentEndpoint property: The endpoint configuration for the agent. - * + * * @param agentEndpoint the agentEndpoint value to set. * @return the UpdateAgentDetailsPatchRequest object itself. */ @Generated - public UpdateAgentDetailsPatchRequest setAgentEndpoint(AgentEndpoint agentEndpoint) { + public UpdateAgentDetailsPatchRequest setAgentEndpoint(AgentEndpointConfig agentEndpoint) { this.agentEndpoint = agentEndpoint; this.updatedProperties.add("agentEndpoint"); return this; @@ -96,7 +95,7 @@ public UpdateAgentDetailsPatchRequest setAgentEndpoint(AgentEndpoint agentEndpoi /** * Get the agentCard property: Optional agent card for the agent. - * + * * @return the agentCard value. */ @Generated @@ -106,7 +105,7 @@ public AgentCard getAgentCard() { /** * Set the agentCard property: Optional agent card for the agent. - * + * * @param agentCard the agentCard value to set. * @return the UpdateAgentDetailsPatchRequest object itself. */ @@ -140,9 +139,10 @@ private JsonWriter toJsonMergePatch(JsonWriter jsonWriter) throws IOException { if (this.agentEndpoint == null) { jsonWriter.writeNullField("agent_endpoint"); } else { - JsonMergePatchHelper.getAgentEndpointAccessor().prepareModelForJsonMergePatch(this.agentEndpoint, true); + JsonMergePatchHelper.getAgentEndpointConfigAccessor() + .prepareModelForJsonMergePatch(this.agentEndpoint, true); jsonWriter.writeJsonField("agent_endpoint", this.agentEndpoint); - JsonMergePatchHelper.getAgentEndpointAccessor() + JsonMergePatchHelper.getAgentEndpointConfigAccessor() .prepareModelForJsonMergePatch(this.agentEndpoint, false); } } @@ -160,7 +160,7 @@ private JsonWriter toJsonMergePatch(JsonWriter jsonWriter) throws IOException { /** * Reads an instance of UpdateAgentDetailsPatchRequest from the JsonReader. - * + * * @param jsonReader The JsonReader being read. * @return An instance of UpdateAgentDetailsPatchRequest if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. @@ -174,14 +174,16 @@ public static UpdateAgentDetailsPatchRequest fromJson(JsonReader jsonReader) thr while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); + if ("agent_endpoint".equals(fieldName)) { - deserializedUpdateAgentDetailsPatchRequest.agentEndpoint = AgentEndpoint.fromJson(reader); + deserializedUpdateAgentDetailsPatchRequest.agentEndpoint = AgentEndpointConfig.fromJson(reader); } else if ("agent_card".equals(fieldName)) { deserializedUpdateAgentDetailsPatchRequest.agentCard = AgentCard.fromJson(reader); } else { reader.skipChildren(); } } + return deserializedUpdateAgentDetailsPatchRequest; }); } diff --git a/sdk/ai/azure-ai-agents/src/main/resources/META-INF/azure-ai-agents_metadata.json b/sdk/ai/azure-ai-agents/src/main/resources/META-INF/azure-ai-agents_metadata.json index f5061111132c..570c8f46a642 100644 --- a/sdk/ai/azure-ai-agents/src/main/resources/META-INF/azure-ai-agents_metadata.json +++ b/sdk/ai/azure-ai-agents/src/main/resources/META-INF/azure-ai-agents_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Azure.AI.Projects":"v1"},"crossLanguageDefinitions":{"com.azure.ai.agents.AgentSessionFilesAsyncClient":"Azure.AI.Projects.AgentSessionFiles","com.azure.ai.agents.AgentSessionFilesAsyncClient.deleteSessionFile":"Azure.AI.Projects.AgentSessionFiles.deleteSessionFile","com.azure.ai.agents.AgentSessionFilesAsyncClient.deleteSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.deleteSessionFile","com.azure.ai.agents.AgentSessionFilesAsyncClient.downloadSessionFile":"Azure.AI.Projects.AgentSessionFiles.downloadSessionFile","com.azure.ai.agents.AgentSessionFilesAsyncClient.downloadSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.downloadSessionFile","com.azure.ai.agents.AgentSessionFilesAsyncClient.getSessionFiles":"Azure.AI.Projects.AgentSessionFiles.listSessionFiles","com.azure.ai.agents.AgentSessionFilesAsyncClient.getSessionFilesWithResponse":"Azure.AI.Projects.AgentSessionFiles.listSessionFiles","com.azure.ai.agents.AgentSessionFilesAsyncClient.uploadSessionFile":"Azure.AI.Projects.AgentSessionFiles.uploadSessionFile","com.azure.ai.agents.AgentSessionFilesAsyncClient.uploadSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.uploadSessionFile","com.azure.ai.agents.AgentSessionFilesClient":"Azure.AI.Projects.AgentSessionFiles","com.azure.ai.agents.AgentSessionFilesClient.deleteSessionFile":"Azure.AI.Projects.AgentSessionFiles.deleteSessionFile","com.azure.ai.agents.AgentSessionFilesClient.deleteSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.deleteSessionFile","com.azure.ai.agents.AgentSessionFilesClient.downloadSessionFile":"Azure.AI.Projects.AgentSessionFiles.downloadSessionFile","com.azure.ai.agents.AgentSessionFilesClient.downloadSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.downloadSessionFile","com.azure.ai.agents.AgentSessionFilesClient.getSessionFiles":"Azure.AI.Projects.AgentSessionFiles.listSessionFiles","com.azure.ai.agents.AgentSessionFilesClient.getSessionFilesWithResponse":"Azure.AI.Projects.AgentSessionFiles.listSessionFiles","com.azure.ai.agents.AgentSessionFilesClient.uploadSessionFile":"Azure.AI.Projects.AgentSessionFiles.uploadSessionFile","com.azure.ai.agents.AgentSessionFilesClient.uploadSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.uploadSessionFile","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.createSession":"Azure.AI.Projects.Agents.createSession","com.azure.ai.agents.AgentsAsyncClient.createSessionWithResponse":"Azure.AI.Projects.Agents.createSession","com.azure.ai.agents.AgentsAsyncClient.deleteSession":"Azure.AI.Projects.Agents.deleteSession","com.azure.ai.agents.AgentsAsyncClient.deleteSessionWithResponse":"Azure.AI.Projects.Agents.deleteSession","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.getSession":"Azure.AI.Projects.Agents.getSession","com.azure.ai.agents.AgentsAsyncClient.getSessionWithResponse":"Azure.AI.Projects.Agents.getSession","com.azure.ai.agents.AgentsAsyncClient.listAgentConversations":"Azure.AI.Projects.Conversations.listConversations","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.listSessions":"Azure.AI.Projects.Agents.listSessions","com.azure.ai.agents.AgentsAsyncClient.updateAgent":"Azure.AI.Projects.Agents.updateAgent","com.azure.ai.agents.AgentsAsyncClient.updateAgentDetails":"Azure.AI.Projects.Agents.patchAgentObject","com.azure.ai.agents.AgentsAsyncClient.updateAgentDetailsWithResponse":"Azure.AI.Projects.Agents.patchAgentObject","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.createSession":"Azure.AI.Projects.Agents.createSession","com.azure.ai.agents.AgentsClient.createSessionWithResponse":"Azure.AI.Projects.Agents.createSession","com.azure.ai.agents.AgentsClient.deleteSession":"Azure.AI.Projects.Agents.deleteSession","com.azure.ai.agents.AgentsClient.deleteSessionWithResponse":"Azure.AI.Projects.Agents.deleteSession","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.getSession":"Azure.AI.Projects.Agents.getSession","com.azure.ai.agents.AgentsClient.getSessionWithResponse":"Azure.AI.Projects.Agents.getSession","com.azure.ai.agents.AgentsClient.listAgentConversations":"Azure.AI.Projects.Conversations.listConversations","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.listSessions":"Azure.AI.Projects.Agents.listSessions","com.azure.ai.agents.AgentsClient.updateAgent":"Azure.AI.Projects.Agents.updateAgent","com.azure.ai.agents.AgentsClient.updateAgentDetails":"Azure.AI.Projects.Agents.patchAgentObject","com.azure.ai.agents.AgentsClient.updateAgentDetailsWithResponse":"Azure.AI.Projects.Agents.patchAgentObject","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.beginInternalUpdateMemories":"Azure.AI.Projects.MemoryStores.updateMemories","com.azure.ai.agents.MemoryStoresAsyncClient.beginInternalUpdateMemoriesWithModel":"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.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.internalSearchMemories":"Azure.AI.Projects.MemoryStores.searchMemories","com.azure.ai.agents.MemoryStoresAsyncClient.internalSearchMemoriesWithResponse":"Azure.AI.Projects.MemoryStores.searchMemories","com.azure.ai.agents.MemoryStoresAsyncClient.listMemoryStores":"Azure.AI.Projects.MemoryStores.listMemoryStores","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.beginInternalUpdateMemories":"Azure.AI.Projects.MemoryStores.updateMemories","com.azure.ai.agents.MemoryStoresClient.beginInternalUpdateMemoriesWithModel":"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.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.internalSearchMemories":"Azure.AI.Projects.MemoryStores.searchMemories","com.azure.ai.agents.MemoryStoresClient.internalSearchMemoriesWithResponse":"Azure.AI.Projects.MemoryStores.searchMemories","com.azure.ai.agents.MemoryStoresClient.listMemoryStores":"Azure.AI.Projects.MemoryStores.listMemoryStores","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.ToolboxesAsyncClient":"Azure.AI.Projects.Toolboxes","com.azure.ai.agents.ToolboxesAsyncClient.createToolboxVersion":"Azure.AI.Projects.Toolboxes.createToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.createToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.createToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.deleteToolbox":"Azure.AI.Projects.Toolboxes.deleteToolbox","com.azure.ai.agents.ToolboxesAsyncClient.deleteToolboxVersion":"Azure.AI.Projects.Toolboxes.deleteToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.deleteToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.deleteToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.deleteToolboxWithResponse":"Azure.AI.Projects.Toolboxes.deleteToolbox","com.azure.ai.agents.ToolboxesAsyncClient.getToolbox":"Azure.AI.Projects.Toolboxes.getToolbox","com.azure.ai.agents.ToolboxesAsyncClient.getToolboxVersion":"Azure.AI.Projects.Toolboxes.getToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.getToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.getToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.getToolboxWithResponse":"Azure.AI.Projects.Toolboxes.getToolbox","com.azure.ai.agents.ToolboxesAsyncClient.listToolboxVersions":"Azure.AI.Projects.Toolboxes.listToolboxVersions","com.azure.ai.agents.ToolboxesAsyncClient.listToolboxes":"Azure.AI.Projects.Toolboxes.listToolboxes","com.azure.ai.agents.ToolboxesAsyncClient.updateToolbox":"Azure.AI.Projects.Toolboxes.updateToolbox","com.azure.ai.agents.ToolboxesAsyncClient.updateToolboxWithResponse":"Azure.AI.Projects.Toolboxes.updateToolbox","com.azure.ai.agents.ToolboxesClient":"Azure.AI.Projects.Toolboxes","com.azure.ai.agents.ToolboxesClient.createToolboxVersion":"Azure.AI.Projects.Toolboxes.createToolboxVersion","com.azure.ai.agents.ToolboxesClient.createToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.createToolboxVersion","com.azure.ai.agents.ToolboxesClient.deleteToolbox":"Azure.AI.Projects.Toolboxes.deleteToolbox","com.azure.ai.agents.ToolboxesClient.deleteToolboxVersion":"Azure.AI.Projects.Toolboxes.deleteToolboxVersion","com.azure.ai.agents.ToolboxesClient.deleteToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.deleteToolboxVersion","com.azure.ai.agents.ToolboxesClient.deleteToolboxWithResponse":"Azure.AI.Projects.Toolboxes.deleteToolbox","com.azure.ai.agents.ToolboxesClient.getToolbox":"Azure.AI.Projects.Toolboxes.getToolbox","com.azure.ai.agents.ToolboxesClient.getToolboxVersion":"Azure.AI.Projects.Toolboxes.getToolboxVersion","com.azure.ai.agents.ToolboxesClient.getToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.getToolboxVersion","com.azure.ai.agents.ToolboxesClient.getToolboxWithResponse":"Azure.AI.Projects.Toolboxes.getToolbox","com.azure.ai.agents.ToolboxesClient.listToolboxVersions":"Azure.AI.Projects.Toolboxes.listToolboxVersions","com.azure.ai.agents.ToolboxesClient.listToolboxes":"Azure.AI.Projects.Toolboxes.listToolboxes","com.azure.ai.agents.ToolboxesClient.updateToolbox":"Azure.AI.Projects.Toolboxes.updateToolbox","com.azure.ai.agents.ToolboxesClient.updateToolboxWithResponse":"Azure.AI.Projects.Toolboxes.updateToolbox","com.azure.ai.agents.implementation.models.Annotation":"OpenAI.Annotation","com.azure.ai.agents.implementation.models.AnnotationType":"OpenAI.AnnotationType","com.azure.ai.agents.implementation.models.ApplyPatchCallOutputStatusParam":"OpenAI.ApplyPatchCallOutputStatusParam","com.azure.ai.agents.implementation.models.ApplyPatchCallStatusParam":"OpenAI.ApplyPatchCallStatusParam","com.azure.ai.agents.implementation.models.ApplyPatchCreateFileOperationParam":"OpenAI.ApplyPatchCreateFileOperationParam","com.azure.ai.agents.implementation.models.ApplyPatchDeleteFileOperationParam":"OpenAI.ApplyPatchDeleteFileOperationParam","com.azure.ai.agents.implementation.models.ApplyPatchOperationParam":"OpenAI.ApplyPatchOperationParam","com.azure.ai.agents.implementation.models.ApplyPatchOperationParamType":"OpenAI.ApplyPatchOperationParamType","com.azure.ai.agents.implementation.models.ApplyPatchUpdateFileOperationParam":"OpenAI.ApplyPatchUpdateFileOperationParam","com.azure.ai.agents.implementation.models.ClickButtonType":"OpenAI.ClickButtonType","com.azure.ai.agents.implementation.models.ClickParam":"OpenAI.ClickParam","com.azure.ai.agents.implementation.models.CodeInterpreterOutputImage":"OpenAI.CodeInterpreterOutputImage","com.azure.ai.agents.implementation.models.CodeInterpreterOutputLogs":"OpenAI.CodeInterpreterOutputLogs","com.azure.ai.agents.implementation.models.ComputerAction":"OpenAI.ComputerAction","com.azure.ai.agents.implementation.models.ComputerActionType":"OpenAI.ComputerActionType","com.azure.ai.agents.implementation.models.ComputerCallSafetyCheckParam":"OpenAI.ComputerCallSafetyCheckParam","com.azure.ai.agents.implementation.models.ComputerScreenshotImage":"OpenAI.ComputerScreenshotImage","com.azure.ai.agents.implementation.models.ContainerFileCitationBody":"OpenAI.ContainerFileCitationBody","com.azure.ai.agents.implementation.models.CoordParam":"OpenAI.CoordParam","com.azure.ai.agents.implementation.models.CreateAgentFromManifestRequest":"Azure.AI.Projects.createAgentFromManifest.Request.anonymous","com.azure.ai.agents.implementation.models.CreateAgentOptions":null,"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.CreateSessionRequest":"Azure.AI.Projects.createSession.Request.anonymous","com.azure.ai.agents.implementation.models.CreateToolboxVersionRequest":"Azure.AI.Projects.createToolboxVersion.Request.anonymous","com.azure.ai.agents.implementation.models.DoubleClickAction":"OpenAI.DoubleClickAction","com.azure.ai.agents.implementation.models.DragParam":"OpenAI.DragParam","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.FileCitationBody":"OpenAI.FileCitationBody","com.azure.ai.agents.implementation.models.FilePath":"OpenAI.FilePath","com.azure.ai.agents.implementation.models.FileSearchToolCallResults":"OpenAI.FileSearchToolCallResults","com.azure.ai.agents.implementation.models.FunctionAndCustomToolCallOutput":"OpenAI.FunctionAndCustomToolCallOutput","com.azure.ai.agents.implementation.models.FunctionAndCustomToolCallOutputInputFileContent":"OpenAI.FunctionAndCustomToolCallOutputInputFileContent","com.azure.ai.agents.implementation.models.FunctionAndCustomToolCallOutputInputImageContent":"OpenAI.FunctionAndCustomToolCallOutputInputImageContent","com.azure.ai.agents.implementation.models.FunctionAndCustomToolCallOutputInputTextContent":"OpenAI.FunctionAndCustomToolCallOutputInputTextContent","com.azure.ai.agents.implementation.models.FunctionAndCustomToolCallOutputType":"OpenAI.FunctionAndCustomToolCallOutputType","com.azure.ai.agents.implementation.models.FunctionCallItemStatus":"OpenAI.FunctionCallItemStatus","com.azure.ai.agents.implementation.models.FunctionShellActionParam":"OpenAI.FunctionShellActionParam","com.azure.ai.agents.implementation.models.FunctionShellCallItemParamEnvironment":"OpenAI.FunctionShellCallItemParamEnvironment","com.azure.ai.agents.implementation.models.FunctionShellCallItemParamEnvironmentContainerReferenceParam":"OpenAI.FunctionShellCallItemParamEnvironmentContainerReferenceParam","com.azure.ai.agents.implementation.models.FunctionShellCallItemParamEnvironmentLocalEnvironmentParam":"OpenAI.FunctionShellCallItemParamEnvironmentLocalEnvironmentParam","com.azure.ai.agents.implementation.models.FunctionShellCallItemParamEnvironmentType":"OpenAI.FunctionShellCallItemParamEnvironmentType","com.azure.ai.agents.implementation.models.FunctionShellCallItemStatus":"OpenAI.FunctionShellCallItemStatus","com.azure.ai.agents.implementation.models.FunctionShellCallOutputContentParam":"OpenAI.FunctionShellCallOutputContentParam","com.azure.ai.agents.implementation.models.FunctionShellCallOutputExitOutcomeParam":"OpenAI.FunctionShellCallOutputExitOutcomeParam","com.azure.ai.agents.implementation.models.FunctionShellCallOutputOutcomeParam":"OpenAI.FunctionShellCallOutputOutcomeParam","com.azure.ai.agents.implementation.models.FunctionShellCallOutputOutcomeParamType":"OpenAI.FunctionShellCallOutputOutcomeParamType","com.azure.ai.agents.implementation.models.FunctionShellCallOutputTimeoutOutcomeParam":"OpenAI.FunctionShellCallOutputTimeoutOutcomeParam","com.azure.ai.agents.implementation.models.ImageDetail":"OpenAI.ImageDetail","com.azure.ai.agents.implementation.models.ImageDetailLevel":"OpenAI.DetailEnum","com.azure.ai.agents.implementation.models.InputContent":"OpenAI.InputContent","com.azure.ai.agents.implementation.models.InputContentInputFileContent":"OpenAI.InputContentInputFileContent","com.azure.ai.agents.implementation.models.InputContentInputImageContent":"OpenAI.InputContentInputImageContent","com.azure.ai.agents.implementation.models.InputContentInputTextContent":"OpenAI.InputContentInputTextContent","com.azure.ai.agents.implementation.models.InputContentType":"OpenAI.InputContentType","com.azure.ai.agents.implementation.models.InputFileContentParam":"OpenAI.InputFileContentParam","com.azure.ai.agents.implementation.models.InputImageContentParamAutoParam":"OpenAI.InputImageContentParamAutoParam","com.azure.ai.agents.implementation.models.InputItem":"OpenAI.InputItem","com.azure.ai.agents.implementation.models.InputItemApplyPatchToolCallItemParam":"OpenAI.InputItemApplyPatchToolCallItemParam","com.azure.ai.agents.implementation.models.InputItemApplyPatchToolCallOutputItemParam":"OpenAI.InputItemApplyPatchToolCallOutputItemParam","com.azure.ai.agents.implementation.models.InputItemCodeInterpreterToolCall":"OpenAI.InputItemCodeInterpreterToolCall","com.azure.ai.agents.implementation.models.InputItemCodeInterpreterToolCallStatus":"OpenAI.InputItemCodeInterpreterToolCall.status.anonymous","com.azure.ai.agents.implementation.models.InputItemCompactionSummaryItemParam":"OpenAI.InputItemCompactionSummaryItemParam","com.azure.ai.agents.implementation.models.InputItemComputerCallOutputItemParam":"OpenAI.InputItemComputerCallOutputItemParam","com.azure.ai.agents.implementation.models.InputItemComputerToolCall":"OpenAI.InputItemComputerToolCall","com.azure.ai.agents.implementation.models.InputItemComputerToolCallStatus":"OpenAI.InputItemComputerToolCall.status.anonymous","com.azure.ai.agents.implementation.models.InputItemCustomToolCall":"OpenAI.InputItemCustomToolCall","com.azure.ai.agents.implementation.models.InputItemCustomToolCallOutput":"OpenAI.InputItemCustomToolCallOutput","com.azure.ai.agents.implementation.models.InputItemFileSearchToolCall":"OpenAI.InputItemFileSearchToolCall","com.azure.ai.agents.implementation.models.InputItemFileSearchToolCallStatus":"OpenAI.InputItemFileSearchToolCall.status.anonymous","com.azure.ai.agents.implementation.models.InputItemFunctionCallOutputItemParam":"OpenAI.InputItemFunctionCallOutputItemParam","com.azure.ai.agents.implementation.models.InputItemFunctionShellCallItemParam":"OpenAI.InputItemFunctionShellCallItemParam","com.azure.ai.agents.implementation.models.InputItemFunctionShellCallOutputItemParam":"OpenAI.InputItemFunctionShellCallOutputItemParam","com.azure.ai.agents.implementation.models.InputItemFunctionToolCall":"OpenAI.InputItemFunctionToolCall","com.azure.ai.agents.implementation.models.InputItemFunctionToolCallStatus":"OpenAI.InputItemFunctionToolCall.status.anonymous","com.azure.ai.agents.implementation.models.InputItemImageGenToolCall":"OpenAI.InputItemImageGenToolCall","com.azure.ai.agents.implementation.models.InputItemImageGenToolCallStatus":"OpenAI.InputItemImageGenToolCall.status.anonymous","com.azure.ai.agents.implementation.models.InputItemLocalShellToolCall":"OpenAI.InputItemLocalShellToolCall","com.azure.ai.agents.implementation.models.InputItemLocalShellToolCallOutput":"OpenAI.InputItemLocalShellToolCallOutput","com.azure.ai.agents.implementation.models.InputItemLocalShellToolCallOutputStatus":"OpenAI.InputItemLocalShellToolCallOutput.status.anonymous","com.azure.ai.agents.implementation.models.InputItemLocalShellToolCallStatus":"OpenAI.InputItemLocalShellToolCall.status.anonymous","com.azure.ai.agents.implementation.models.InputItemMcpApprovalRequest":"OpenAI.InputItemMcpApprovalRequest","com.azure.ai.agents.implementation.models.InputItemMcpApprovalResponse":"OpenAI.InputItemMcpApprovalResponse","com.azure.ai.agents.implementation.models.InputItemMcpListTools":"OpenAI.InputItemMcpListTools","com.azure.ai.agents.implementation.models.InputItemMcpToolCall":"OpenAI.InputItemMcpToolCall","com.azure.ai.agents.implementation.models.InputItemOutputMessage":"OpenAI.InputItemOutputMessage","com.azure.ai.agents.implementation.models.InputItemOutputMessageStatus":"OpenAI.InputItemOutputMessage.status.anonymous","com.azure.ai.agents.implementation.models.InputItemReasoningItem":"OpenAI.InputItemReasoningItem","com.azure.ai.agents.implementation.models.InputItemReasoningItemStatus":"OpenAI.InputItemReasoningItem.status.anonymous","com.azure.ai.agents.implementation.models.InputItemType":"OpenAI.InputItemType","com.azure.ai.agents.implementation.models.InputItemWebSearchToolCall":"OpenAI.InputItemWebSearchToolCall","com.azure.ai.agents.implementation.models.InputItemWebSearchToolCallStatus":"OpenAI.InputItemWebSearchToolCall.status.anonymous","com.azure.ai.agents.implementation.models.InputTextContentParam":"OpenAI.InputTextContentParam","com.azure.ai.agents.implementation.models.ItemReferenceParam":"OpenAI.ItemReferenceParam","com.azure.ai.agents.implementation.models.KeyPressAction":"OpenAI.KeyPressAction","com.azure.ai.agents.implementation.models.LocalShellExecAction":"OpenAI.LocalShellExecAction","com.azure.ai.agents.implementation.models.LogProb":"OpenAI.LogProb","com.azure.ai.agents.implementation.models.McpListToolsTool":"OpenAI.MCPListToolsTool","com.azure.ai.agents.implementation.models.McpListToolsToolAnnotations":"OpenAI.MCPListToolsToolAnnotations","com.azure.ai.agents.implementation.models.McpListToolsToolInputSchema":"OpenAI.MCPListToolsToolInputSchema","com.azure.ai.agents.implementation.models.McpToolCallStatus":"OpenAI.MCPToolCallStatus","com.azure.ai.agents.implementation.models.MessageContent":"OpenAI.MessageContent","com.azure.ai.agents.implementation.models.MessageContentType":"OpenAI.MessageContentType","com.azure.ai.agents.implementation.models.MoveParam":"OpenAI.MoveParam","com.azure.ai.agents.implementation.models.OutputMessageContent":"OpenAI.OutputMessageContent","com.azure.ai.agents.implementation.models.OutputMessageContentOutputTextContent":"OpenAI.OutputMessageContentOutputTextContent","com.azure.ai.agents.implementation.models.OutputMessageContentRefusalContent":"OpenAI.OutputMessageContentRefusalContent","com.azure.ai.agents.implementation.models.OutputMessageContentType":"OpenAI.OutputMessageContentType","com.azure.ai.agents.implementation.models.ReasoningTextContent":"OpenAI.ReasoningTextContent","com.azure.ai.agents.implementation.models.ScreenshotParam":"OpenAI.ScreenshotParam","com.azure.ai.agents.implementation.models.ScrollParam":"OpenAI.ScrollParam","com.azure.ai.agents.implementation.models.SearchMemoriesRequest":"Azure.AI.Projects.searchMemories.Request.anonymous","com.azure.ai.agents.implementation.models.SummaryTextContent":"OpenAI.SummaryTextContent","com.azure.ai.agents.implementation.models.TopLogProb":"OpenAI.TopLogProb","com.azure.ai.agents.implementation.models.TypeParam":"OpenAI.TypeParam","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.implementation.models.UpdateToolboxInput":"Azure.AI.Projects.UpdateToolboxRequest","com.azure.ai.agents.implementation.models.UpdateToolboxRequest":"Azure.AI.Projects.updateToolbox.Request.anonymous","com.azure.ai.agents.implementation.models.UrlCitationBody":"OpenAI.UrlCitationBody","com.azure.ai.agents.implementation.models.VectorStoreFileAttributes":"OpenAI.VectorStoreFileAttributes","com.azure.ai.agents.implementation.models.WaitParam":"OpenAI.WaitParam","com.azure.ai.agents.implementation.models.WebSearchActionFind":"OpenAI.WebSearchActionFind","com.azure.ai.agents.implementation.models.WebSearchActionOpenPage":"OpenAI.WebSearchActionOpenPage","com.azure.ai.agents.implementation.models.WebSearchActionSearch":"OpenAI.WebSearchActionSearch","com.azure.ai.agents.implementation.models.WebSearchActionSearchSources":"OpenAI.WebSearchActionSearchSources","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.AgentBlueprintReference":"Azure.AI.Projects.AgentBlueprintReference","com.azure.ai.agents.models.AgentBlueprintReferenceType":"Azure.AI.Projects.AgentBlueprintReferenceType","com.azure.ai.agents.models.AgentCard":"Azure.AI.Projects.AgentCard","com.azure.ai.agents.models.AgentCardSkill":"Azure.AI.Projects.AgentCardSkill","com.azure.ai.agents.models.AgentDefinition":"Azure.AI.Projects.AgentDefinition","com.azure.ai.agents.models.AgentDefinitionOptInKeys":"Azure.AI.Projects.AgentDefinitionOptInKeys","com.azure.ai.agents.models.AgentDetails":"Azure.AI.Projects.AgentObject","com.azure.ai.agents.models.AgentDetailsVersions":"Azure.AI.Projects.AgentObject.versions.anonymous","com.azure.ai.agents.models.AgentEndpoint":"Azure.AI.Projects.AgentEndpoint","com.azure.ai.agents.models.AgentEndpointAuthorizationScheme":"Azure.AI.Projects.AgentEndpointAuthorizationScheme","com.azure.ai.agents.models.AgentEndpointAuthorizationSchemeType":"Azure.AI.Projects.AgentEndpointAuthorizationSchemeType","com.azure.ai.agents.models.AgentEndpointProtocol":"Azure.AI.Projects.AgentEndpointProtocol","com.azure.ai.agents.models.AgentIdentity":"Azure.AI.Projects.AgentIdentity","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.AgentProtocol":"Azure.AI.Projects.AgentProtocol","com.azure.ai.agents.models.AgentReference":"Azure.AI.Projects.AgentReference","com.azure.ai.agents.models.AgentSessionResource":"Azure.AI.Projects.AgentSessionResource","com.azure.ai.agents.models.AgentSessionStatus":"Azure.AI.Projects.AgentSessionStatus","com.azure.ai.agents.models.AgentVersionDetails":"Azure.AI.Projects.AgentVersionObject","com.azure.ai.agents.models.ApiError":"OpenAI.Error","com.azure.ai.agents.models.ApplyPatchToolParameter":"OpenAI.ApplyPatchToolParam","com.azure.ai.agents.models.ApproximateLocation":"OpenAI.ApproximateLocation","com.azure.ai.agents.models.AutoCodeInterpreterToolParameter":"OpenAI.AutoCodeInterpreterToolParam","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.AzureCreateResponseDetails":"Azure.AI.Projects.AzureCreateResponseDetails","com.azure.ai.agents.models.AzureCreateResponseOptions":"Azure.AI.Projects.AzureCreateResponseOptions","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.AzureFunctionDefinitionDetails":"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.BotServiceAuthorizationScheme":"Azure.AI.Projects.BotServiceAuthorizationScheme","com.azure.ai.agents.models.BotServiceRbacAuthorizationScheme":"Azure.AI.Projects.BotServiceRbacAuthorizationScheme","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.CodeConfiguration":"Azure.AI.Projects.CodeConfiguration","com.azure.ai.agents.models.CodeInterpreterTool":"OpenAI.CodeInterpreterTool","com.azure.ai.agents.models.ComputerEnvironment":"ComputerEnvironmentExpandable","com.azure.ai.agents.models.ComputerUsePreviewTool":"OpenAI.ComputerUsePreviewTool","com.azure.ai.agents.models.ContainerAutoParameter":"OpenAI.ContainerAutoParam","com.azure.ai.agents.models.ContainerConfiguration":"Azure.AI.Projects.ContainerConfiguration","com.azure.ai.agents.models.ContainerMemoryLimit":"ContainerMemoryLimitExpandable","com.azure.ai.agents.models.ContainerNetworkPolicyAllowlistParameter":"OpenAI.ContainerNetworkPolicyAllowlistParam","com.azure.ai.agents.models.ContainerNetworkPolicyDisabledParameter":"OpenAI.ContainerNetworkPolicyDisabledParam","com.azure.ai.agents.models.ContainerNetworkPolicyDomainSecretParameter":"OpenAI.ContainerNetworkPolicyDomainSecretParam","com.azure.ai.agents.models.ContainerNetworkPolicyParamType":"OpenAI.ContainerNetworkPolicyParamType","com.azure.ai.agents.models.ContainerNetworkPolicyParameter":"OpenAI.ContainerNetworkPolicyParam","com.azure.ai.agents.models.ContainerSkill":"OpenAI.ContainerSkill","com.azure.ai.agents.models.ContainerSkillType":"OpenAI.ContainerSkillType","com.azure.ai.agents.models.CustomGrammarFormatParameter":"OpenAI.CustomGrammarFormatParam","com.azure.ai.agents.models.CustomTextFormatParameter":"OpenAI.CustomTextFormatParam","com.azure.ai.agents.models.CustomToolParamFormat":"OpenAI.CustomToolParamFormat","com.azure.ai.agents.models.CustomToolParamFormatType":"OpenAI.CustomToolParamFormatType","com.azure.ai.agents.models.CustomToolParameter":"OpenAI.CustomToolParam","com.azure.ai.agents.models.EntraAuthorizationScheme":"Azure.AI.Projects.EntraAuthorizationScheme","com.azure.ai.agents.models.EntraIsolationKeySource":"Azure.AI.Projects.EntraIsolationKeySource","com.azure.ai.agents.models.FabricDataAgentToolParameters":"Azure.AI.Projects.FabricDataAgentToolParameters","com.azure.ai.agents.models.FileSearchTool":"OpenAI.FileSearchTool","com.azure.ai.agents.models.FixedRatioVersionSelectionRule":"Azure.AI.Projects.FixedRatioVersionSelectionRule","com.azure.ai.agents.models.FoundryFeaturesOptInKeys":"Azure.AI.Projects.FoundryFeaturesOptInKeys","com.azure.ai.agents.models.FunctionShellToolParamEnvironment":"OpenAI.FunctionShellToolParamEnvironment","com.azure.ai.agents.models.FunctionShellToolParamEnvironmentType":"OpenAI.FunctionShellToolParamEnvironmentType","com.azure.ai.agents.models.FunctionShellToolParameter":"OpenAI.FunctionShellToolParam","com.azure.ai.agents.models.FunctionShellToolParameterEnvironmentContainerReferenceParameter":"OpenAI.FunctionShellToolParamEnvironmentContainerReferenceParam","com.azure.ai.agents.models.FunctionShellToolParameterEnvironmentLocalEnvironmentParameter":"OpenAI.FunctionShellToolParamEnvironmentLocalEnvironmentParam","com.azure.ai.agents.models.FunctionTool":"OpenAI.FunctionTool","com.azure.ai.agents.models.GrammarSyntax":"GrammarSyntaxExpandable","com.azure.ai.agents.models.HeaderIsolationKeySource":"Azure.AI.Projects.HeaderIsolationKeySource","com.azure.ai.agents.models.HostedAgentDefinition":"Azure.AI.Projects.HostedAgentDefinition","com.azure.ai.agents.models.HybridSearchOptions":"OpenAI.HybridSearchOptions","com.azure.ai.agents.models.ImageGenActionEnum":"ImageGenActionEnumExpandable","com.azure.ai.agents.models.ImageGenTool":"OpenAI.ImageGenTool","com.azure.ai.agents.models.ImageGenToolBackground":"ImageGenToolBackgroundExpandable","com.azure.ai.agents.models.ImageGenToolInputImageMask":"OpenAI.ImageGenToolInputImageMask","com.azure.ai.agents.models.ImageGenToolModel":"OpenAI.ImageGenTool.model.anonymous","com.azure.ai.agents.models.ImageGenToolModeration":"ImageGenToolModerationExpandable","com.azure.ai.agents.models.ImageGenToolOutputFormat":"ImageGenToolOutputFormatExpandable","com.azure.ai.agents.models.ImageGenToolQuality":"ImageGenToolQualityExpandable","com.azure.ai.agents.models.ImageGenToolSize":"ImageGenToolSizeExpandable","com.azure.ai.agents.models.IncludeEnum":"OpenAI.IncludeEnum","com.azure.ai.agents.models.InlineSkillParameter":"OpenAI.InlineSkillParam","com.azure.ai.agents.models.InlineSkillSourceParameter":"OpenAI.InlineSkillSourceParam","com.azure.ai.agents.models.InputFidelity":"InputFidelityExpandable","com.azure.ai.agents.models.IsolationKeySource":"Azure.AI.Projects.IsolationKeySource","com.azure.ai.agents.models.IsolationKeySourceKind":"Azure.AI.Projects.IsolationKeySourceKind","com.azure.ai.agents.models.LocalShellToolParameter":"OpenAI.LocalShellToolParam","com.azure.ai.agents.models.LocalSkillParameter":"OpenAI.LocalSkillParam","com.azure.ai.agents.models.ManagedAgentIdentityBlueprintReference":"Azure.AI.Projects.ManagedAgentIdentityBlueprintReference","com.azure.ai.agents.models.McpTool":"OpenAI.MCPTool","com.azure.ai.agents.models.McpToolConnectorId":"McpToolConnectorIdExpandable","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.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.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.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":"RankerVersionTypeExpandable","com.azure.ai.agents.models.RankingOptions":"OpenAI.RankingOptions","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.SearchContextSize":"SearchContextSizeExpandable","com.azure.ai.agents.models.SessionDirectoryEntry":"Azure.AI.Projects.SessionDirectoryEntry","com.azure.ai.agents.models.SessionDirectoryListResponse":"Azure.AI.Projects.SessionDirectoryListResponse","com.azure.ai.agents.models.SessionFileWriteResponse":"Azure.AI.Projects.SessionFileWriteResponse","com.azure.ai.agents.models.SessionLogEvent":"Azure.AI.Projects.SessionLogEvent","com.azure.ai.agents.models.SessionLogEventType":"Azure.AI.Projects.SessionLogEventType","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.SkillReferenceParameter":"OpenAI.SkillReferenceParam","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.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.ToolboxDetails":"Azure.AI.Projects.ToolboxObject","com.azure.ai.agents.models.ToolboxPolicies":"Azure.AI.Projects.ToolboxPolicies","com.azure.ai.agents.models.ToolboxVersionDetails":"Azure.AI.Projects.ToolboxVersionObject","com.azure.ai.agents.models.UpdateAgentDetailsPatchRequest":"Azure.AI.Projects.patchAgentObject.Request.anonymous","com.azure.ai.agents.models.UserProfileMemoryItem":"Azure.AI.Projects.UserProfileMemoryItem","com.azure.ai.agents.models.VersionIndicator":"Azure.AI.Projects.VersionIndicator","com.azure.ai.agents.models.VersionIndicatorType":"Azure.AI.Projects.VersionIndicatorType","com.azure.ai.agents.models.VersionRefIndicator":"Azure.AI.Projects.VersionRefIndicator","com.azure.ai.agents.models.VersionSelectionRule":"Azure.AI.Projects.VersionSelectionRule","com.azure.ai.agents.models.VersionSelector":"Azure.AI.Projects.VersionSelector","com.azure.ai.agents.models.VersionSelectorType":"Azure.AI.Projects.VersionSelectorType","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":"WebSearchToolSearchContextSizeExpandable","com.azure.ai.agents.models.WorkIQPreviewToolParameters":"Azure.AI.Projects.WorkIQPreviewToolParameters","com.azure.ai.agents.models.WorkIqPreviewTool":"Azure.AI.Projects.WorkIQPreviewTool","com.azure.ai.agents.models.WorkflowAgentDefinition":"Azure.AI.Projects.WorkflowAgentDefinition"},"generatedFiles":["src/main/java/com/azure/ai/agents/AgentSessionFilesAsyncClient.java","src/main/java/com/azure/ai/agents/AgentSessionFilesClient.java","src/main/java/com/azure/ai/agents/AgentsAsyncClient.java","src/main/java/com/azure/ai/agents/AgentsClient.java","src/main/java/com/azure/ai/agents/AgentsClientBuilder.java","src/main/java/com/azure/ai/agents/AgentsServiceVersion.java","src/main/java/com/azure/ai/agents/MemoryStoresAsyncClient.java","src/main/java/com/azure/ai/agents/MemoryStoresClient.java","src/main/java/com/azure/ai/agents/ToolboxesAsyncClient.java","src/main/java/com/azure/ai/agents/ToolboxesClient.java","src/main/java/com/azure/ai/agents/implementation/AgentSessionFilesImpl.java","src/main/java/com/azure/ai/agents/implementation/AgentsClientImpl.java","src/main/java/com/azure/ai/agents/implementation/AgentsImpl.java","src/main/java/com/azure/ai/agents/implementation/JsonMergePatchHelper.java","src/main/java/com/azure/ai/agents/implementation/MemoryStoresImpl.java","src/main/java/com/azure/ai/agents/implementation/OperationLocationPollingStrategy.java","src/main/java/com/azure/ai/agents/implementation/PollingUtils.java","src/main/java/com/azure/ai/agents/implementation/SyncOperationLocationPollingStrategy.java","src/main/java/com/azure/ai/agents/implementation/ToolboxesImpl.java","src/main/java/com/azure/ai/agents/implementation/models/Annotation.java","src/main/java/com/azure/ai/agents/implementation/models/AnnotationType.java","src/main/java/com/azure/ai/agents/implementation/models/ApplyPatchCallOutputStatusParam.java","src/main/java/com/azure/ai/agents/implementation/models/ApplyPatchCallStatusParam.java","src/main/java/com/azure/ai/agents/implementation/models/ApplyPatchCreateFileOperationParam.java","src/main/java/com/azure/ai/agents/implementation/models/ApplyPatchDeleteFileOperationParam.java","src/main/java/com/azure/ai/agents/implementation/models/ApplyPatchOperationParam.java","src/main/java/com/azure/ai/agents/implementation/models/ApplyPatchOperationParamType.java","src/main/java/com/azure/ai/agents/implementation/models/ApplyPatchUpdateFileOperationParam.java","src/main/java/com/azure/ai/agents/implementation/models/ClickButtonType.java","src/main/java/com/azure/ai/agents/implementation/models/ClickParam.java","src/main/java/com/azure/ai/agents/implementation/models/CodeInterpreterOutputImage.java","src/main/java/com/azure/ai/agents/implementation/models/CodeInterpreterOutputLogs.java","src/main/java/com/azure/ai/agents/implementation/models/ComputerAction.java","src/main/java/com/azure/ai/agents/implementation/models/ComputerActionType.java","src/main/java/com/azure/ai/agents/implementation/models/ComputerCallSafetyCheckParam.java","src/main/java/com/azure/ai/agents/implementation/models/ComputerScreenshotImage.java","src/main/java/com/azure/ai/agents/implementation/models/ContainerFileCitationBody.java","src/main/java/com/azure/ai/agents/implementation/models/CoordParam.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentFromManifestRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentOptions.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentVersionFromManifestRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentVersionRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateMemoryStoreRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateSessionRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateToolboxVersionRequest.java","src/main/java/com/azure/ai/agents/implementation/models/DoubleClickAction.java","src/main/java/com/azure/ai/agents/implementation/models/DragParam.java","src/main/java/com/azure/ai/agents/implementation/models/EasyInputMessage.java","src/main/java/com/azure/ai/agents/implementation/models/EasyInputMessageRole.java","src/main/java/com/azure/ai/agents/implementation/models/EasyInputMessageStatus.java","src/main/java/com/azure/ai/agents/implementation/models/FileCitationBody.java","src/main/java/com/azure/ai/agents/implementation/models/FilePath.java","src/main/java/com/azure/ai/agents/implementation/models/FileSearchToolCallResults.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionAndCustomToolCallOutput.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionAndCustomToolCallOutputInputFileContent.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionAndCustomToolCallOutputInputImageContent.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionAndCustomToolCallOutputInputTextContent.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionAndCustomToolCallOutputType.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionCallItemStatus.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellActionParam.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallItemParamEnvironment.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallItemParamEnvironmentContainerReferenceParam.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallItemParamEnvironmentLocalEnvironmentParam.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallItemParamEnvironmentType.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallItemStatus.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallOutputContentParam.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallOutputExitOutcomeParam.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallOutputOutcomeParam.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallOutputOutcomeParamType.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallOutputTimeoutOutcomeParam.java","src/main/java/com/azure/ai/agents/implementation/models/ImageDetail.java","src/main/java/com/azure/ai/agents/implementation/models/ImageDetailLevel.java","src/main/java/com/azure/ai/agents/implementation/models/InputContent.java","src/main/java/com/azure/ai/agents/implementation/models/InputContentInputFileContent.java","src/main/java/com/azure/ai/agents/implementation/models/InputContentInputImageContent.java","src/main/java/com/azure/ai/agents/implementation/models/InputContentInputTextContent.java","src/main/java/com/azure/ai/agents/implementation/models/InputContentType.java","src/main/java/com/azure/ai/agents/implementation/models/InputFileContentParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputImageContentParamAutoParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputItem.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemApplyPatchToolCallItemParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemApplyPatchToolCallOutputItemParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemCodeInterpreterToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemCodeInterpreterToolCallStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemCompactionSummaryItemParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemComputerCallOutputItemParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemComputerToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemComputerToolCallStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemCustomToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemCustomToolCallOutput.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemFileSearchToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemFileSearchToolCallStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemFunctionCallOutputItemParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemFunctionShellCallItemParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemFunctionShellCallOutputItemParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemFunctionToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemFunctionToolCallStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemImageGenToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemImageGenToolCallStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemLocalShellToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemLocalShellToolCallOutput.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemLocalShellToolCallOutputStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemLocalShellToolCallStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemMcpApprovalRequest.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemMcpApprovalResponse.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemMcpListTools.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemMcpToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemOutputMessage.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemOutputMessageStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemReasoningItem.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemReasoningItemStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemType.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemWebSearchToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemWebSearchToolCallStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputTextContentParam.java","src/main/java/com/azure/ai/agents/implementation/models/ItemReferenceParam.java","src/main/java/com/azure/ai/agents/implementation/models/KeyPressAction.java","src/main/java/com/azure/ai/agents/implementation/models/LocalShellExecAction.java","src/main/java/com/azure/ai/agents/implementation/models/LogProb.java","src/main/java/com/azure/ai/agents/implementation/models/McpListToolsTool.java","src/main/java/com/azure/ai/agents/implementation/models/McpListToolsToolAnnotations.java","src/main/java/com/azure/ai/agents/implementation/models/McpListToolsToolInputSchema.java","src/main/java/com/azure/ai/agents/implementation/models/McpToolCallStatus.java","src/main/java/com/azure/ai/agents/implementation/models/MessageContent.java","src/main/java/com/azure/ai/agents/implementation/models/MessageContentType.java","src/main/java/com/azure/ai/agents/implementation/models/MoveParam.java","src/main/java/com/azure/ai/agents/implementation/models/OutputMessageContent.java","src/main/java/com/azure/ai/agents/implementation/models/OutputMessageContentOutputTextContent.java","src/main/java/com/azure/ai/agents/implementation/models/OutputMessageContentRefusalContent.java","src/main/java/com/azure/ai/agents/implementation/models/OutputMessageContentType.java","src/main/java/com/azure/ai/agents/implementation/models/ReasoningTextContent.java","src/main/java/com/azure/ai/agents/implementation/models/ScreenshotParam.java","src/main/java/com/azure/ai/agents/implementation/models/ScrollParam.java","src/main/java/com/azure/ai/agents/implementation/models/SearchMemoriesRequest.java","src/main/java/com/azure/ai/agents/implementation/models/SummaryTextContent.java","src/main/java/com/azure/ai/agents/implementation/models/TopLogProb.java","src/main/java/com/azure/ai/agents/implementation/models/TypeParam.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateAgentFromManifestRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateAgentRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateMemoriesRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateMemoryStoreRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateToolboxInput.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateToolboxRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UrlCitationBody.java","src/main/java/com/azure/ai/agents/implementation/models/VectorStoreFileAttributes.java","src/main/java/com/azure/ai/agents/implementation/models/WaitParam.java","src/main/java/com/azure/ai/agents/implementation/models/WebSearchActionFind.java","src/main/java/com/azure/ai/agents/implementation/models/WebSearchActionOpenPage.java","src/main/java/com/azure/ai/agents/implementation/models/WebSearchActionSearch.java","src/main/java/com/azure/ai/agents/implementation/models/WebSearchActionSearchSources.java","src/main/java/com/azure/ai/agents/implementation/models/package-info.java","src/main/java/com/azure/ai/agents/implementation/package-info.java","src/main/java/com/azure/ai/agents/models/A2APreviewTool.java","src/main/java/com/azure/ai/agents/models/AISearchIndexResource.java","src/main/java/com/azure/ai/agents/models/AgentBlueprintReference.java","src/main/java/com/azure/ai/agents/models/AgentBlueprintReferenceType.java","src/main/java/com/azure/ai/agents/models/AgentCard.java","src/main/java/com/azure/ai/agents/models/AgentCardSkill.java","src/main/java/com/azure/ai/agents/models/AgentDefinition.java","src/main/java/com/azure/ai/agents/models/AgentDefinitionOptInKeys.java","src/main/java/com/azure/ai/agents/models/AgentDetails.java","src/main/java/com/azure/ai/agents/models/AgentDetailsVersions.java","src/main/java/com/azure/ai/agents/models/AgentEndpoint.java","src/main/java/com/azure/ai/agents/models/AgentEndpointAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/AgentEndpointAuthorizationSchemeType.java","src/main/java/com/azure/ai/agents/models/AgentEndpointProtocol.java","src/main/java/com/azure/ai/agents/models/AgentIdentity.java","src/main/java/com/azure/ai/agents/models/AgentKind.java","src/main/java/com/azure/ai/agents/models/AgentObjectType.java","src/main/java/com/azure/ai/agents/models/AgentProtocol.java","src/main/java/com/azure/ai/agents/models/AgentReference.java","src/main/java/com/azure/ai/agents/models/AgentSessionResource.java","src/main/java/com/azure/ai/agents/models/AgentSessionStatus.java","src/main/java/com/azure/ai/agents/models/AgentVersionDetails.java","src/main/java/com/azure/ai/agents/models/ApiError.java","src/main/java/com/azure/ai/agents/models/ApplyPatchToolParameter.java","src/main/java/com/azure/ai/agents/models/ApproximateLocation.java","src/main/java/com/azure/ai/agents/models/AutoCodeInterpreterToolParameter.java","src/main/java/com/azure/ai/agents/models/AzureAISearchQueryType.java","src/main/java/com/azure/ai/agents/models/AzureAISearchTool.java","src/main/java/com/azure/ai/agents/models/AzureAISearchToolResource.java","src/main/java/com/azure/ai/agents/models/AzureCreateResponseDetails.java","src/main/java/com/azure/ai/agents/models/AzureCreateResponseOptions.java","src/main/java/com/azure/ai/agents/models/AzureFunctionBinding.java","src/main/java/com/azure/ai/agents/models/AzureFunctionDefinition.java","src/main/java/com/azure/ai/agents/models/AzureFunctionDefinitionDetails.java","src/main/java/com/azure/ai/agents/models/AzureFunctionStorageQueue.java","src/main/java/com/azure/ai/agents/models/AzureFunctionTool.java","src/main/java/com/azure/ai/agents/models/BingCustomSearchConfiguration.java","src/main/java/com/azure/ai/agents/models/BingCustomSearchPreviewTool.java","src/main/java/com/azure/ai/agents/models/BingCustomSearchToolParameters.java","src/main/java/com/azure/ai/agents/models/BingGroundingSearchConfiguration.java","src/main/java/com/azure/ai/agents/models/BingGroundingSearchToolParameters.java","src/main/java/com/azure/ai/agents/models/BingGroundingTool.java","src/main/java/com/azure/ai/agents/models/BotServiceAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/BotServiceRbacAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationPreviewTool.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationToolConnectionParameters.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationToolParameters.java","src/main/java/com/azure/ai/agents/models/CaptureStructuredOutputsTool.java","src/main/java/com/azure/ai/agents/models/ChatSummaryMemoryItem.java","src/main/java/com/azure/ai/agents/models/CodeConfiguration.java","src/main/java/com/azure/ai/agents/models/CodeInterpreterTool.java","src/main/java/com/azure/ai/agents/models/ComputerEnvironment.java","src/main/java/com/azure/ai/agents/models/ComputerUsePreviewTool.java","src/main/java/com/azure/ai/agents/models/ContainerAutoParameter.java","src/main/java/com/azure/ai/agents/models/ContainerConfiguration.java","src/main/java/com/azure/ai/agents/models/ContainerMemoryLimit.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyAllowlistParameter.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyDisabledParameter.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyDomainSecretParameter.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyParamType.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyParameter.java","src/main/java/com/azure/ai/agents/models/ContainerSkill.java","src/main/java/com/azure/ai/agents/models/ContainerSkillType.java","src/main/java/com/azure/ai/agents/models/CustomGrammarFormatParameter.java","src/main/java/com/azure/ai/agents/models/CustomTextFormatParameter.java","src/main/java/com/azure/ai/agents/models/CustomToolParamFormat.java","src/main/java/com/azure/ai/agents/models/CustomToolParamFormatType.java","src/main/java/com/azure/ai/agents/models/CustomToolParameter.java","src/main/java/com/azure/ai/agents/models/EntraAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/EntraIsolationKeySource.java","src/main/java/com/azure/ai/agents/models/FabricDataAgentToolParameters.java","src/main/java/com/azure/ai/agents/models/FileSearchTool.java","src/main/java/com/azure/ai/agents/models/FixedRatioVersionSelectionRule.java","src/main/java/com/azure/ai/agents/models/FoundryFeaturesOptInKeys.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParamEnvironment.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParamEnvironmentType.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParameter.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParameterEnvironmentContainerReferenceParameter.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParameterEnvironmentLocalEnvironmentParameter.java","src/main/java/com/azure/ai/agents/models/FunctionTool.java","src/main/java/com/azure/ai/agents/models/GrammarSyntax.java","src/main/java/com/azure/ai/agents/models/HeaderIsolationKeySource.java","src/main/java/com/azure/ai/agents/models/HostedAgentDefinition.java","src/main/java/com/azure/ai/agents/models/HybridSearchOptions.java","src/main/java/com/azure/ai/agents/models/ImageGenActionEnum.java","src/main/java/com/azure/ai/agents/models/ImageGenTool.java","src/main/java/com/azure/ai/agents/models/ImageGenToolBackground.java","src/main/java/com/azure/ai/agents/models/ImageGenToolInputImageMask.java","src/main/java/com/azure/ai/agents/models/ImageGenToolModel.java","src/main/java/com/azure/ai/agents/models/ImageGenToolModeration.java","src/main/java/com/azure/ai/agents/models/ImageGenToolOutputFormat.java","src/main/java/com/azure/ai/agents/models/ImageGenToolQuality.java","src/main/java/com/azure/ai/agents/models/ImageGenToolSize.java","src/main/java/com/azure/ai/agents/models/IncludeEnum.java","src/main/java/com/azure/ai/agents/models/InlineSkillParameter.java","src/main/java/com/azure/ai/agents/models/InlineSkillSourceParameter.java","src/main/java/com/azure/ai/agents/models/InputFidelity.java","src/main/java/com/azure/ai/agents/models/IsolationKeySource.java","src/main/java/com/azure/ai/agents/models/IsolationKeySourceKind.java","src/main/java/com/azure/ai/agents/models/LocalShellToolParameter.java","src/main/java/com/azure/ai/agents/models/LocalSkillParameter.java","src/main/java/com/azure/ai/agents/models/ManagedAgentIdentityBlueprintReference.java","src/main/java/com/azure/ai/agents/models/McpTool.java","src/main/java/com/azure/ai/agents/models/McpToolConnectorId.java","src/main/java/com/azure/ai/agents/models/McpToolFilter.java","src/main/java/com/azure/ai/agents/models/McpToolRequireApproval.java","src/main/java/com/azure/ai/agents/models/MemoryItem.java","src/main/java/com/azure/ai/agents/models/MemoryItemKind.java","src/main/java/com/azure/ai/agents/models/MemoryOperation.java","src/main/java/com/azure/ai/agents/models/MemoryOperationKind.java","src/main/java/com/azure/ai/agents/models/MemorySearchItem.java","src/main/java/com/azure/ai/agents/models/MemorySearchOptions.java","src/main/java/com/azure/ai/agents/models/MemorySearchPreviewTool.java","src/main/java/com/azure/ai/agents/models/MemoryStoreDefaultDefinition.java","src/main/java/com/azure/ai/agents/models/MemoryStoreDefaultOptions.java","src/main/java/com/azure/ai/agents/models/MemoryStoreDefinition.java","src/main/java/com/azure/ai/agents/models/MemoryStoreDetails.java","src/main/java/com/azure/ai/agents/models/MemoryStoreKind.java","src/main/java/com/azure/ai/agents/models/MemoryStoreObjectType.java","src/main/java/com/azure/ai/agents/models/MemoryStoreOperationUsage.java","src/main/java/com/azure/ai/agents/models/MemoryStoreSearchResponse.java","src/main/java/com/azure/ai/agents/models/MemoryStoreUpdateCompletedResult.java","src/main/java/com/azure/ai/agents/models/MemoryStoreUpdateResponse.java","src/main/java/com/azure/ai/agents/models/MemoryStoreUpdateStatus.java","src/main/java/com/azure/ai/agents/models/MicrosoftFabricPreviewTool.java","src/main/java/com/azure/ai/agents/models/OpenApiAnonymousAuthDetails.java","src/main/java/com/azure/ai/agents/models/OpenApiAuthDetails.java","src/main/java/com/azure/ai/agents/models/OpenApiAuthType.java","src/main/java/com/azure/ai/agents/models/OpenApiFunctionDefinition.java","src/main/java/com/azure/ai/agents/models/OpenApiFunctionDefinitionFunction.java","src/main/java/com/azure/ai/agents/models/OpenApiManagedAuthDetails.java","src/main/java/com/azure/ai/agents/models/OpenApiManagedSecurityScheme.java","src/main/java/com/azure/ai/agents/models/OpenApiProjectConnectionAuthDetails.java","src/main/java/com/azure/ai/agents/models/OpenApiProjectConnectionSecurityScheme.java","src/main/java/com/azure/ai/agents/models/OpenApiTool.java","src/main/java/com/azure/ai/agents/models/PageOrder.java","src/main/java/com/azure/ai/agents/models/PromptAgentDefinition.java","src/main/java/com/azure/ai/agents/models/PromptAgentDefinitionTextOptions.java","src/main/java/com/azure/ai/agents/models/ProtocolVersionRecord.java","src/main/java/com/azure/ai/agents/models/RaiConfig.java","src/main/java/com/azure/ai/agents/models/RankerVersionType.java","src/main/java/com/azure/ai/agents/models/RankingOptions.java","src/main/java/com/azure/ai/agents/models/ResponseFormatJsonSchemaInner.java","src/main/java/com/azure/ai/agents/models/ResponseUsageInputTokensDetails.java","src/main/java/com/azure/ai/agents/models/ResponseUsageOutputTokensDetails.java","src/main/java/com/azure/ai/agents/models/SearchContextSize.java","src/main/java/com/azure/ai/agents/models/SessionDirectoryEntry.java","src/main/java/com/azure/ai/agents/models/SessionDirectoryListResponse.java","src/main/java/com/azure/ai/agents/models/SessionFileWriteResponse.java","src/main/java/com/azure/ai/agents/models/SessionLogEvent.java","src/main/java/com/azure/ai/agents/models/SessionLogEventType.java","src/main/java/com/azure/ai/agents/models/SharepointGroundingToolParameters.java","src/main/java/com/azure/ai/agents/models/SharepointPreviewTool.java","src/main/java/com/azure/ai/agents/models/SkillReferenceParameter.java","src/main/java/com/azure/ai/agents/models/StructuredInputDefinition.java","src/main/java/com/azure/ai/agents/models/StructuredOutputDefinition.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatConfiguration.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatConfigurationResponseFormatJsonObject.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatConfigurationResponseFormatText.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatConfigurationType.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatJsonSchema.java","src/main/java/com/azure/ai/agents/models/Tool.java","src/main/java/com/azure/ai/agents/models/ToolProjectConnection.java","src/main/java/com/azure/ai/agents/models/ToolType.java","src/main/java/com/azure/ai/agents/models/ToolboxDetails.java","src/main/java/com/azure/ai/agents/models/ToolboxPolicies.java","src/main/java/com/azure/ai/agents/models/ToolboxVersionDetails.java","src/main/java/com/azure/ai/agents/models/UpdateAgentDetailsPatchRequest.java","src/main/java/com/azure/ai/agents/models/UserProfileMemoryItem.java","src/main/java/com/azure/ai/agents/models/VersionIndicator.java","src/main/java/com/azure/ai/agents/models/VersionIndicatorType.java","src/main/java/com/azure/ai/agents/models/VersionRefIndicator.java","src/main/java/com/azure/ai/agents/models/VersionSelectionRule.java","src/main/java/com/azure/ai/agents/models/VersionSelector.java","src/main/java/com/azure/ai/agents/models/VersionSelectorType.java","src/main/java/com/azure/ai/agents/models/WebSearchApproximateLocation.java","src/main/java/com/azure/ai/agents/models/WebSearchConfiguration.java","src/main/java/com/azure/ai/agents/models/WebSearchPreviewTool.java","src/main/java/com/azure/ai/agents/models/WebSearchTool.java","src/main/java/com/azure/ai/agents/models/WebSearchToolFilters.java","src/main/java/com/azure/ai/agents/models/WebSearchToolSearchContextSize.java","src/main/java/com/azure/ai/agents/models/WorkIQPreviewToolParameters.java","src/main/java/com/azure/ai/agents/models/WorkIqPreviewTool.java","src/main/java/com/azure/ai/agents/models/WorkflowAgentDefinition.java","src/main/java/com/azure/ai/agents/models/package-info.java","src/main/java/com/azure/ai/agents/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Azure.AI.Projects":"v1"},"crossLanguageDefinitions":{"com.azure.ai.agents.AgentSessionFilesAsyncClient":"Azure.AI.Projects.AgentSessionFiles","com.azure.ai.agents.AgentSessionFilesAsyncClient.deleteSessionFile":"Azure.AI.Projects.AgentSessionFiles.deleteSessionFile","com.azure.ai.agents.AgentSessionFilesAsyncClient.deleteSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.deleteSessionFile","com.azure.ai.agents.AgentSessionFilesAsyncClient.downloadSessionFile":"Azure.AI.Projects.AgentSessionFiles.downloadSessionFile","com.azure.ai.agents.AgentSessionFilesAsyncClient.downloadSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.downloadSessionFile","com.azure.ai.agents.AgentSessionFilesAsyncClient.getSessionFiles":"Azure.AI.Projects.AgentSessionFiles.listSessionFiles","com.azure.ai.agents.AgentSessionFilesAsyncClient.getSessionFilesWithResponse":"Azure.AI.Projects.AgentSessionFiles.listSessionFiles","com.azure.ai.agents.AgentSessionFilesAsyncClient.uploadSessionFile":"Azure.AI.Projects.AgentSessionFiles.uploadSessionFile","com.azure.ai.agents.AgentSessionFilesAsyncClient.uploadSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.uploadSessionFile","com.azure.ai.agents.AgentSessionFilesClient":"Azure.AI.Projects.AgentSessionFiles","com.azure.ai.agents.AgentSessionFilesClient.deleteSessionFile":"Azure.AI.Projects.AgentSessionFiles.deleteSessionFile","com.azure.ai.agents.AgentSessionFilesClient.deleteSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.deleteSessionFile","com.azure.ai.agents.AgentSessionFilesClient.downloadSessionFile":"Azure.AI.Projects.AgentSessionFiles.downloadSessionFile","com.azure.ai.agents.AgentSessionFilesClient.downloadSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.downloadSessionFile","com.azure.ai.agents.AgentSessionFilesClient.getSessionFiles":"Azure.AI.Projects.AgentSessionFiles.listSessionFiles","com.azure.ai.agents.AgentSessionFilesClient.getSessionFilesWithResponse":"Azure.AI.Projects.AgentSessionFiles.listSessionFiles","com.azure.ai.agents.AgentSessionFilesClient.uploadSessionFile":"Azure.AI.Projects.AgentSessionFiles.uploadSessionFile","com.azure.ai.agents.AgentSessionFilesClient.uploadSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.uploadSessionFile","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.createSession":"Azure.AI.Projects.Agents.createSession","com.azure.ai.agents.AgentsAsyncClient.createSessionWithResponse":"Azure.AI.Projects.Agents.createSession","com.azure.ai.agents.AgentsAsyncClient.deleteSession":"Azure.AI.Projects.Agents.deleteSession","com.azure.ai.agents.AgentsAsyncClient.deleteSessionWithResponse":"Azure.AI.Projects.Agents.deleteSession","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.getSession":"Azure.AI.Projects.Agents.getSession","com.azure.ai.agents.AgentsAsyncClient.getSessionWithResponse":"Azure.AI.Projects.Agents.getSession","com.azure.ai.agents.AgentsAsyncClient.listAgentConversations":"Azure.AI.Projects.Conversations.listConversations","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.listSessions":"Azure.AI.Projects.Agents.listSessions","com.azure.ai.agents.AgentsAsyncClient.updateAgent":"Azure.AI.Projects.Agents.updateAgent","com.azure.ai.agents.AgentsAsyncClient.updateAgentDetails":"Azure.AI.Projects.Agents.patchAgentObject","com.azure.ai.agents.AgentsAsyncClient.updateAgentDetailsWithResponse":"Azure.AI.Projects.Agents.patchAgentObject","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.createSession":"Azure.AI.Projects.Agents.createSession","com.azure.ai.agents.AgentsClient.createSessionWithResponse":"Azure.AI.Projects.Agents.createSession","com.azure.ai.agents.AgentsClient.deleteSession":"Azure.AI.Projects.Agents.deleteSession","com.azure.ai.agents.AgentsClient.deleteSessionWithResponse":"Azure.AI.Projects.Agents.deleteSession","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.getSession":"Azure.AI.Projects.Agents.getSession","com.azure.ai.agents.AgentsClient.getSessionWithResponse":"Azure.AI.Projects.Agents.getSession","com.azure.ai.agents.AgentsClient.listAgentConversations":"Azure.AI.Projects.Conversations.listConversations","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.listSessions":"Azure.AI.Projects.Agents.listSessions","com.azure.ai.agents.AgentsClient.updateAgent":"Azure.AI.Projects.Agents.updateAgent","com.azure.ai.agents.AgentsClient.updateAgentDetails":"Azure.AI.Projects.Agents.patchAgentObject","com.azure.ai.agents.AgentsClient.updateAgentDetailsWithResponse":"Azure.AI.Projects.Agents.patchAgentObject","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.beginInternalUpdateMemories":"Azure.AI.Projects.MemoryStores.updateMemories","com.azure.ai.agents.MemoryStoresAsyncClient.beginInternalUpdateMemoriesWithModel":"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.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.internalSearchMemories":"Azure.AI.Projects.MemoryStores.searchMemories","com.azure.ai.agents.MemoryStoresAsyncClient.internalSearchMemoriesWithResponse":"Azure.AI.Projects.MemoryStores.searchMemories","com.azure.ai.agents.MemoryStoresAsyncClient.listMemoryStores":"Azure.AI.Projects.MemoryStores.listMemoryStores","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.beginInternalUpdateMemories":"Azure.AI.Projects.MemoryStores.updateMemories","com.azure.ai.agents.MemoryStoresClient.beginInternalUpdateMemoriesWithModel":"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.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.internalSearchMemories":"Azure.AI.Projects.MemoryStores.searchMemories","com.azure.ai.agents.MemoryStoresClient.internalSearchMemoriesWithResponse":"Azure.AI.Projects.MemoryStores.searchMemories","com.azure.ai.agents.MemoryStoresClient.listMemoryStores":"Azure.AI.Projects.MemoryStores.listMemoryStores","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.ToolboxesAsyncClient":"Azure.AI.Projects.Toolboxes","com.azure.ai.agents.ToolboxesAsyncClient.createToolboxVersion":"Azure.AI.Projects.Toolboxes.createToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.createToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.createToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.deleteToolbox":"Azure.AI.Projects.Toolboxes.deleteToolbox","com.azure.ai.agents.ToolboxesAsyncClient.deleteToolboxVersion":"Azure.AI.Projects.Toolboxes.deleteToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.deleteToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.deleteToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.deleteToolboxWithResponse":"Azure.AI.Projects.Toolboxes.deleteToolbox","com.azure.ai.agents.ToolboxesAsyncClient.getToolbox":"Azure.AI.Projects.Toolboxes.getToolbox","com.azure.ai.agents.ToolboxesAsyncClient.getToolboxVersion":"Azure.AI.Projects.Toolboxes.getToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.getToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.getToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.getToolboxWithResponse":"Azure.AI.Projects.Toolboxes.getToolbox","com.azure.ai.agents.ToolboxesAsyncClient.listToolboxVersions":"Azure.AI.Projects.Toolboxes.listToolboxVersions","com.azure.ai.agents.ToolboxesAsyncClient.listToolboxes":"Azure.AI.Projects.Toolboxes.listToolboxes","com.azure.ai.agents.ToolboxesAsyncClient.updateToolbox":"Azure.AI.Projects.Toolboxes.updateToolbox","com.azure.ai.agents.ToolboxesAsyncClient.updateToolboxWithResponse":"Azure.AI.Projects.Toolboxes.updateToolbox","com.azure.ai.agents.ToolboxesClient":"Azure.AI.Projects.Toolboxes","com.azure.ai.agents.ToolboxesClient.createToolboxVersion":"Azure.AI.Projects.Toolboxes.createToolboxVersion","com.azure.ai.agents.ToolboxesClient.createToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.createToolboxVersion","com.azure.ai.agents.ToolboxesClient.deleteToolbox":"Azure.AI.Projects.Toolboxes.deleteToolbox","com.azure.ai.agents.ToolboxesClient.deleteToolboxVersion":"Azure.AI.Projects.Toolboxes.deleteToolboxVersion","com.azure.ai.agents.ToolboxesClient.deleteToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.deleteToolboxVersion","com.azure.ai.agents.ToolboxesClient.deleteToolboxWithResponse":"Azure.AI.Projects.Toolboxes.deleteToolbox","com.azure.ai.agents.ToolboxesClient.getToolbox":"Azure.AI.Projects.Toolboxes.getToolbox","com.azure.ai.agents.ToolboxesClient.getToolboxVersion":"Azure.AI.Projects.Toolboxes.getToolboxVersion","com.azure.ai.agents.ToolboxesClient.getToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.getToolboxVersion","com.azure.ai.agents.ToolboxesClient.getToolboxWithResponse":"Azure.AI.Projects.Toolboxes.getToolbox","com.azure.ai.agents.ToolboxesClient.listToolboxVersions":"Azure.AI.Projects.Toolboxes.listToolboxVersions","com.azure.ai.agents.ToolboxesClient.listToolboxes":"Azure.AI.Projects.Toolboxes.listToolboxes","com.azure.ai.agents.ToolboxesClient.updateToolbox":"Azure.AI.Projects.Toolboxes.updateToolbox","com.azure.ai.agents.ToolboxesClient.updateToolboxWithResponse":"Azure.AI.Projects.Toolboxes.updateToolbox","com.azure.ai.agents.implementation.models.Annotation":"OpenAI.Annotation","com.azure.ai.agents.implementation.models.AnnotationType":"OpenAI.AnnotationType","com.azure.ai.agents.implementation.models.ApplyPatchCallOutputStatusParam":"OpenAI.ApplyPatchCallOutputStatusParam","com.azure.ai.agents.implementation.models.ApplyPatchCallStatusParam":"OpenAI.ApplyPatchCallStatusParam","com.azure.ai.agents.implementation.models.ApplyPatchCreateFileOperationParam":"OpenAI.ApplyPatchCreateFileOperationParam","com.azure.ai.agents.implementation.models.ApplyPatchDeleteFileOperationParam":"OpenAI.ApplyPatchDeleteFileOperationParam","com.azure.ai.agents.implementation.models.ApplyPatchOperationParam":"OpenAI.ApplyPatchOperationParam","com.azure.ai.agents.implementation.models.ApplyPatchOperationParamType":"OpenAI.ApplyPatchOperationParamType","com.azure.ai.agents.implementation.models.ApplyPatchUpdateFileOperationParam":"OpenAI.ApplyPatchUpdateFileOperationParam","com.azure.ai.agents.implementation.models.ClickButtonType":"OpenAI.ClickButtonType","com.azure.ai.agents.implementation.models.ClickParam":"OpenAI.ClickParam","com.azure.ai.agents.implementation.models.CodeInterpreterOutputImage":"OpenAI.CodeInterpreterOutputImage","com.azure.ai.agents.implementation.models.CodeInterpreterOutputLogs":"OpenAI.CodeInterpreterOutputLogs","com.azure.ai.agents.implementation.models.ComputerAction":"OpenAI.ComputerAction","com.azure.ai.agents.implementation.models.ComputerActionType":"OpenAI.ComputerActionType","com.azure.ai.agents.implementation.models.ComputerCallSafetyCheckParam":"OpenAI.ComputerCallSafetyCheckParam","com.azure.ai.agents.implementation.models.ComputerScreenshotImage":"OpenAI.ComputerScreenshotImage","com.azure.ai.agents.implementation.models.ContainerFileCitationBody":"OpenAI.ContainerFileCitationBody","com.azure.ai.agents.implementation.models.CoordParam":"OpenAI.CoordParam","com.azure.ai.agents.implementation.models.CreateAgentFromManifestRequest":"Azure.AI.Projects.createAgentFromManifest.Request.anonymous","com.azure.ai.agents.implementation.models.CreateAgentOptions":null,"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.CreateSessionRequest":"Azure.AI.Projects.createSession.Request.anonymous","com.azure.ai.agents.implementation.models.CreateToolboxVersionRequest":"Azure.AI.Projects.createToolboxVersion.Request.anonymous","com.azure.ai.agents.implementation.models.DoubleClickAction":"OpenAI.DoubleClickAction","com.azure.ai.agents.implementation.models.DragParam":"OpenAI.DragParam","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.FileCitationBody":"OpenAI.FileCitationBody","com.azure.ai.agents.implementation.models.FilePath":"OpenAI.FilePath","com.azure.ai.agents.implementation.models.FileSearchToolCallResults":"OpenAI.FileSearchToolCallResults","com.azure.ai.agents.implementation.models.FunctionAndCustomToolCallOutput":"OpenAI.FunctionAndCustomToolCallOutput","com.azure.ai.agents.implementation.models.FunctionAndCustomToolCallOutputInputFileContent":"OpenAI.FunctionAndCustomToolCallOutputInputFileContent","com.azure.ai.agents.implementation.models.FunctionAndCustomToolCallOutputInputImageContent":"OpenAI.FunctionAndCustomToolCallOutputInputImageContent","com.azure.ai.agents.implementation.models.FunctionAndCustomToolCallOutputInputTextContent":"OpenAI.FunctionAndCustomToolCallOutputInputTextContent","com.azure.ai.agents.implementation.models.FunctionAndCustomToolCallOutputType":"OpenAI.FunctionAndCustomToolCallOutputType","com.azure.ai.agents.implementation.models.FunctionCallItemStatus":"OpenAI.FunctionCallItemStatus","com.azure.ai.agents.implementation.models.FunctionShellActionParam":"OpenAI.FunctionShellActionParam","com.azure.ai.agents.implementation.models.FunctionShellCallItemParamEnvironment":"OpenAI.FunctionShellCallItemParamEnvironment","com.azure.ai.agents.implementation.models.FunctionShellCallItemParamEnvironmentContainerReferenceParam":"OpenAI.FunctionShellCallItemParamEnvironmentContainerReferenceParam","com.azure.ai.agents.implementation.models.FunctionShellCallItemParamEnvironmentLocalEnvironmentParam":"OpenAI.FunctionShellCallItemParamEnvironmentLocalEnvironmentParam","com.azure.ai.agents.implementation.models.FunctionShellCallItemParamEnvironmentType":"OpenAI.FunctionShellCallItemParamEnvironmentType","com.azure.ai.agents.implementation.models.FunctionShellCallItemStatus":"OpenAI.FunctionShellCallItemStatus","com.azure.ai.agents.implementation.models.FunctionShellCallOutputContentParam":"OpenAI.FunctionShellCallOutputContentParam","com.azure.ai.agents.implementation.models.FunctionShellCallOutputExitOutcomeParam":"OpenAI.FunctionShellCallOutputExitOutcomeParam","com.azure.ai.agents.implementation.models.FunctionShellCallOutputOutcomeParam":"OpenAI.FunctionShellCallOutputOutcomeParam","com.azure.ai.agents.implementation.models.FunctionShellCallOutputOutcomeParamType":"OpenAI.FunctionShellCallOutputOutcomeParamType","com.azure.ai.agents.implementation.models.FunctionShellCallOutputTimeoutOutcomeParam":"OpenAI.FunctionShellCallOutputTimeoutOutcomeParam","com.azure.ai.agents.implementation.models.ImageDetail":"OpenAI.ImageDetail","com.azure.ai.agents.implementation.models.ImageDetailLevel":"OpenAI.DetailEnum","com.azure.ai.agents.implementation.models.InputContent":"OpenAI.InputContent","com.azure.ai.agents.implementation.models.InputContentInputFileContent":"OpenAI.InputContentInputFileContent","com.azure.ai.agents.implementation.models.InputContentInputImageContent":"OpenAI.InputContentInputImageContent","com.azure.ai.agents.implementation.models.InputContentInputTextContent":"OpenAI.InputContentInputTextContent","com.azure.ai.agents.implementation.models.InputContentType":"OpenAI.InputContentType","com.azure.ai.agents.implementation.models.InputFileContentParam":"OpenAI.InputFileContentParam","com.azure.ai.agents.implementation.models.InputImageContentParamAutoParam":"OpenAI.InputImageContentParamAutoParam","com.azure.ai.agents.implementation.models.InputItem":"OpenAI.InputItem","com.azure.ai.agents.implementation.models.InputItemApplyPatchToolCallItemParam":"OpenAI.InputItemApplyPatchToolCallItemParam","com.azure.ai.agents.implementation.models.InputItemApplyPatchToolCallOutputItemParam":"OpenAI.InputItemApplyPatchToolCallOutputItemParam","com.azure.ai.agents.implementation.models.InputItemCodeInterpreterToolCall":"OpenAI.InputItemCodeInterpreterToolCall","com.azure.ai.agents.implementation.models.InputItemCodeInterpreterToolCallStatus":"OpenAI.InputItemCodeInterpreterToolCall.status.anonymous","com.azure.ai.agents.implementation.models.InputItemCompactionSummaryItemParam":"OpenAI.InputItemCompactionSummaryItemParam","com.azure.ai.agents.implementation.models.InputItemComputerCallOutputItemParam":"OpenAI.InputItemComputerCallOutputItemParam","com.azure.ai.agents.implementation.models.InputItemComputerToolCall":"OpenAI.InputItemComputerToolCall","com.azure.ai.agents.implementation.models.InputItemComputerToolCallStatus":"OpenAI.InputItemComputerToolCall.status.anonymous","com.azure.ai.agents.implementation.models.InputItemCustomToolCall":"OpenAI.InputItemCustomToolCall","com.azure.ai.agents.implementation.models.InputItemCustomToolCallOutput":"OpenAI.InputItemCustomToolCallOutput","com.azure.ai.agents.implementation.models.InputItemFileSearchToolCall":"OpenAI.InputItemFileSearchToolCall","com.azure.ai.agents.implementation.models.InputItemFileSearchToolCallStatus":"OpenAI.InputItemFileSearchToolCall.status.anonymous","com.azure.ai.agents.implementation.models.InputItemFunctionCallOutputItemParam":"OpenAI.InputItemFunctionCallOutputItemParam","com.azure.ai.agents.implementation.models.InputItemFunctionShellCallItemParam":"OpenAI.InputItemFunctionShellCallItemParam","com.azure.ai.agents.implementation.models.InputItemFunctionShellCallOutputItemParam":"OpenAI.InputItemFunctionShellCallOutputItemParam","com.azure.ai.agents.implementation.models.InputItemFunctionToolCall":"OpenAI.InputItemFunctionToolCall","com.azure.ai.agents.implementation.models.InputItemFunctionToolCallStatus":"OpenAI.InputItemFunctionToolCall.status.anonymous","com.azure.ai.agents.implementation.models.InputItemImageGenToolCall":"OpenAI.InputItemImageGenToolCall","com.azure.ai.agents.implementation.models.InputItemImageGenToolCallStatus":"OpenAI.InputItemImageGenToolCall.status.anonymous","com.azure.ai.agents.implementation.models.InputItemLocalShellToolCall":"OpenAI.InputItemLocalShellToolCall","com.azure.ai.agents.implementation.models.InputItemLocalShellToolCallOutput":"OpenAI.InputItemLocalShellToolCallOutput","com.azure.ai.agents.implementation.models.InputItemLocalShellToolCallOutputStatus":"OpenAI.InputItemLocalShellToolCallOutput.status.anonymous","com.azure.ai.agents.implementation.models.InputItemLocalShellToolCallStatus":"OpenAI.InputItemLocalShellToolCall.status.anonymous","com.azure.ai.agents.implementation.models.InputItemMcpApprovalRequest":"OpenAI.InputItemMcpApprovalRequest","com.azure.ai.agents.implementation.models.InputItemMcpApprovalResponse":"OpenAI.InputItemMcpApprovalResponse","com.azure.ai.agents.implementation.models.InputItemMcpListTools":"OpenAI.InputItemMcpListTools","com.azure.ai.agents.implementation.models.InputItemMcpToolCall":"OpenAI.InputItemMcpToolCall","com.azure.ai.agents.implementation.models.InputItemOutputMessage":"OpenAI.InputItemOutputMessage","com.azure.ai.agents.implementation.models.InputItemOutputMessageStatus":"OpenAI.InputItemOutputMessage.status.anonymous","com.azure.ai.agents.implementation.models.InputItemReasoningItem":"OpenAI.InputItemReasoningItem","com.azure.ai.agents.implementation.models.InputItemReasoningItemStatus":"OpenAI.InputItemReasoningItem.status.anonymous","com.azure.ai.agents.implementation.models.InputItemType":"OpenAI.InputItemType","com.azure.ai.agents.implementation.models.InputItemWebSearchToolCall":"OpenAI.InputItemWebSearchToolCall","com.azure.ai.agents.implementation.models.InputItemWebSearchToolCallStatus":"OpenAI.InputItemWebSearchToolCall.status.anonymous","com.azure.ai.agents.implementation.models.InputTextContentParam":"OpenAI.InputTextContentParam","com.azure.ai.agents.implementation.models.ItemReferenceParam":"OpenAI.ItemReferenceParam","com.azure.ai.agents.implementation.models.KeyPressAction":"OpenAI.KeyPressAction","com.azure.ai.agents.implementation.models.LocalShellExecAction":"OpenAI.LocalShellExecAction","com.azure.ai.agents.implementation.models.LogProb":"OpenAI.LogProb","com.azure.ai.agents.implementation.models.McpListToolsTool":"OpenAI.MCPListToolsTool","com.azure.ai.agents.implementation.models.McpListToolsToolAnnotations":"OpenAI.MCPListToolsToolAnnotations","com.azure.ai.agents.implementation.models.McpListToolsToolInputSchema":"OpenAI.MCPListToolsToolInputSchema","com.azure.ai.agents.implementation.models.McpToolCallStatus":"OpenAI.MCPToolCallStatus","com.azure.ai.agents.implementation.models.MessageContent":"OpenAI.MessageContent","com.azure.ai.agents.implementation.models.MessageContentType":"OpenAI.MessageContentType","com.azure.ai.agents.implementation.models.MoveParam":"OpenAI.MoveParam","com.azure.ai.agents.implementation.models.OutputMessageContent":"OpenAI.OutputMessageContent","com.azure.ai.agents.implementation.models.OutputMessageContentOutputTextContent":"OpenAI.OutputMessageContentOutputTextContent","com.azure.ai.agents.implementation.models.OutputMessageContentRefusalContent":"OpenAI.OutputMessageContentRefusalContent","com.azure.ai.agents.implementation.models.OutputMessageContentType":"OpenAI.OutputMessageContentType","com.azure.ai.agents.implementation.models.ReasoningTextContent":"OpenAI.ReasoningTextContent","com.azure.ai.agents.implementation.models.ScreenshotParam":"OpenAI.ScreenshotParam","com.azure.ai.agents.implementation.models.ScrollParam":"OpenAI.ScrollParam","com.azure.ai.agents.implementation.models.SearchMemoriesRequest":"Azure.AI.Projects.searchMemories.Request.anonymous","com.azure.ai.agents.implementation.models.SummaryTextContent":"OpenAI.SummaryTextContent","com.azure.ai.agents.implementation.models.TopLogProb":"OpenAI.TopLogProb","com.azure.ai.agents.implementation.models.TypeParam":"OpenAI.TypeParam","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.implementation.models.UpdateToolboxInput":"Azure.AI.Projects.UpdateToolboxRequest","com.azure.ai.agents.implementation.models.UpdateToolboxRequest":"Azure.AI.Projects.updateToolbox.Request.anonymous","com.azure.ai.agents.implementation.models.UrlCitationBody":"OpenAI.UrlCitationBody","com.azure.ai.agents.implementation.models.VectorStoreFileAttributes":"OpenAI.VectorStoreFileAttributes","com.azure.ai.agents.implementation.models.WaitParam":"OpenAI.WaitParam","com.azure.ai.agents.implementation.models.WebSearchActionFind":"OpenAI.WebSearchActionFind","com.azure.ai.agents.implementation.models.WebSearchActionOpenPage":"OpenAI.WebSearchActionOpenPage","com.azure.ai.agents.implementation.models.WebSearchActionSearch":"OpenAI.WebSearchActionSearch","com.azure.ai.agents.implementation.models.WebSearchActionSearchSources":"OpenAI.WebSearchActionSearchSources","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.AgentBlueprintReference":"Azure.AI.Projects.AgentBlueprintReference","com.azure.ai.agents.models.AgentBlueprintReferenceType":"Azure.AI.Projects.AgentBlueprintReferenceType","com.azure.ai.agents.models.AgentCard":"Azure.AI.Projects.AgentCard","com.azure.ai.agents.models.AgentCardSkill":"Azure.AI.Projects.AgentCardSkill","com.azure.ai.agents.models.AgentDefinition":"Azure.AI.Projects.AgentDefinition","com.azure.ai.agents.models.AgentDefinitionOptInKeys":"Azure.AI.Projects.AgentDefinitionOptInKeys","com.azure.ai.agents.models.AgentDetails":"Azure.AI.Projects.AgentObject","com.azure.ai.agents.models.AgentDetailsVersions":"Azure.AI.Projects.AgentObject.versions.anonymous","com.azure.ai.agents.models.AgentEndpointAuthorizationScheme":"Azure.AI.Projects.AgentEndpointAuthorizationScheme","com.azure.ai.agents.models.AgentEndpointAuthorizationSchemeType":"Azure.AI.Projects.AgentEndpointAuthorizationSchemeType","com.azure.ai.agents.models.AgentEndpointConfig":"Azure.AI.Projects.AgentEndpointConfig","com.azure.ai.agents.models.AgentEndpointProtocol":"Azure.AI.Projects.AgentEndpointProtocol","com.azure.ai.agents.models.AgentIdentity":"Azure.AI.Projects.AgentIdentity","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.AgentProtocol":"Azure.AI.Projects.AgentProtocol","com.azure.ai.agents.models.AgentReference":"Azure.AI.Projects.AgentReference","com.azure.ai.agents.models.AgentSessionResource":"Azure.AI.Projects.AgentSessionResource","com.azure.ai.agents.models.AgentSessionStatus":"Azure.AI.Projects.AgentSessionStatus","com.azure.ai.agents.models.AgentVersionDetails":"Azure.AI.Projects.AgentVersionObject","com.azure.ai.agents.models.AgentVersionStatus":"Azure.AI.Projects.AgentVersionStatus","com.azure.ai.agents.models.ApiError":"OpenAI.Error","com.azure.ai.agents.models.ApplyPatchToolParameter":"OpenAI.ApplyPatchToolParam","com.azure.ai.agents.models.ApproximateLocation":"OpenAI.ApproximateLocation","com.azure.ai.agents.models.AutoCodeInterpreterToolParameter":"OpenAI.AutoCodeInterpreterToolParam","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.AzureCreateResponseDetails":"Azure.AI.Projects.AzureCreateResponseDetails","com.azure.ai.agents.models.AzureCreateResponseOptions":"Azure.AI.Projects.AzureCreateResponseOptions","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.AzureFunctionDefinitionDetails":"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.BotServiceAuthorizationScheme":"Azure.AI.Projects.BotServiceAuthorizationScheme","com.azure.ai.agents.models.BotServiceRbacAuthorizationScheme":"Azure.AI.Projects.BotServiceRbacAuthorizationScheme","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.CodeConfiguration":"Azure.AI.Projects.CodeConfiguration","com.azure.ai.agents.models.CodeInterpreterTool":"OpenAI.CodeInterpreterTool","com.azure.ai.agents.models.ComputerEnvironment":"ComputerEnvironmentExpandable","com.azure.ai.agents.models.ComputerUsePreviewTool":"OpenAI.ComputerUsePreviewTool","com.azure.ai.agents.models.ContainerAutoParameter":"OpenAI.ContainerAutoParam","com.azure.ai.agents.models.ContainerConfiguration":"Azure.AI.Projects.ContainerConfiguration","com.azure.ai.agents.models.ContainerMemoryLimit":"ContainerMemoryLimitExpandable","com.azure.ai.agents.models.ContainerNetworkPolicyAllowlistParameter":"OpenAI.ContainerNetworkPolicyAllowlistParam","com.azure.ai.agents.models.ContainerNetworkPolicyDisabledParameter":"OpenAI.ContainerNetworkPolicyDisabledParam","com.azure.ai.agents.models.ContainerNetworkPolicyDomainSecretParameter":"OpenAI.ContainerNetworkPolicyDomainSecretParam","com.azure.ai.agents.models.ContainerNetworkPolicyParamType":"OpenAI.ContainerNetworkPolicyParamType","com.azure.ai.agents.models.ContainerNetworkPolicyParameter":"OpenAI.ContainerNetworkPolicyParam","com.azure.ai.agents.models.ContainerSkill":"OpenAI.ContainerSkill","com.azure.ai.agents.models.ContainerSkillType":"OpenAI.ContainerSkillType","com.azure.ai.agents.models.CustomGrammarFormatParameter":"OpenAI.CustomGrammarFormatParam","com.azure.ai.agents.models.CustomTextFormatParameter":"OpenAI.CustomTextFormatParam","com.azure.ai.agents.models.CustomToolParamFormat":"OpenAI.CustomToolParamFormat","com.azure.ai.agents.models.CustomToolParamFormatType":"OpenAI.CustomToolParamFormatType","com.azure.ai.agents.models.CustomToolParameter":"OpenAI.CustomToolParam","com.azure.ai.agents.models.EntraAuthorizationScheme":"Azure.AI.Projects.EntraAuthorizationScheme","com.azure.ai.agents.models.FabricDataAgentToolParameters":"Azure.AI.Projects.FabricDataAgentToolParameters","com.azure.ai.agents.models.FabricIQPreviewTool":"Azure.AI.Projects.FabricIQPreviewTool","com.azure.ai.agents.models.FabricIQPreviewToolParameters":"Azure.AI.Projects.FabricIQPreviewToolParameters","com.azure.ai.agents.models.FileSearchTool":"OpenAI.FileSearchTool","com.azure.ai.agents.models.FixedRatioVersionSelectionRule":"Azure.AI.Projects.FixedRatioVersionSelectionRule","com.azure.ai.agents.models.FoundryFeaturesOptInKeys":"Azure.AI.Projects.FoundryFeaturesOptInKeys","com.azure.ai.agents.models.FunctionShellToolParamEnvironment":"OpenAI.FunctionShellToolParamEnvironment","com.azure.ai.agents.models.FunctionShellToolParamEnvironmentType":"OpenAI.FunctionShellToolParamEnvironmentType","com.azure.ai.agents.models.FunctionShellToolParameter":"OpenAI.FunctionShellToolParam","com.azure.ai.agents.models.FunctionShellToolParameterEnvironmentContainerReferenceParameter":"OpenAI.FunctionShellToolParamEnvironmentContainerReferenceParam","com.azure.ai.agents.models.FunctionShellToolParameterEnvironmentLocalEnvironmentParameter":"OpenAI.FunctionShellToolParamEnvironmentLocalEnvironmentParam","com.azure.ai.agents.models.FunctionTool":"OpenAI.FunctionTool","com.azure.ai.agents.models.GrammarSyntax":"GrammarSyntaxExpandable","com.azure.ai.agents.models.HeaderTelemetryEndpointAuth":"Azure.AI.Projects.HeaderTelemetryEndpointAuth","com.azure.ai.agents.models.HostedAgentDefinition":"Azure.AI.Projects.HostedAgentDefinition","com.azure.ai.agents.models.HybridSearchOptions":"OpenAI.HybridSearchOptions","com.azure.ai.agents.models.ImageGenActionEnum":"ImageGenActionEnumExpandable","com.azure.ai.agents.models.ImageGenTool":"OpenAI.ImageGenTool","com.azure.ai.agents.models.ImageGenToolBackground":"ImageGenToolBackgroundExpandable","com.azure.ai.agents.models.ImageGenToolInputImageMask":"OpenAI.ImageGenToolInputImageMask","com.azure.ai.agents.models.ImageGenToolModel":"OpenAI.ImageGenTool.model.anonymous","com.azure.ai.agents.models.ImageGenToolModeration":"ImageGenToolModerationExpandable","com.azure.ai.agents.models.ImageGenToolOutputFormat":"ImageGenToolOutputFormatExpandable","com.azure.ai.agents.models.ImageGenToolQuality":"ImageGenToolQualityExpandable","com.azure.ai.agents.models.ImageGenToolSize":"ImageGenToolSizeExpandable","com.azure.ai.agents.models.IncludeEnum":"OpenAI.IncludeEnum","com.azure.ai.agents.models.InlineSkillParameter":"OpenAI.InlineSkillParam","com.azure.ai.agents.models.InlineSkillSourceParameter":"OpenAI.InlineSkillSourceParam","com.azure.ai.agents.models.InputFidelity":"InputFidelityExpandable","com.azure.ai.agents.models.LocalShellToolParameter":"OpenAI.LocalShellToolParam","com.azure.ai.agents.models.LocalSkillParameter":"OpenAI.LocalSkillParam","com.azure.ai.agents.models.ManagedAgentIdentityBlueprintReference":"Azure.AI.Projects.ManagedAgentIdentityBlueprintReference","com.azure.ai.agents.models.McpTool":"OpenAI.MCPTool","com.azure.ai.agents.models.McpToolConnectorId":"McpToolConnectorIdExpandable","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.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.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.OtlpTelemetryEndpoint":"Azure.AI.Projects.OtlpTelemetryEndpoint","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":"RankerVersionTypeExpandable","com.azure.ai.agents.models.RankingOptions":"OpenAI.RankingOptions","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.SearchContextSize":"SearchContextSizeExpandable","com.azure.ai.agents.models.SessionDirectoryEntry":"Azure.AI.Projects.SessionDirectoryEntry","com.azure.ai.agents.models.SessionDirectoryListResponse":"Azure.AI.Projects.SessionDirectoryListResponse","com.azure.ai.agents.models.SessionFileWriteResponse":"Azure.AI.Projects.SessionFileWriteResponse","com.azure.ai.agents.models.SessionLogEvent":"Azure.AI.Projects.SessionLogEvent","com.azure.ai.agents.models.SessionLogEventType":"Azure.AI.Projects.SessionLogEventType","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.SkillReferenceParameter":"OpenAI.SkillReferenceParam","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.TelemetryConfig":"Azure.AI.Projects.TelemetryConfig","com.azure.ai.agents.models.TelemetryDataKind":"Azure.AI.Projects.TelemetryDataKind","com.azure.ai.agents.models.TelemetryEndpoint":"Azure.AI.Projects.TelemetryEndpoint","com.azure.ai.agents.models.TelemetryEndpointAuth":"Azure.AI.Projects.TelemetryEndpointAuth","com.azure.ai.agents.models.TelemetryEndpointAuthType":"Azure.AI.Projects.TelemetryEndpointAuthType","com.azure.ai.agents.models.TelemetryEndpointKind":"Azure.AI.Projects.TelemetryEndpointKind","com.azure.ai.agents.models.TelemetryTransportProtocol":"Azure.AI.Projects.TelemetryTransportProtocol","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.ToolboxDetails":"Azure.AI.Projects.ToolboxObject","com.azure.ai.agents.models.ToolboxPolicies":"Azure.AI.Projects.ToolboxPolicies","com.azure.ai.agents.models.ToolboxSearchPreviewTool":"Azure.AI.Projects.ToolboxSearchPreviewTool","com.azure.ai.agents.models.ToolboxVersionDetails":"Azure.AI.Projects.ToolboxVersionObject","com.azure.ai.agents.models.UpdateAgentDetailsPatchRequest":"Azure.AI.Projects.patchAgentObject.Request.anonymous","com.azure.ai.agents.models.UserProfileMemoryItem":"Azure.AI.Projects.UserProfileMemoryItem","com.azure.ai.agents.models.VersionIndicator":"Azure.AI.Projects.VersionIndicator","com.azure.ai.agents.models.VersionIndicatorType":"Azure.AI.Projects.VersionIndicatorType","com.azure.ai.agents.models.VersionRefIndicator":"Azure.AI.Projects.VersionRefIndicator","com.azure.ai.agents.models.VersionSelectionRule":"Azure.AI.Projects.VersionSelectionRule","com.azure.ai.agents.models.VersionSelector":"Azure.AI.Projects.VersionSelector","com.azure.ai.agents.models.VersionSelectorType":"Azure.AI.Projects.VersionSelectorType","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":"WebSearchToolSearchContextSizeExpandable","com.azure.ai.agents.models.WorkIQPreviewToolParameters":"Azure.AI.Projects.WorkIQPreviewToolParameters","com.azure.ai.agents.models.WorkIqPreviewTool":"Azure.AI.Projects.WorkIQPreviewTool","com.azure.ai.agents.models.WorkflowAgentDefinition":"Azure.AI.Projects.WorkflowAgentDefinition"},"generatedFiles":["src/main/java/com/azure/ai/agents/AgentSessionFilesAsyncClient.java","src/main/java/com/azure/ai/agents/AgentSessionFilesClient.java","src/main/java/com/azure/ai/agents/AgentsAsyncClient.java","src/main/java/com/azure/ai/agents/AgentsClient.java","src/main/java/com/azure/ai/agents/AgentsClientBuilder.java","src/main/java/com/azure/ai/agents/AgentsServiceVersion.java","src/main/java/com/azure/ai/agents/MemoryStoresAsyncClient.java","src/main/java/com/azure/ai/agents/MemoryStoresClient.java","src/main/java/com/azure/ai/agents/ToolboxesAsyncClient.java","src/main/java/com/azure/ai/agents/ToolboxesClient.java","src/main/java/com/azure/ai/agents/implementation/AgentSessionFilesImpl.java","src/main/java/com/azure/ai/agents/implementation/AgentsClientImpl.java","src/main/java/com/azure/ai/agents/implementation/AgentsImpl.java","src/main/java/com/azure/ai/agents/implementation/JsonMergePatchHelper.java","src/main/java/com/azure/ai/agents/implementation/MemoryStoresImpl.java","src/main/java/com/azure/ai/agents/implementation/OperationLocationPollingStrategy.java","src/main/java/com/azure/ai/agents/implementation/PollingUtils.java","src/main/java/com/azure/ai/agents/implementation/SyncOperationLocationPollingStrategy.java","src/main/java/com/azure/ai/agents/implementation/ToolboxesImpl.java","src/main/java/com/azure/ai/agents/implementation/models/Annotation.java","src/main/java/com/azure/ai/agents/implementation/models/AnnotationType.java","src/main/java/com/azure/ai/agents/implementation/models/ApplyPatchCallOutputStatusParam.java","src/main/java/com/azure/ai/agents/implementation/models/ApplyPatchCallStatusParam.java","src/main/java/com/azure/ai/agents/implementation/models/ApplyPatchCreateFileOperationParam.java","src/main/java/com/azure/ai/agents/implementation/models/ApplyPatchDeleteFileOperationParam.java","src/main/java/com/azure/ai/agents/implementation/models/ApplyPatchOperationParam.java","src/main/java/com/azure/ai/agents/implementation/models/ApplyPatchOperationParamType.java","src/main/java/com/azure/ai/agents/implementation/models/ApplyPatchUpdateFileOperationParam.java","src/main/java/com/azure/ai/agents/implementation/models/ClickButtonType.java","src/main/java/com/azure/ai/agents/implementation/models/ClickParam.java","src/main/java/com/azure/ai/agents/implementation/models/CodeInterpreterOutputImage.java","src/main/java/com/azure/ai/agents/implementation/models/CodeInterpreterOutputLogs.java","src/main/java/com/azure/ai/agents/implementation/models/ComputerAction.java","src/main/java/com/azure/ai/agents/implementation/models/ComputerActionType.java","src/main/java/com/azure/ai/agents/implementation/models/ComputerCallSafetyCheckParam.java","src/main/java/com/azure/ai/agents/implementation/models/ComputerScreenshotImage.java","src/main/java/com/azure/ai/agents/implementation/models/ContainerFileCitationBody.java","src/main/java/com/azure/ai/agents/implementation/models/CoordParam.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentFromManifestRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentOptions.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentVersionFromManifestRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentVersionRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateMemoryStoreRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateSessionRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateToolboxVersionRequest.java","src/main/java/com/azure/ai/agents/implementation/models/DoubleClickAction.java","src/main/java/com/azure/ai/agents/implementation/models/DragParam.java","src/main/java/com/azure/ai/agents/implementation/models/EasyInputMessage.java","src/main/java/com/azure/ai/agents/implementation/models/EasyInputMessageRole.java","src/main/java/com/azure/ai/agents/implementation/models/EasyInputMessageStatus.java","src/main/java/com/azure/ai/agents/implementation/models/FileCitationBody.java","src/main/java/com/azure/ai/agents/implementation/models/FilePath.java","src/main/java/com/azure/ai/agents/implementation/models/FileSearchToolCallResults.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionAndCustomToolCallOutput.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionAndCustomToolCallOutputInputFileContent.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionAndCustomToolCallOutputInputImageContent.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionAndCustomToolCallOutputInputTextContent.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionAndCustomToolCallOutputType.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionCallItemStatus.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellActionParam.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallItemParamEnvironment.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallItemParamEnvironmentContainerReferenceParam.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallItemParamEnvironmentLocalEnvironmentParam.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallItemParamEnvironmentType.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallItemStatus.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallOutputContentParam.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallOutputExitOutcomeParam.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallOutputOutcomeParam.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallOutputOutcomeParamType.java","src/main/java/com/azure/ai/agents/implementation/models/FunctionShellCallOutputTimeoutOutcomeParam.java","src/main/java/com/azure/ai/agents/implementation/models/ImageDetail.java","src/main/java/com/azure/ai/agents/implementation/models/ImageDetailLevel.java","src/main/java/com/azure/ai/agents/implementation/models/InputContent.java","src/main/java/com/azure/ai/agents/implementation/models/InputContentInputFileContent.java","src/main/java/com/azure/ai/agents/implementation/models/InputContentInputImageContent.java","src/main/java/com/azure/ai/agents/implementation/models/InputContentInputTextContent.java","src/main/java/com/azure/ai/agents/implementation/models/InputContentType.java","src/main/java/com/azure/ai/agents/implementation/models/InputFileContentParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputImageContentParamAutoParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputItem.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemApplyPatchToolCallItemParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemApplyPatchToolCallOutputItemParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemCodeInterpreterToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemCodeInterpreterToolCallStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemCompactionSummaryItemParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemComputerCallOutputItemParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemComputerToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemComputerToolCallStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemCustomToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemCustomToolCallOutput.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemFileSearchToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemFileSearchToolCallStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemFunctionCallOutputItemParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemFunctionShellCallItemParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemFunctionShellCallOutputItemParam.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemFunctionToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemFunctionToolCallStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemImageGenToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemImageGenToolCallStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemLocalShellToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemLocalShellToolCallOutput.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemLocalShellToolCallOutputStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemLocalShellToolCallStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemMcpApprovalRequest.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemMcpApprovalResponse.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemMcpListTools.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemMcpToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemOutputMessage.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemOutputMessageStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemReasoningItem.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemReasoningItemStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemType.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemWebSearchToolCall.java","src/main/java/com/azure/ai/agents/implementation/models/InputItemWebSearchToolCallStatus.java","src/main/java/com/azure/ai/agents/implementation/models/InputTextContentParam.java","src/main/java/com/azure/ai/agents/implementation/models/ItemReferenceParam.java","src/main/java/com/azure/ai/agents/implementation/models/KeyPressAction.java","src/main/java/com/azure/ai/agents/implementation/models/LocalShellExecAction.java","src/main/java/com/azure/ai/agents/implementation/models/LogProb.java","src/main/java/com/azure/ai/agents/implementation/models/McpListToolsTool.java","src/main/java/com/azure/ai/agents/implementation/models/McpListToolsToolAnnotations.java","src/main/java/com/azure/ai/agents/implementation/models/McpListToolsToolInputSchema.java","src/main/java/com/azure/ai/agents/implementation/models/McpToolCallStatus.java","src/main/java/com/azure/ai/agents/implementation/models/MessageContent.java","src/main/java/com/azure/ai/agents/implementation/models/MessageContentType.java","src/main/java/com/azure/ai/agents/implementation/models/MoveParam.java","src/main/java/com/azure/ai/agents/implementation/models/OutputMessageContent.java","src/main/java/com/azure/ai/agents/implementation/models/OutputMessageContentOutputTextContent.java","src/main/java/com/azure/ai/agents/implementation/models/OutputMessageContentRefusalContent.java","src/main/java/com/azure/ai/agents/implementation/models/OutputMessageContentType.java","src/main/java/com/azure/ai/agents/implementation/models/ReasoningTextContent.java","src/main/java/com/azure/ai/agents/implementation/models/ScreenshotParam.java","src/main/java/com/azure/ai/agents/implementation/models/ScrollParam.java","src/main/java/com/azure/ai/agents/implementation/models/SearchMemoriesRequest.java","src/main/java/com/azure/ai/agents/implementation/models/SummaryTextContent.java","src/main/java/com/azure/ai/agents/implementation/models/TopLogProb.java","src/main/java/com/azure/ai/agents/implementation/models/TypeParam.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateAgentFromManifestRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateAgentRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateMemoriesRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateMemoryStoreRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateToolboxInput.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateToolboxRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UrlCitationBody.java","src/main/java/com/azure/ai/agents/implementation/models/VectorStoreFileAttributes.java","src/main/java/com/azure/ai/agents/implementation/models/WaitParam.java","src/main/java/com/azure/ai/agents/implementation/models/WebSearchActionFind.java","src/main/java/com/azure/ai/agents/implementation/models/WebSearchActionOpenPage.java","src/main/java/com/azure/ai/agents/implementation/models/WebSearchActionSearch.java","src/main/java/com/azure/ai/agents/implementation/models/WebSearchActionSearchSources.java","src/main/java/com/azure/ai/agents/implementation/models/package-info.java","src/main/java/com/azure/ai/agents/implementation/package-info.java","src/main/java/com/azure/ai/agents/models/A2APreviewTool.java","src/main/java/com/azure/ai/agents/models/AISearchIndexResource.java","src/main/java/com/azure/ai/agents/models/AgentBlueprintReference.java","src/main/java/com/azure/ai/agents/models/AgentBlueprintReferenceType.java","src/main/java/com/azure/ai/agents/models/AgentCard.java","src/main/java/com/azure/ai/agents/models/AgentCardSkill.java","src/main/java/com/azure/ai/agents/models/AgentDefinition.java","src/main/java/com/azure/ai/agents/models/AgentDefinitionOptInKeys.java","src/main/java/com/azure/ai/agents/models/AgentDetails.java","src/main/java/com/azure/ai/agents/models/AgentDetailsVersions.java","src/main/java/com/azure/ai/agents/models/AgentEndpointAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/AgentEndpointAuthorizationSchemeType.java","src/main/java/com/azure/ai/agents/models/AgentEndpointConfig.java","src/main/java/com/azure/ai/agents/models/AgentEndpointProtocol.java","src/main/java/com/azure/ai/agents/models/AgentIdentity.java","src/main/java/com/azure/ai/agents/models/AgentKind.java","src/main/java/com/azure/ai/agents/models/AgentObjectType.java","src/main/java/com/azure/ai/agents/models/AgentProtocol.java","src/main/java/com/azure/ai/agents/models/AgentReference.java","src/main/java/com/azure/ai/agents/models/AgentSessionResource.java","src/main/java/com/azure/ai/agents/models/AgentSessionStatus.java","src/main/java/com/azure/ai/agents/models/AgentVersionDetails.java","src/main/java/com/azure/ai/agents/models/AgentVersionStatus.java","src/main/java/com/azure/ai/agents/models/ApiError.java","src/main/java/com/azure/ai/agents/models/ApplyPatchToolParameter.java","src/main/java/com/azure/ai/agents/models/ApproximateLocation.java","src/main/java/com/azure/ai/agents/models/AutoCodeInterpreterToolParameter.java","src/main/java/com/azure/ai/agents/models/AzureAISearchQueryType.java","src/main/java/com/azure/ai/agents/models/AzureAISearchTool.java","src/main/java/com/azure/ai/agents/models/AzureAISearchToolResource.java","src/main/java/com/azure/ai/agents/models/AzureCreateResponseDetails.java","src/main/java/com/azure/ai/agents/models/AzureCreateResponseOptions.java","src/main/java/com/azure/ai/agents/models/AzureFunctionBinding.java","src/main/java/com/azure/ai/agents/models/AzureFunctionDefinition.java","src/main/java/com/azure/ai/agents/models/AzureFunctionDefinitionDetails.java","src/main/java/com/azure/ai/agents/models/AzureFunctionStorageQueue.java","src/main/java/com/azure/ai/agents/models/AzureFunctionTool.java","src/main/java/com/azure/ai/agents/models/BingCustomSearchConfiguration.java","src/main/java/com/azure/ai/agents/models/BingCustomSearchPreviewTool.java","src/main/java/com/azure/ai/agents/models/BingCustomSearchToolParameters.java","src/main/java/com/azure/ai/agents/models/BingGroundingSearchConfiguration.java","src/main/java/com/azure/ai/agents/models/BingGroundingSearchToolParameters.java","src/main/java/com/azure/ai/agents/models/BingGroundingTool.java","src/main/java/com/azure/ai/agents/models/BotServiceAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/BotServiceRbacAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationPreviewTool.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationToolConnectionParameters.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationToolParameters.java","src/main/java/com/azure/ai/agents/models/CaptureStructuredOutputsTool.java","src/main/java/com/azure/ai/agents/models/ChatSummaryMemoryItem.java","src/main/java/com/azure/ai/agents/models/CodeConfiguration.java","src/main/java/com/azure/ai/agents/models/CodeInterpreterTool.java","src/main/java/com/azure/ai/agents/models/ComputerEnvironment.java","src/main/java/com/azure/ai/agents/models/ComputerUsePreviewTool.java","src/main/java/com/azure/ai/agents/models/ContainerAutoParameter.java","src/main/java/com/azure/ai/agents/models/ContainerConfiguration.java","src/main/java/com/azure/ai/agents/models/ContainerMemoryLimit.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyAllowlistParameter.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyDisabledParameter.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyDomainSecretParameter.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyParamType.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyParameter.java","src/main/java/com/azure/ai/agents/models/ContainerSkill.java","src/main/java/com/azure/ai/agents/models/ContainerSkillType.java","src/main/java/com/azure/ai/agents/models/CustomGrammarFormatParameter.java","src/main/java/com/azure/ai/agents/models/CustomTextFormatParameter.java","src/main/java/com/azure/ai/agents/models/CustomToolParamFormat.java","src/main/java/com/azure/ai/agents/models/CustomToolParamFormatType.java","src/main/java/com/azure/ai/agents/models/CustomToolParameter.java","src/main/java/com/azure/ai/agents/models/EntraAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/FabricDataAgentToolParameters.java","src/main/java/com/azure/ai/agents/models/FabricIQPreviewTool.java","src/main/java/com/azure/ai/agents/models/FabricIQPreviewToolParameters.java","src/main/java/com/azure/ai/agents/models/FileSearchTool.java","src/main/java/com/azure/ai/agents/models/FixedRatioVersionSelectionRule.java","src/main/java/com/azure/ai/agents/models/FoundryFeaturesOptInKeys.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParamEnvironment.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParamEnvironmentType.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParameter.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParameterEnvironmentContainerReferenceParameter.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParameterEnvironmentLocalEnvironmentParameter.java","src/main/java/com/azure/ai/agents/models/FunctionTool.java","src/main/java/com/azure/ai/agents/models/GrammarSyntax.java","src/main/java/com/azure/ai/agents/models/HeaderTelemetryEndpointAuth.java","src/main/java/com/azure/ai/agents/models/HostedAgentDefinition.java","src/main/java/com/azure/ai/agents/models/HybridSearchOptions.java","src/main/java/com/azure/ai/agents/models/ImageGenActionEnum.java","src/main/java/com/azure/ai/agents/models/ImageGenTool.java","src/main/java/com/azure/ai/agents/models/ImageGenToolBackground.java","src/main/java/com/azure/ai/agents/models/ImageGenToolInputImageMask.java","src/main/java/com/azure/ai/agents/models/ImageGenToolModel.java","src/main/java/com/azure/ai/agents/models/ImageGenToolModeration.java","src/main/java/com/azure/ai/agents/models/ImageGenToolOutputFormat.java","src/main/java/com/azure/ai/agents/models/ImageGenToolQuality.java","src/main/java/com/azure/ai/agents/models/ImageGenToolSize.java","src/main/java/com/azure/ai/agents/models/IncludeEnum.java","src/main/java/com/azure/ai/agents/models/InlineSkillParameter.java","src/main/java/com/azure/ai/agents/models/InlineSkillSourceParameter.java","src/main/java/com/azure/ai/agents/models/InputFidelity.java","src/main/java/com/azure/ai/agents/models/LocalShellToolParameter.java","src/main/java/com/azure/ai/agents/models/LocalSkillParameter.java","src/main/java/com/azure/ai/agents/models/ManagedAgentIdentityBlueprintReference.java","src/main/java/com/azure/ai/agents/models/McpTool.java","src/main/java/com/azure/ai/agents/models/McpToolConnectorId.java","src/main/java/com/azure/ai/agents/models/McpToolFilter.java","src/main/java/com/azure/ai/agents/models/McpToolRequireApproval.java","src/main/java/com/azure/ai/agents/models/MemoryItem.java","src/main/java/com/azure/ai/agents/models/MemoryItemKind.java","src/main/java/com/azure/ai/agents/models/MemoryOperation.java","src/main/java/com/azure/ai/agents/models/MemoryOperationKind.java","src/main/java/com/azure/ai/agents/models/MemorySearchItem.java","src/main/java/com/azure/ai/agents/models/MemorySearchOptions.java","src/main/java/com/azure/ai/agents/models/MemorySearchPreviewTool.java","src/main/java/com/azure/ai/agents/models/MemoryStoreDefaultDefinition.java","src/main/java/com/azure/ai/agents/models/MemoryStoreDefaultOptions.java","src/main/java/com/azure/ai/agents/models/MemoryStoreDefinition.java","src/main/java/com/azure/ai/agents/models/MemoryStoreDetails.java","src/main/java/com/azure/ai/agents/models/MemoryStoreKind.java","src/main/java/com/azure/ai/agents/models/MemoryStoreObjectType.java","src/main/java/com/azure/ai/agents/models/MemoryStoreOperationUsage.java","src/main/java/com/azure/ai/agents/models/MemoryStoreSearchResponse.java","src/main/java/com/azure/ai/agents/models/MemoryStoreUpdateCompletedResult.java","src/main/java/com/azure/ai/agents/models/MemoryStoreUpdateResponse.java","src/main/java/com/azure/ai/agents/models/MemoryStoreUpdateStatus.java","src/main/java/com/azure/ai/agents/models/MicrosoftFabricPreviewTool.java","src/main/java/com/azure/ai/agents/models/OpenApiAnonymousAuthDetails.java","src/main/java/com/azure/ai/agents/models/OpenApiAuthDetails.java","src/main/java/com/azure/ai/agents/models/OpenApiAuthType.java","src/main/java/com/azure/ai/agents/models/OpenApiFunctionDefinition.java","src/main/java/com/azure/ai/agents/models/OpenApiFunctionDefinitionFunction.java","src/main/java/com/azure/ai/agents/models/OpenApiManagedAuthDetails.java","src/main/java/com/azure/ai/agents/models/OpenApiManagedSecurityScheme.java","src/main/java/com/azure/ai/agents/models/OpenApiProjectConnectionAuthDetails.java","src/main/java/com/azure/ai/agents/models/OpenApiProjectConnectionSecurityScheme.java","src/main/java/com/azure/ai/agents/models/OpenApiTool.java","src/main/java/com/azure/ai/agents/models/OtlpTelemetryEndpoint.java","src/main/java/com/azure/ai/agents/models/PageOrder.java","src/main/java/com/azure/ai/agents/models/PromptAgentDefinition.java","src/main/java/com/azure/ai/agents/models/PromptAgentDefinitionTextOptions.java","src/main/java/com/azure/ai/agents/models/ProtocolVersionRecord.java","src/main/java/com/azure/ai/agents/models/RaiConfig.java","src/main/java/com/azure/ai/agents/models/RankerVersionType.java","src/main/java/com/azure/ai/agents/models/RankingOptions.java","src/main/java/com/azure/ai/agents/models/ResponseFormatJsonSchemaInner.java","src/main/java/com/azure/ai/agents/models/ResponseUsageInputTokensDetails.java","src/main/java/com/azure/ai/agents/models/ResponseUsageOutputTokensDetails.java","src/main/java/com/azure/ai/agents/models/SearchContextSize.java","src/main/java/com/azure/ai/agents/models/SessionDirectoryEntry.java","src/main/java/com/azure/ai/agents/models/SessionDirectoryListResponse.java","src/main/java/com/azure/ai/agents/models/SessionFileWriteResponse.java","src/main/java/com/azure/ai/agents/models/SessionLogEvent.java","src/main/java/com/azure/ai/agents/models/SessionLogEventType.java","src/main/java/com/azure/ai/agents/models/SharepointGroundingToolParameters.java","src/main/java/com/azure/ai/agents/models/SharepointPreviewTool.java","src/main/java/com/azure/ai/agents/models/SkillReferenceParameter.java","src/main/java/com/azure/ai/agents/models/StructuredInputDefinition.java","src/main/java/com/azure/ai/agents/models/StructuredOutputDefinition.java","src/main/java/com/azure/ai/agents/models/TelemetryConfig.java","src/main/java/com/azure/ai/agents/models/TelemetryDataKind.java","src/main/java/com/azure/ai/agents/models/TelemetryEndpoint.java","src/main/java/com/azure/ai/agents/models/TelemetryEndpointAuth.java","src/main/java/com/azure/ai/agents/models/TelemetryEndpointAuthType.java","src/main/java/com/azure/ai/agents/models/TelemetryEndpointKind.java","src/main/java/com/azure/ai/agents/models/TelemetryTransportProtocol.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatConfiguration.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatConfigurationResponseFormatJsonObject.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatConfigurationResponseFormatText.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatConfigurationType.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatJsonSchema.java","src/main/java/com/azure/ai/agents/models/Tool.java","src/main/java/com/azure/ai/agents/models/ToolProjectConnection.java","src/main/java/com/azure/ai/agents/models/ToolType.java","src/main/java/com/azure/ai/agents/models/ToolboxDetails.java","src/main/java/com/azure/ai/agents/models/ToolboxPolicies.java","src/main/java/com/azure/ai/agents/models/ToolboxSearchPreviewTool.java","src/main/java/com/azure/ai/agents/models/ToolboxVersionDetails.java","src/main/java/com/azure/ai/agents/models/UpdateAgentDetailsPatchRequest.java","src/main/java/com/azure/ai/agents/models/UserProfileMemoryItem.java","src/main/java/com/azure/ai/agents/models/VersionIndicator.java","src/main/java/com/azure/ai/agents/models/VersionIndicatorType.java","src/main/java/com/azure/ai/agents/models/VersionRefIndicator.java","src/main/java/com/azure/ai/agents/models/VersionSelectionRule.java","src/main/java/com/azure/ai/agents/models/VersionSelector.java","src/main/java/com/azure/ai/agents/models/VersionSelectorType.java","src/main/java/com/azure/ai/agents/models/WebSearchApproximateLocation.java","src/main/java/com/azure/ai/agents/models/WebSearchConfiguration.java","src/main/java/com/azure/ai/agents/models/WebSearchPreviewTool.java","src/main/java/com/azure/ai/agents/models/WebSearchTool.java","src/main/java/com/azure/ai/agents/models/WebSearchToolFilters.java","src/main/java/com/azure/ai/agents/models/WebSearchToolSearchContextSize.java","src/main/java/com/azure/ai/agents/models/WorkIQPreviewToolParameters.java","src/main/java/com/azure/ai/agents/models/WorkIqPreviewTool.java","src/main/java/com/azure/ai/agents/models/WorkflowAgentDefinition.java","src/main/java/com/azure/ai/agents/models/package-info.java","src/main/java/com/azure/ai/agents/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/ai/azure-ai-agents/tsp-location.yaml b/sdk/ai/azure-ai-agents/tsp-location.yaml index 083091087ea8..24cadfa57cb1 100644 --- a/sdk/ai/azure-ai-agents/tsp-location.yaml +++ b/sdk/ai/azure-ai-agents/tsp-location.yaml @@ -1,5 +1,5 @@ directory: specification/ai-foundry/data-plane/Foundry/src/sdk-agents -commit: 6e1d5ea82cba7933b0b0071ca4321cfcb9c900c8 +commit: e419f19a4f47a1b824f0e86ec3445ba03822ebaf repo: Azure/azure-rest-api-specs additionalDirectories: - specification/ai-foundry/data-plane/Foundry/src/agents diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/AIProjectClientBuilder.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/AIProjectClientBuilder.java index 58a66cfffd7d..eaff55b32a67 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/AIProjectClientBuilder.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/AIProjectClientBuilder.java @@ -59,9 +59,11 @@ EvaluationRulesClient.class, EvaluationTaxonomiesClient.class, EvaluatorsClient.class, + EvaluatorGenerationJobsClient.class, InsightsClient.class, SchedulesClient.class, SkillsClient.class, + DataGenerationJobsClient.class, ConnectionsAsyncClient.class, DatasetsAsyncClient.class, IndexesAsyncClient.class, @@ -70,9 +72,11 @@ EvaluationRulesAsyncClient.class, EvaluationTaxonomiesAsyncClient.class, EvaluatorsAsyncClient.class, + EvaluatorGenerationJobsAsyncClient.class, InsightsAsyncClient.class, SchedulesAsyncClient.class, - SkillsAsyncClient.class }) + SkillsAsyncClient.class, + DataGenerationJobsAsyncClient.class }) public final class AIProjectClientBuilder implements HttpTrait, ConfigurationTrait, TokenCredentialTrait, EndpointTrait { @@ -649,4 +653,44 @@ public SkillsAsyncClient buildSkillsAsyncClient() { public SkillsClient buildSkillsClient() { return new SkillsClient(buildInnerClient().getSkills()); } + + /** + * Builds an instance of EvaluatorGenerationJobsAsyncClient class. + * + * @return an instance of EvaluatorGenerationJobsAsyncClient. + */ + @Generated + public EvaluatorGenerationJobsAsyncClient buildEvaluatorGenerationJobsAsyncClient() { + return new EvaluatorGenerationJobsAsyncClient(buildInnerClient().getEvaluatorGenerationJobs()); + } + + /** + * Builds an instance of DataGenerationJobsAsyncClient class. + * + * @return an instance of DataGenerationJobsAsyncClient. + */ + @Generated + public DataGenerationJobsAsyncClient buildDataGenerationJobsAsyncClient() { + return new DataGenerationJobsAsyncClient(buildInnerClient().getDataGenerationJobs()); + } + + /** + * Builds an instance of EvaluatorGenerationJobsClient class. + * + * @return an instance of EvaluatorGenerationJobsClient. + */ + @Generated + public EvaluatorGenerationJobsClient buildEvaluatorGenerationJobsClient() { + return new EvaluatorGenerationJobsClient(buildInnerClient().getEvaluatorGenerationJobs()); + } + + /** + * Builds an instance of DataGenerationJobsClient class. + * + * @return an instance of DataGenerationJobsClient. + */ + @Generated + public DataGenerationJobsClient buildDataGenerationJobsClient() { + return new DataGenerationJobsClient(buildInnerClient().getDataGenerationJobs()); + } } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/DataGenerationJobsAsyncClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/DataGenerationJobsAsyncClient.java new file mode 100644 index 000000000000..2bbcbd15c6ed --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/DataGenerationJobsAsyncClient.java @@ -0,0 +1,828 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects; + +import com.azure.ai.agents.models.PageOrder; +import com.azure.ai.projects.implementation.DataGenerationJobsImpl; +import com.azure.ai.projects.models.DataGenerationJob; +import com.azure.ai.projects.models.DataGenerationJobScenario; +import com.azure.ai.projects.models.DataGenerationJobType; +import com.azure.ai.projects.models.FoundryFeaturesOptInKeys; +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.exception.ClientAuthenticationException; +import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; +import com.azure.core.http.HttpHeaderName; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.core.util.FluxUtil; +import java.util.List; +import java.util.Objects; +import java.util.stream.Collectors; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * Initializes a new instance of the asynchronous AIProjectClient type. + */ +@ServiceClient(builder = AIProjectClientBuilder.class, isAsync = true) +public final class DataGenerationJobsAsyncClient { + @Generated + private final DataGenerationJobsImpl serviceClient; + + /** + * Initializes an instance of DataGenerationJobsAsyncClient class. + * + * @param serviceClient the service client implementation. + */ + @Generated + DataGenerationJobsAsyncClient(DataGenerationJobsImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * Get info about a data generation job. + * + * Gets the details of a data generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 info about a data generation job. + * + * Gets the details of a data generation job by its ID along with {@link Response} on successful completion of + * {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getGenerationJobWithResponse(String jobId, RequestOptions requestOptions) { + return this.serviceClient.getGenerationJobWithResponseAsync(jobId, requestOptions); + } + + /** + * Returns a list of data generation jobs + * + * Returns a list of data generation jobs. + *

Query Parameters

+ * + * + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
limitIntegerNoA limit on the number of objects to be returned. Limit can range + * between 1 and 100, and the + * default is 20.
orderStringNoSort order by the `created_at` timestamp of the objects. `asc` + * for ascending order and`desc` + * for descending order. Allowed values: "asc", "desc".
afterStringNoA cursor for use in pagination. `after` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list.
beforeStringNoA cursor for use in pagination. `before` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list.
scenarioStringNoFilter data generation jobs by their scenario. Allowed values: + * "supervised_finetuning", "reinforcement_finetuning", "evaluation".
typeList<String>NoFilter data generation jobs by their type. In the form + * of "," separated string.
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @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 the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listGenerationJobs(RequestOptions requestOptions) { + return this.serviceClient.listGenerationJobsAsync(requestOptions); + } + + /** + * Creates a data generation job. + *

Header Parameters

+ * + * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
Operation-IdStringNoClient-generated unique ID for idempotent retries. When + * absent, the server creates the job unconditionally.
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 data Generation Job resource along with {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createGenerationJobWithResponse(BinaryData job, RequestOptions requestOptions) { + return this.serviceClient.createGenerationJobWithResponseAsync(job, requestOptions); + } + + /** + * Cancels a data generation job. + * + * Cancels a data generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 data Generation Job resource along with {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> cancelGenerationJobWithResponse(String jobId, RequestOptions requestOptions) { + return this.serviceClient.cancelGenerationJobWithResponseAsync(jobId, requestOptions); + } + + /** + * Deletes a data generation job. + * + * Deletes a data generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 the {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteGenerationJobWithResponse(String jobId, RequestOptions requestOptions) { + return this.serviceClient.deleteGenerationJobWithResponseAsync(jobId, requestOptions); + } + + /** + * Get info about a data generation job. + * + * Gets the details of a data generation job by its ID. + * + * @param jobId The ID of the job. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return info about a data generation job. + * + * Gets the details of a data generation job by its ID on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getGenerationJob(String jobId, FoundryFeaturesOptInKeys foundryFeatures) { + // Generated convenience method for getGenerationJobWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + return getGenerationJobWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(DataGenerationJob.class)); + } + + /** + * Get info about a data generation job. + * + * Gets the details of a data generation job by its ID. + * + * @param jobId The ID of the job. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return info about a data generation job. + * + * Gets the details of a data generation job by its ID on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getGenerationJob(String jobId) { + // Generated convenience method for getGenerationJobWithResponse + RequestOptions requestOptions = new RequestOptions(); + return getGenerationJobWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(DataGenerationJob.class)); + } + + /** + * Returns a list of data generation jobs + * + * Returns a list of data generation jobs. + * + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @param scenario Filter data generation jobs by their scenario. + * @param type Filter data generation jobs by their type. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listGenerationJobs(FoundryFeaturesOptInKeys foundryFeatures, Integer limit, + PageOrder order, String after, String before, DataGenerationJobScenario scenario, + List type) { + // Generated convenience method for listGenerationJobs + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (after != null) { + requestOptions.addQueryParam("after", after, false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + if (scenario != null) { + requestOptions.addQueryParam("scenario", scenario.toString(), false); + } + if (type != null) { + requestOptions.addQueryParam("type", + type.stream() + .map(paramItemValue -> Objects.toString(paramItemValue, "")) + .collect(Collectors.joining(",")), + false); + } + PagedFlux pagedFluxResponse = listGenerationJobs(requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(DataGenerationJob.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * Returns a list of data generation jobs + * + * Returns a list of data generation jobs. + * + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listGenerationJobs() { + // Generated convenience method for listGenerationJobs + RequestOptions requestOptions = new RequestOptions(); + PagedFlux pagedFluxResponse = listGenerationJobs(requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(DataGenerationJob.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * Creates a data generation job. + * + * @param job The job to create. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @param operationId Client-generated unique ID for idempotent retries. When absent, the server creates the job + * unconditionally. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return data Generation Job resource on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createGenerationJob(DataGenerationJob job, FoundryFeaturesOptInKeys foundryFeatures, + String operationId) { + // Generated convenience method for createGenerationJobWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + if (operationId != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Operation-Id"), operationId); + } + return createGenerationJobWithResponse(BinaryData.fromObject(job), requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(DataGenerationJob.class)); + } + + /** + * Creates a data generation job. + * + * @param job The job to create. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return data Generation Job resource on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createGenerationJob(DataGenerationJob job) { + // Generated convenience method for createGenerationJobWithResponse + RequestOptions requestOptions = new RequestOptions(); + return createGenerationJobWithResponse(BinaryData.fromObject(job), requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(DataGenerationJob.class)); + } + + /** + * Cancels a data generation job. + * + * Cancels a data generation job by its ID. + * + * @param jobId The ID of the job to cancel. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return data Generation Job resource on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono cancelGenerationJob(String jobId, FoundryFeaturesOptInKeys foundryFeatures) { + // Generated convenience method for cancelGenerationJobWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + return cancelGenerationJobWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(DataGenerationJob.class)); + } + + /** + * Cancels a data generation job. + * + * Cancels a data generation job by its ID. + * + * @param jobId The ID of the job to cancel. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return data Generation Job resource on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono cancelGenerationJob(String jobId) { + // Generated convenience method for cancelGenerationJobWithResponse + RequestOptions requestOptions = new RequestOptions(); + return cancelGenerationJobWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(DataGenerationJob.class)); + } + + /** + * Deletes a data generation job. + * + * Deletes a data generation job by its ID. + * + * @param jobId The ID of the job to delete. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteGenerationJob(String jobId, FoundryFeaturesOptInKeys foundryFeatures) { + // Generated convenience method for deleteGenerationJobWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + return deleteGenerationJobWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono); + } + + /** + * Deletes a data generation job. + * + * Deletes a data generation job by its ID. + * + * @param jobId The ID of the job to delete. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteGenerationJob(String jobId) { + // Generated convenience method for deleteGenerationJobWithResponse + RequestOptions requestOptions = new RequestOptions(); + return deleteGenerationJobWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/DataGenerationJobsClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/DataGenerationJobsClient.java new file mode 100644 index 000000000000..61b5f6af34e7 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/DataGenerationJobsClient.java @@ -0,0 +1,794 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects; + +import com.azure.ai.agents.models.PageOrder; +import com.azure.ai.projects.implementation.DataGenerationJobsImpl; +import com.azure.ai.projects.models.DataGenerationJob; +import com.azure.ai.projects.models.DataGenerationJobScenario; +import com.azure.ai.projects.models.DataGenerationJobType; +import com.azure.ai.projects.models.FoundryFeaturesOptInKeys; +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.exception.ClientAuthenticationException; +import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; +import com.azure.core.http.HttpHeaderName; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import java.util.List; +import java.util.Objects; +import java.util.stream.Collectors; + +/** + * Initializes a new instance of the synchronous AIProjectClient type. + */ +@ServiceClient(builder = AIProjectClientBuilder.class) +public final class DataGenerationJobsClient { + @Generated + private final DataGenerationJobsImpl serviceClient; + + /** + * Initializes an instance of DataGenerationJobsClient class. + * + * @param serviceClient the service client implementation. + */ + @Generated + DataGenerationJobsClient(DataGenerationJobsImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * Get info about a data generation job. + * + * Gets the details of a data generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 info about a data generation job. + * + * Gets the details of a data generation job by its ID along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getGenerationJobWithResponse(String jobId, RequestOptions requestOptions) { + return this.serviceClient.getGenerationJobWithResponse(jobId, requestOptions); + } + + /** + * Returns a list of data generation jobs + * + * Returns a list of data generation jobs. + *

Query Parameters

+ * + * + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
limitIntegerNoA limit on the number of objects to be returned. Limit can range + * between 1 and 100, and the + * default is 20.
orderStringNoSort order by the `created_at` timestamp of the objects. `asc` + * for ascending order and`desc` + * for descending order. Allowed values: "asc", "desc".
afterStringNoA cursor for use in pagination. `after` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list.
beforeStringNoA cursor for use in pagination. `before` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list.
scenarioStringNoFilter data generation jobs by their scenario. Allowed values: + * "supervised_finetuning", "reinforcement_finetuning", "evaluation".
typeList<String>NoFilter data generation jobs by their type. In the form + * of "," separated string.
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @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 the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listGenerationJobs(RequestOptions requestOptions) { + return this.serviceClient.listGenerationJobs(requestOptions); + } + + /** + * Creates a data generation job. + *

Header Parameters

+ * + * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
Operation-IdStringNoClient-generated unique ID for idempotent retries. When + * absent, the server creates the job unconditionally.
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 data Generation Job resource along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createGenerationJobWithResponse(BinaryData job, RequestOptions requestOptions) { + return this.serviceClient.createGenerationJobWithResponse(job, requestOptions); + } + + /** + * Cancels a data generation job. + * + * Cancels a data generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 data Generation Job resource along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response cancelGenerationJobWithResponse(String jobId, RequestOptions requestOptions) { + return this.serviceClient.cancelGenerationJobWithResponse(jobId, requestOptions); + } + + /** + * Deletes a data generation job. + * + * Deletes a data generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 the {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response deleteGenerationJobWithResponse(String jobId, RequestOptions requestOptions) { + return this.serviceClient.deleteGenerationJobWithResponse(jobId, requestOptions); + } + + /** + * Get info about a data generation job. + * + * Gets the details of a data generation job by its ID. + * + * @param jobId The ID of the job. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return info about a data generation job. + * + * Gets the details of a data generation job by its ID. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public DataGenerationJob getGenerationJob(String jobId, FoundryFeaturesOptInKeys foundryFeatures) { + // Generated convenience method for getGenerationJobWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + return getGenerationJobWithResponse(jobId, requestOptions).getValue().toObject(DataGenerationJob.class); + } + + /** + * Get info about a data generation job. + * + * Gets the details of a data generation job by its ID. + * + * @param jobId The ID of the job. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return info about a data generation job. + * + * Gets the details of a data generation job by its ID. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public DataGenerationJob getGenerationJob(String jobId) { + // Generated convenience method for getGenerationJobWithResponse + RequestOptions requestOptions = new RequestOptions(); + return getGenerationJobWithResponse(jobId, requestOptions).getValue().toObject(DataGenerationJob.class); + } + + /** + * Returns a list of data generation jobs + * + * Returns a list of data generation jobs. + * + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @param scenario Filter data generation jobs by their scenario. + * @param type Filter data generation jobs by their type. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listGenerationJobs(FoundryFeaturesOptInKeys foundryFeatures, Integer limit, + PageOrder order, String after, String before, DataGenerationJobScenario scenario, + List type) { + // Generated convenience method for listGenerationJobs + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (after != null) { + requestOptions.addQueryParam("after", after, false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + if (scenario != null) { + requestOptions.addQueryParam("scenario", scenario.toString(), false); + } + if (type != null) { + requestOptions.addQueryParam("type", + type.stream() + .map(paramItemValue -> Objects.toString(paramItemValue, "")) + .collect(Collectors.joining(",")), + false); + } + return serviceClient.listGenerationJobs(requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(DataGenerationJob.class)); + } + + /** + * Returns a list of data generation jobs + * + * Returns a list of data generation jobs. + * + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listGenerationJobs() { + // Generated convenience method for listGenerationJobs + RequestOptions requestOptions = new RequestOptions(); + return serviceClient.listGenerationJobs(requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(DataGenerationJob.class)); + } + + /** + * Creates a data generation job. + * + * @param job The job to create. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @param operationId Client-generated unique ID for idempotent retries. When absent, the server creates the job + * unconditionally. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return data Generation Job resource. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public DataGenerationJob createGenerationJob(DataGenerationJob job, FoundryFeaturesOptInKeys foundryFeatures, + String operationId) { + // Generated convenience method for createGenerationJobWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + if (operationId != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Operation-Id"), operationId); + } + return createGenerationJobWithResponse(BinaryData.fromObject(job), requestOptions).getValue() + .toObject(DataGenerationJob.class); + } + + /** + * Creates a data generation job. + * + * @param job The job to create. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return data Generation Job resource. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public DataGenerationJob createGenerationJob(DataGenerationJob job) { + // Generated convenience method for createGenerationJobWithResponse + RequestOptions requestOptions = new RequestOptions(); + return createGenerationJobWithResponse(BinaryData.fromObject(job), requestOptions).getValue() + .toObject(DataGenerationJob.class); + } + + /** + * Cancels a data generation job. + * + * Cancels a data generation job by its ID. + * + * @param jobId The ID of the job to cancel. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return data Generation Job resource. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public DataGenerationJob cancelGenerationJob(String jobId, FoundryFeaturesOptInKeys foundryFeatures) { + // Generated convenience method for cancelGenerationJobWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + return cancelGenerationJobWithResponse(jobId, requestOptions).getValue().toObject(DataGenerationJob.class); + } + + /** + * Cancels a data generation job. + * + * Cancels a data generation job by its ID. + * + * @param jobId The ID of the job to cancel. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return data Generation Job resource. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public DataGenerationJob cancelGenerationJob(String jobId) { + // Generated convenience method for cancelGenerationJobWithResponse + RequestOptions requestOptions = new RequestOptions(); + return cancelGenerationJobWithResponse(jobId, requestOptions).getValue().toObject(DataGenerationJob.class); + } + + /** + * Deletes a data generation job. + * + * Deletes a data generation job by its ID. + * + * @param jobId The ID of the job to delete. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public void deleteGenerationJob(String jobId, FoundryFeaturesOptInKeys foundryFeatures) { + // Generated convenience method for deleteGenerationJobWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + deleteGenerationJobWithResponse(jobId, requestOptions).getValue(); + } + + /** + * Deletes a data generation job. + * + * Deletes a data generation job by its ID. + * + * @param jobId The ID of the job to delete. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public void deleteGenerationJob(String jobId) { + // Generated convenience method for deleteGenerationJobWithResponse + RequestOptions requestOptions = new RequestOptions(); + deleteGenerationJobWithResponse(jobId, requestOptions).getValue(); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluationRulesAsyncClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluationRulesAsyncClient.java index c8985ac3d83d..e662e6084a98 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluationRulesAsyncClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluationRulesAsyncClient.java @@ -111,7 +111,7 @@ public Mono> deleteEvaluationRuleWithResponse(String id, RequestO * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluationRulesClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluationRulesClient.java index bd1e18f0f7ec..01474d24cee7 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluationRulesClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluationRulesClient.java @@ -105,7 +105,7 @@ public Response deleteEvaluationRuleWithResponse(String id, RequestOptions * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluationTaxonomiesAsyncClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluationTaxonomiesAsyncClient.java index b926fef41037..600c4aea31bb 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluationTaxonomiesAsyncClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluationTaxonomiesAsyncClient.java @@ -278,7 +278,7 @@ public Mono> deleteEvaluationTaxonomyWithResponse(String name, Re * * * @param name The name of the evaluation taxonomy. - * @param body The evaluation taxonomy. + * @param taxonomy The evaluation taxonomy. * @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. @@ -288,9 +288,9 @@ public Mono> deleteEvaluationTaxonomyWithResponse(String name, Re */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createEvaluationTaxonomyWithResponse(String name, BinaryData body, + public Mono> createEvaluationTaxonomyWithResponse(String name, BinaryData taxonomy, RequestOptions requestOptions) { - return this.serviceClient.createEvaluationTaxonomyWithResponseAsync(name, body, requestOptions); + return this.serviceClient.createEvaluationTaxonomyWithResponseAsync(name, taxonomy, requestOptions); } /** @@ -384,7 +384,7 @@ public Mono> createEvaluationTaxonomyWithResponse(String na * * * @param name The name of the evaluation taxonomy. - * @param body The evaluation taxonomy. + * @param taxonomy The evaluation taxonomy. * @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. @@ -394,9 +394,9 @@ public Mono> createEvaluationTaxonomyWithResponse(String na */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateEvaluationTaxonomyWithResponse(String name, BinaryData body, + public Mono> updateEvaluationTaxonomyWithResponse(String name, BinaryData taxonomy, RequestOptions requestOptions) { - return this.serviceClient.updateEvaluationTaxonomyWithResponseAsync(name, body, requestOptions); + return this.serviceClient.updateEvaluationTaxonomyWithResponseAsync(name, taxonomy, requestOptions); } /** @@ -513,7 +513,7 @@ public Mono deleteEvaluationTaxonomy(String name) { * Create an evaluation taxonomy. * * @param name The name of the evaluation taxonomy. - * @param body The evaluation taxonomy. + * @param taxonomy The evaluation taxonomy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -524,10 +524,10 @@ public Mono deleteEvaluationTaxonomy(String name) { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createEvaluationTaxonomy(String name, EvaluationTaxonomy body) { + public Mono createEvaluationTaxonomy(String name, EvaluationTaxonomy taxonomy) { // Generated convenience method for createEvaluationTaxonomyWithResponse RequestOptions requestOptions = new RequestOptions(); - return createEvaluationTaxonomyWithResponse(name, BinaryData.fromObject(body), requestOptions) + return createEvaluationTaxonomyWithResponse(name, BinaryData.fromObject(taxonomy), requestOptions) .flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(EvaluationTaxonomy.class)); } @@ -536,7 +536,7 @@ public Mono createEvaluationTaxonomy(String name, Evaluation * Update an evaluation taxonomy. * * @param name The name of the evaluation taxonomy. - * @param body The evaluation taxonomy. + * @param taxonomy The evaluation taxonomy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -547,10 +547,10 @@ public Mono createEvaluationTaxonomy(String name, Evaluation */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateEvaluationTaxonomy(String name, EvaluationTaxonomy body) { + public Mono updateEvaluationTaxonomy(String name, EvaluationTaxonomy taxonomy) { // Generated convenience method for updateEvaluationTaxonomyWithResponse RequestOptions requestOptions = new RequestOptions(); - return updateEvaluationTaxonomyWithResponse(name, BinaryData.fromObject(body), requestOptions) + return updateEvaluationTaxonomyWithResponse(name, BinaryData.fromObject(taxonomy), requestOptions) .flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(EvaluationTaxonomy.class)); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluationTaxonomiesClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluationTaxonomiesClient.java index 01f596a5ad70..cdfb59e6bad4 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluationTaxonomiesClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluationTaxonomiesClient.java @@ -272,7 +272,7 @@ public Response deleteEvaluationTaxonomyWithResponse(String name, RequestO * * * @param name The name of the evaluation taxonomy. - * @param body The evaluation taxonomy. + * @param taxonomy The evaluation taxonomy. * @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. @@ -282,9 +282,9 @@ public Response deleteEvaluationTaxonomyWithResponse(String name, RequestO */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response createEvaluationTaxonomyWithResponse(String name, BinaryData body, + public Response createEvaluationTaxonomyWithResponse(String name, BinaryData taxonomy, RequestOptions requestOptions) { - return this.serviceClient.createEvaluationTaxonomyWithResponse(name, body, requestOptions); + return this.serviceClient.createEvaluationTaxonomyWithResponse(name, taxonomy, requestOptions); } /** @@ -378,7 +378,7 @@ public Response createEvaluationTaxonomyWithResponse(String name, Bi * * * @param name The name of the evaluation taxonomy. - * @param body The evaluation taxonomy. + * @param taxonomy The evaluation taxonomy. * @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. @@ -388,9 +388,9 @@ public Response createEvaluationTaxonomyWithResponse(String name, Bi */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateEvaluationTaxonomyWithResponse(String name, BinaryData body, + public Response updateEvaluationTaxonomyWithResponse(String name, BinaryData taxonomy, RequestOptions requestOptions) { - return this.serviceClient.updateEvaluationTaxonomyWithResponse(name, body, requestOptions); + return this.serviceClient.updateEvaluationTaxonomyWithResponse(name, taxonomy, requestOptions); } /** @@ -483,7 +483,7 @@ public void deleteEvaluationTaxonomy(String name) { * Create an evaluation taxonomy. * * @param name The name of the evaluation taxonomy. - * @param body The evaluation taxonomy. + * @param taxonomy The evaluation taxonomy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -494,10 +494,10 @@ public void deleteEvaluationTaxonomy(String name) { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public EvaluationTaxonomy createEvaluationTaxonomy(String name, EvaluationTaxonomy body) { + public EvaluationTaxonomy createEvaluationTaxonomy(String name, EvaluationTaxonomy taxonomy) { // Generated convenience method for createEvaluationTaxonomyWithResponse RequestOptions requestOptions = new RequestOptions(); - return createEvaluationTaxonomyWithResponse(name, BinaryData.fromObject(body), requestOptions).getValue() + return createEvaluationTaxonomyWithResponse(name, BinaryData.fromObject(taxonomy), requestOptions).getValue() .toObject(EvaluationTaxonomy.class); } @@ -505,7 +505,7 @@ public EvaluationTaxonomy createEvaluationTaxonomy(String name, EvaluationTaxono * Update an evaluation taxonomy. * * @param name The name of the evaluation taxonomy. - * @param body The evaluation taxonomy. + * @param taxonomy The evaluation taxonomy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -516,10 +516,10 @@ public EvaluationTaxonomy createEvaluationTaxonomy(String name, EvaluationTaxono */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public EvaluationTaxonomy updateEvaluationTaxonomy(String name, EvaluationTaxonomy body) { + public EvaluationTaxonomy updateEvaluationTaxonomy(String name, EvaluationTaxonomy taxonomy) { // Generated convenience method for updateEvaluationTaxonomyWithResponse RequestOptions requestOptions = new RequestOptions(); - return updateEvaluationTaxonomyWithResponse(name, BinaryData.fromObject(body), requestOptions).getValue() + return updateEvaluationTaxonomyWithResponse(name, BinaryData.fromObject(taxonomy), requestOptions).getValue() .toObject(EvaluationTaxonomy.class); } } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorGenerationJobsAsyncClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorGenerationJobsAsyncClient.java new file mode 100644 index 000000000000..86bbd41a4340 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorGenerationJobsAsyncClient.java @@ -0,0 +1,987 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects; + +import com.azure.ai.agents.models.PageOrder; +import com.azure.ai.projects.implementation.EvaluatorGenerationJobsImpl; +import com.azure.ai.projects.models.EvaluatorCategory; +import com.azure.ai.projects.models.EvaluatorGenerationJob; +import com.azure.ai.projects.models.FoundryFeaturesOptInKeys; +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.exception.ClientAuthenticationException; +import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; +import com.azure.core.http.HttpHeaderName; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.core.util.FluxUtil; +import java.util.stream.Collectors; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * Initializes a new instance of the asynchronous AIProjectClient type. + */ +@ServiceClient(builder = AIProjectClientBuilder.class, isAsync = true) +public final class EvaluatorGenerationJobsAsyncClient { + @Generated + private final EvaluatorGenerationJobsImpl serviceClient; + + /** + * Initializes an instance of EvaluatorGenerationJobsAsyncClient class. + * + * @param serviceClient the service client implementation. + */ + @Generated + EvaluatorGenerationJobsAsyncClient(EvaluatorGenerationJobsImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * Creates an evaluator generation job. + * + * Creates an evaluator generation job. The service generates rubric-based evaluator + * definitions from the provided source materials asynchronously. + *

Header Parameters

+ * + * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
Operation-IdStringNoClient-generated unique ID for idempotent retries. When + * absent, the server creates the job unconditionally.
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions + * from source materials along with {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createWithResponse(BinaryData job, RequestOptions requestOptions) { + return this.serviceClient.createWithResponseAsync(job, requestOptions); + } + + /** + * Get info about an evaluator generation job. + * + * Gets the details of an evaluator generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 info about an evaluator generation job. + * + * Gets the details of an evaluator generation job by its ID along with {@link Response} on successful completion of + * {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponse(String jobId, RequestOptions requestOptions) { + return this.serviceClient.getWithResponseAsync(jobId, requestOptions); + } + + /** + * Returns a list of evaluator generation jobs. + *

Query Parameters

+ * + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
limitIntegerNoA limit on the number of objects to be returned. Limit can range + * between 1 and 100, and the + * default is 20.
orderStringNoSort order by the `created_at` timestamp of the objects. `asc` + * for ascending order and`desc` + * for descending order. Allowed values: "asc", "desc".
afterStringNoA cursor for use in pagination. `after` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list.
beforeStringNoA cursor for use in pagination. `before` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list.
categoryStringNoFilter evaluator generation jobs by category. Allowed values: + * "quality", "safety", "agents".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @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 the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux list(RequestOptions requestOptions) { + return this.serviceClient.listAsync(requestOptions); + } + + /** + * Cancels an evaluator generation job. + * + * Cancels an evaluator generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions + * from source materials along with {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> cancelWithResponse(String jobId, RequestOptions requestOptions) { + return this.serviceClient.cancelWithResponseAsync(jobId, requestOptions); + } + + /** + * Deletes an evaluator generation job by its ID. Deletes the job record only; + * the generated evaluator (if any) is preserved. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 the {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteWithResponse(String jobId, RequestOptions requestOptions) { + return this.serviceClient.deleteWithResponseAsync(jobId, requestOptions); + } + + /** + * Creates an evaluator generation job. + * + * Creates an evaluator generation job. The service generates rubric-based evaluator + * definitions from the provided source materials asynchronously. + * + * @param job The job to create. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @param operationId Client-generated unique ID for idempotent retries. When absent, the server creates the job + * unconditionally. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions + * from source materials on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono create(EvaluatorGenerationJob job, FoundryFeaturesOptInKeys foundryFeatures, + String operationId) { + // Generated convenience method for createWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + if (operationId != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Operation-Id"), operationId); + } + return createWithResponse(BinaryData.fromObject(job), requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(EvaluatorGenerationJob.class)); + } + + /** + * Creates an evaluator generation job. + * + * Creates an evaluator generation job. The service generates rubric-based evaluator + * definitions from the provided source materials asynchronously. + * + * @param job The job to create. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions + * from source materials on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono create(EvaluatorGenerationJob job) { + // Generated convenience method for createWithResponse + RequestOptions requestOptions = new RequestOptions(); + return createWithResponse(BinaryData.fromObject(job), requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(EvaluatorGenerationJob.class)); + } + + /** + * Get info about an evaluator generation job. + * + * Gets the details of an evaluator generation job by its ID. + * + * @param jobId The ID of the job. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return info about an evaluator generation job. + * + * Gets the details of an evaluator generation job by its ID on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono get(String jobId, FoundryFeaturesOptInKeys foundryFeatures) { + // Generated convenience method for getWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + return getWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(EvaluatorGenerationJob.class)); + } + + /** + * Get info about an evaluator generation job. + * + * Gets the details of an evaluator generation job by its ID. + * + * @param jobId The ID of the job. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return info about an evaluator generation job. + * + * Gets the details of an evaluator generation job by its ID on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono get(String jobId) { + // Generated convenience method for getWithResponse + RequestOptions requestOptions = new RequestOptions(); + return getWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(EvaluatorGenerationJob.class)); + } + + /** + * Returns a list of evaluator generation jobs. + * + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @param category Filter evaluator generation jobs by category. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux list(FoundryFeaturesOptInKeys foundryFeatures, Integer limit, + PageOrder order, String after, String before, EvaluatorCategory category) { + // Generated convenience method for list + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (after != null) { + requestOptions.addQueryParam("after", after, false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + if (category != null) { + requestOptions.addQueryParam("category", category.toString(), false); + } + PagedFlux pagedFluxResponse = list(requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + return flux + .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(EvaluatorGenerationJob.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * Returns a list of evaluator generation jobs. + * + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux list() { + // Generated convenience method for list + RequestOptions requestOptions = new RequestOptions(); + PagedFlux pagedFluxResponse = list(requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + return flux + .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(EvaluatorGenerationJob.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * Cancels an evaluator generation job. + * + * Cancels an evaluator generation job by its ID. + * + * @param jobId The ID of the job to cancel. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions + * from source materials on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono cancel(String jobId, FoundryFeaturesOptInKeys foundryFeatures) { + // Generated convenience method for cancelWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + return cancelWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(EvaluatorGenerationJob.class)); + } + + /** + * Cancels an evaluator generation job. + * + * Cancels an evaluator generation job by its ID. + * + * @param jobId The ID of the job to cancel. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions + * from source materials on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono cancel(String jobId) { + // Generated convenience method for cancelWithResponse + RequestOptions requestOptions = new RequestOptions(); + return cancelWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(EvaluatorGenerationJob.class)); + } + + /** + * Deletes an evaluator generation job by its ID. Deletes the job record only; + * the generated evaluator (if any) is preserved. + * + * @param jobId The ID of the job to delete. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono delete(String jobId, FoundryFeaturesOptInKeys foundryFeatures) { + // Generated convenience method for deleteWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + return deleteWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono); + } + + /** + * Deletes an evaluator generation job by its ID. Deletes the job record only; + * the generated evaluator (if any) is preserved. + * + * @param jobId The ID of the job to delete. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono delete(String jobId) { + // Generated convenience method for deleteWithResponse + RequestOptions requestOptions = new RequestOptions(); + return deleteWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorGenerationJobsClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorGenerationJobsClient.java new file mode 100644 index 000000000000..603ae3c57ddd --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorGenerationJobsClient.java @@ -0,0 +1,950 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects; + +import com.azure.ai.agents.models.PageOrder; +import com.azure.ai.projects.implementation.EvaluatorGenerationJobsImpl; +import com.azure.ai.projects.models.EvaluatorCategory; +import com.azure.ai.projects.models.EvaluatorGenerationJob; +import com.azure.ai.projects.models.FoundryFeaturesOptInKeys; +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.exception.ClientAuthenticationException; +import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; +import com.azure.core.http.HttpHeaderName; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; + +/** + * Initializes a new instance of the synchronous AIProjectClient type. + */ +@ServiceClient(builder = AIProjectClientBuilder.class) +public final class EvaluatorGenerationJobsClient { + @Generated + private final EvaluatorGenerationJobsImpl serviceClient; + + /** + * Initializes an instance of EvaluatorGenerationJobsClient class. + * + * @param serviceClient the service client implementation. + */ + @Generated + EvaluatorGenerationJobsClient(EvaluatorGenerationJobsImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * Creates an evaluator generation job. + * + * Creates an evaluator generation job. The service generates rubric-based evaluator + * definitions from the provided source materials asynchronously. + *

Header Parameters

+ * + * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
Operation-IdStringNoClient-generated unique ID for idempotent retries. When + * absent, the server creates the job unconditionally.
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions + * from source materials along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createWithResponse(BinaryData job, RequestOptions requestOptions) { + return this.serviceClient.createWithResponse(job, requestOptions); + } + + /** + * Get info about an evaluator generation job. + * + * Gets the details of an evaluator generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 info about an evaluator generation job. + * + * Gets the details of an evaluator generation job by its ID along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String jobId, RequestOptions requestOptions) { + return this.serviceClient.getWithResponse(jobId, requestOptions); + } + + /** + * Returns a list of evaluator generation jobs. + *

Query Parameters

+ * + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
limitIntegerNoA limit on the number of objects to be returned. Limit can range + * between 1 and 100, and the + * default is 20.
orderStringNoSort order by the `created_at` timestamp of the objects. `asc` + * for ascending order and`desc` + * for descending order. Allowed values: "asc", "desc".
afterStringNoA cursor for use in pagination. `after` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list.
beforeStringNoA cursor for use in pagination. `before` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list.
categoryStringNoFilter evaluator generation jobs by category. Allowed values: + * "quality", "safety", "agents".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @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 the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(RequestOptions requestOptions) { + return this.serviceClient.list(requestOptions); + } + + /** + * Cancels an evaluator generation job. + * + * Cancels an evaluator generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions + * from source materials along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response cancelWithResponse(String jobId, RequestOptions requestOptions) { + return this.serviceClient.cancelWithResponse(jobId, requestOptions); + } + + /** + * Deletes an evaluator generation job by its ID. Deletes the job record only; + * the generated evaluator (if any) is preserved. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 the {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response deleteWithResponse(String jobId, RequestOptions requestOptions) { + return this.serviceClient.deleteWithResponse(jobId, requestOptions); + } + + /** + * Creates an evaluator generation job. + * + * Creates an evaluator generation job. The service generates rubric-based evaluator + * definitions from the provided source materials asynchronously. + * + * @param job The job to create. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @param operationId Client-generated unique ID for idempotent retries. When absent, the server creates the job + * unconditionally. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions + * from source materials. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public EvaluatorGenerationJob create(EvaluatorGenerationJob job, FoundryFeaturesOptInKeys foundryFeatures, + String operationId) { + // Generated convenience method for createWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + if (operationId != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Operation-Id"), operationId); + } + return createWithResponse(BinaryData.fromObject(job), requestOptions).getValue() + .toObject(EvaluatorGenerationJob.class); + } + + /** + * Creates an evaluator generation job. + * + * Creates an evaluator generation job. The service generates rubric-based evaluator + * definitions from the provided source materials asynchronously. + * + * @param job The job to create. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions + * from source materials. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public EvaluatorGenerationJob create(EvaluatorGenerationJob job) { + // Generated convenience method for createWithResponse + RequestOptions requestOptions = new RequestOptions(); + return createWithResponse(BinaryData.fromObject(job), requestOptions).getValue() + .toObject(EvaluatorGenerationJob.class); + } + + /** + * Get info about an evaluator generation job. + * + * Gets the details of an evaluator generation job by its ID. + * + * @param jobId The ID of the job. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return info about an evaluator generation job. + * + * Gets the details of an evaluator generation job by its ID. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public EvaluatorGenerationJob get(String jobId, FoundryFeaturesOptInKeys foundryFeatures) { + // Generated convenience method for getWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + return getWithResponse(jobId, requestOptions).getValue().toObject(EvaluatorGenerationJob.class); + } + + /** + * Get info about an evaluator generation job. + * + * Gets the details of an evaluator generation job by its ID. + * + * @param jobId The ID of the job. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return info about an evaluator generation job. + * + * Gets the details of an evaluator generation job by its ID. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public EvaluatorGenerationJob get(String jobId) { + // Generated convenience method for getWithResponse + RequestOptions requestOptions = new RequestOptions(); + return getWithResponse(jobId, requestOptions).getValue().toObject(EvaluatorGenerationJob.class); + } + + /** + * Returns a list of evaluator generation jobs. + * + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @param category Filter evaluator generation jobs by category. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(FoundryFeaturesOptInKeys foundryFeatures, Integer limit, + PageOrder order, String after, String before, EvaluatorCategory category) { + // Generated convenience method for list + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (after != null) { + requestOptions.addQueryParam("after", after, false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + if (category != null) { + requestOptions.addQueryParam("category", category.toString(), false); + } + return serviceClient.list(requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(EvaluatorGenerationJob.class)); + } + + /** + * Returns a list of evaluator generation jobs. + * + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + // Generated convenience method for list + RequestOptions requestOptions = new RequestOptions(); + return serviceClient.list(requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(EvaluatorGenerationJob.class)); + } + + /** + * Cancels an evaluator generation job. + * + * Cancels an evaluator generation job by its ID. + * + * @param jobId The ID of the job to cancel. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions + * from source materials. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public EvaluatorGenerationJob cancel(String jobId, FoundryFeaturesOptInKeys foundryFeatures) { + // Generated convenience method for cancelWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + return cancelWithResponse(jobId, requestOptions).getValue().toObject(EvaluatorGenerationJob.class); + } + + /** + * Cancels an evaluator generation job. + * + * Cancels an evaluator generation job by its ID. + * + * @param jobId The ID of the job to cancel. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions + * from source materials. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public EvaluatorGenerationJob cancel(String jobId) { + // Generated convenience method for cancelWithResponse + RequestOptions requestOptions = new RequestOptions(); + return cancelWithResponse(jobId, requestOptions).getValue().toObject(EvaluatorGenerationJob.class); + } + + /** + * Deletes an evaluator generation job by its ID. Deletes the job record only; + * the generated evaluator (if any) is preserved. + * + * @param jobId The ID of the job to delete. + * @param foundryFeatures A feature flag opt-in required when using preview operations or modifying persisted + * preview resources. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String jobId, FoundryFeaturesOptInKeys foundryFeatures) { + // Generated convenience method for deleteWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (foundryFeatures != null) { + requestOptions.setHeader(HttpHeaderName.fromString("Foundry-Features"), foundryFeatures.toString()); + } + deleteWithResponse(jobId, requestOptions).getValue(); + } + + /** + * Deletes an evaluator generation job by its ID. Deletes the job record only; + * the generated evaluator (if any) is preserved. + * + * @param jobId The ID of the job to delete. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String jobId) { + // Generated convenience method for deleteWithResponse + RequestOptions requestOptions = new RequestOptions(); + deleteWithResponse(jobId, requestOptions).getValue(); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorsAsyncClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorsAsyncClient.java index e10d08ca3193..f8f29c22f822 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorsAsyncClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorsAsyncClient.java @@ -70,7 +70,7 @@ public final class EvaluatorsAsyncClient { * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -88,6 +88,15 @@ public final class EvaluatorsAsyncClient { * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -142,7 +151,7 @@ public PagedFlux listEvaluatorVersions(String name, RequestOptions r * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -160,6 +169,15 @@ public PagedFlux listEvaluatorVersions(String name, RequestOptions r * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -204,7 +222,7 @@ public PagedFlux listLatestEvaluatorVersions(RequestOptions requestO * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -222,6 +240,15 @@ public PagedFlux listLatestEvaluatorVersions(RequestOptions requestO * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -289,7 +316,7 @@ public Mono> deleteEvaluatorVersionWithResponse(String name, Stri * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -307,6 +334,15 @@ public Mono> deleteEvaluatorVersionWithResponse(String name, Stri * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -335,7 +371,7 @@ public Mono> deleteEvaluatorVersionWithResponse(String name, Stri * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -353,6 +389,15 @@ public Mono> deleteEvaluatorVersionWithResponse(String name, Stri * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -399,7 +444,7 @@ public Mono> createEvaluatorVersionWithResponse(String name * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -417,6 +462,15 @@ public Mono> createEvaluatorVersionWithResponse(String name * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -445,7 +499,7 @@ public Mono> createEvaluatorVersionWithResponse(String name * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -463,6 +517,15 @@ public Mono> createEvaluatorVersionWithResponse(String name * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorsClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorsClient.java index d2f2dab0ec23..18ba805fe465 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorsClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorsClient.java @@ -64,7 +64,7 @@ public final class EvaluatorsClient { * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -82,6 +82,15 @@ public final class EvaluatorsClient { * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -136,7 +145,7 @@ public PagedIterable listEvaluatorVersions(String name, RequestOptio * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -154,6 +163,15 @@ public PagedIterable listEvaluatorVersions(String name, RequestOptio * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -198,7 +216,7 @@ public PagedIterable listLatestEvaluatorVersions(RequestOptions requ * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -216,6 +234,15 @@ public PagedIterable listLatestEvaluatorVersions(RequestOptions requ * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -282,7 +309,7 @@ public Response deleteEvaluatorVersionWithResponse(String name, String ver * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -300,6 +327,15 @@ public Response deleteEvaluatorVersionWithResponse(String name, String ver * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -328,7 +364,7 @@ public Response deleteEvaluatorVersionWithResponse(String name, String ver * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -346,6 +382,15 @@ public Response deleteEvaluatorVersionWithResponse(String name, String ver * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -392,7 +437,7 @@ public Response createEvaluatorVersionWithResponse(String name, Bina * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -410,6 +455,15 @@ public Response createEvaluatorVersionWithResponse(String name, Bina * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -438,7 +492,7 @@ public Response createEvaluatorVersionWithResponse(String name, Bina * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -456,6 +510,15 @@ public Response createEvaluatorVersionWithResponse(String name, Bina * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/InsightsAsyncClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/InsightsAsyncClient.java index 3657d6cc715a..08ab95b945f8 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/InsightsAsyncClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/InsightsAsyncClient.java @@ -55,7 +55,7 @@ public final class InsightsAsyncClient { * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * repeatability-request-idStringNoRepeatability request ID header * repeatability-first-sentStringNoRepeatability first sent header as * HTTP-date @@ -137,7 +137,7 @@ public Mono> generateInsightWithResponse(BinaryData insight * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

@@ -198,7 +198,7 @@ public Mono> getInsightWithResponse(String id, RequestOptio * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/InsightsClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/InsightsClient.java index 46cf7b2bb89e..49bdfb62086b 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/InsightsClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/InsightsClient.java @@ -49,7 +49,7 @@ public final class InsightsClient { * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * repeatability-request-idStringNoRepeatability request ID header * repeatability-first-sentStringNoRepeatability first sent header as * HTTP-date @@ -130,7 +130,7 @@ public Response generateInsightWithResponse(BinaryData insight, Requ * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

@@ -191,7 +191,7 @@ public Response getInsightWithResponse(String id, RequestOptions req * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/SkillsAsyncClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/SkillsAsyncClient.java index 8e35d5c2cb86..7ae62394027d 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/SkillsAsyncClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/SkillsAsyncClient.java @@ -154,7 +154,7 @@ public Mono> createSkillFromPackageWithResponse(BinaryData * } * * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @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. @@ -164,8 +164,8 @@ public Mono> createSkillFromPackageWithResponse(BinaryData */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getSkillWithResponse(String skillName, RequestOptions requestOptions) { - return this.serviceClient.getSkillWithResponseAsync(skillName, requestOptions); + public Mono> getSkillWithResponse(String name, RequestOptions requestOptions) { + return this.serviceClient.getSkillWithResponseAsync(name, requestOptions); } /** @@ -178,7 +178,7 @@ public Mono> getSkillWithResponse(String skillName, Request * } * * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @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. @@ -188,8 +188,8 @@ public Mono> getSkillWithResponse(String skillName, Request */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> downloadSkillWithResponse(String skillName, RequestOptions requestOptions) { - return this.serviceClient.downloadSkillWithResponseAsync(skillName, requestOptions); + public Mono> downloadSkillWithResponse(String name, RequestOptions requestOptions) { + return this.serviceClient.downloadSkillWithResponseAsync(name, requestOptions); } /** @@ -275,7 +275,7 @@ public PagedFlux listSkills(RequestOptions requestOptions) { * } * * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @param updateSkillRequest The updateSkillRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -286,9 +286,9 @@ public PagedFlux listSkills(RequestOptions requestOptions) { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateSkillWithResponse(String skillName, BinaryData updateSkillRequest, + public Mono> updateSkillWithResponse(String name, BinaryData updateSkillRequest, RequestOptions requestOptions) { - return this.serviceClient.updateSkillWithResponseAsync(skillName, updateSkillRequest, requestOptions); + return this.serviceClient.updateSkillWithResponseAsync(name, updateSkillRequest, requestOptions); } /** @@ -304,7 +304,7 @@ public Mono> updateSkillWithResponse(String skillName, Bina * } * * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @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. @@ -314,8 +314,8 @@ public Mono> updateSkillWithResponse(String skillName, Bina */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteSkillWithResponse(String skillName, RequestOptions requestOptions) { - return this.serviceClient.deleteSkillWithResponseAsync(skillName, requestOptions); + public Mono> deleteSkillWithResponse(String name, RequestOptions requestOptions) { + return this.serviceClient.deleteSkillWithResponseAsync(name, requestOptions); } /** @@ -399,7 +399,7 @@ public Mono createSkillFromPackage(BinaryData body) { /** * Retrieves a skill. * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -410,17 +410,17 @@ public Mono createSkillFromPackage(BinaryData body) { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getSkill(String skillName) { + public Mono getSkill(String name) { // Generated convenience method for getSkillWithResponse RequestOptions requestOptions = new RequestOptions(); - return getSkillWithResponse(skillName, requestOptions).flatMap(FluxUtil::toMono) + return getSkillWithResponse(name, requestOptions).flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(SkillDetails.class)); } /** * Downloads a skill package. * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -431,10 +431,10 @@ public Mono getSkill(String skillName) { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono downloadSkill(String skillName) { + public Mono downloadSkill(String name) { // Generated convenience method for downloadSkillWithResponse RequestOptions requestOptions = new RequestOptions(); - return downloadSkillWithResponse(skillName, requestOptions).flatMap(FluxUtil::toMono); + return downloadSkillWithResponse(name, requestOptions).flatMap(FluxUtil::toMono); } /** @@ -523,7 +523,7 @@ public PagedFlux listSkills() { /** * Updates an existing skill. * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @param description A human-readable description of the skill. * @param instructions Instructions that define the behavior of the skill. * @param metadata Set of 16 key-value pairs that can be attached to an object. This can be @@ -542,21 +542,21 @@ public PagedFlux listSkills() { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateSkill(String skillName, String description, String instructions, + public Mono updateSkill(String name, String description, String instructions, Map metadata) { // Generated convenience method for updateSkillWithResponse RequestOptions requestOptions = new RequestOptions(); UpdateSkillRequest updateSkillRequestObj = new UpdateSkillRequest().setDescription(description).setInstructions(instructions).setMetadata(metadata); BinaryData updateSkillRequest = BinaryData.fromObject(updateSkillRequestObj); - return updateSkillWithResponse(skillName, updateSkillRequest, requestOptions).flatMap(FluxUtil::toMono) + return updateSkillWithResponse(name, updateSkillRequest, requestOptions).flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(SkillDetails.class)); } /** * Updates an existing skill. * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -567,12 +567,12 @@ public Mono updateSkill(String skillName, String description, Stri */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateSkill(String skillName) { + public Mono updateSkill(String name) { // Generated convenience method for updateSkillWithResponse RequestOptions requestOptions = new RequestOptions(); UpdateSkillRequest updateSkillRequestObj = new UpdateSkillRequest(); BinaryData updateSkillRequest = BinaryData.fromObject(updateSkillRequestObj); - return updateSkillWithResponse(skillName, updateSkillRequest, requestOptions).flatMap(FluxUtil::toMono) + return updateSkillWithResponse(name, updateSkillRequest, requestOptions).flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(SkillDetails.class)); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/SkillsClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/SkillsClient.java index b010c7768989..aa0a8dc09e96 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/SkillsClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/SkillsClient.java @@ -146,7 +146,7 @@ public Response createSkillFromPackageWithResponse(BinaryData body, * } * * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @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. @@ -156,8 +156,8 @@ public Response createSkillFromPackageWithResponse(BinaryData body, */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response getSkillWithResponse(String skillName, RequestOptions requestOptions) { - return this.serviceClient.getSkillWithResponse(skillName, requestOptions); + public Response getSkillWithResponse(String name, RequestOptions requestOptions) { + return this.serviceClient.getSkillWithResponse(name, requestOptions); } /** @@ -170,7 +170,7 @@ public Response getSkillWithResponse(String skillName, RequestOption * } * * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @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. @@ -180,8 +180,8 @@ public Response getSkillWithResponse(String skillName, RequestOption */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response downloadSkillWithResponse(String skillName, RequestOptions requestOptions) { - return this.serviceClient.downloadSkillWithResponse(skillName, requestOptions); + public Response downloadSkillWithResponse(String name, RequestOptions requestOptions) { + return this.serviceClient.downloadSkillWithResponse(name, requestOptions); } /** @@ -267,7 +267,7 @@ public PagedIterable listSkills(RequestOptions requestOptions) { * } * * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @param updateSkillRequest The updateSkillRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -278,9 +278,9 @@ public PagedIterable listSkills(RequestOptions requestOptions) { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateSkillWithResponse(String skillName, BinaryData updateSkillRequest, + public Response updateSkillWithResponse(String name, BinaryData updateSkillRequest, RequestOptions requestOptions) { - return this.serviceClient.updateSkillWithResponse(skillName, updateSkillRequest, requestOptions); + return this.serviceClient.updateSkillWithResponse(name, updateSkillRequest, requestOptions); } /** @@ -296,7 +296,7 @@ public Response updateSkillWithResponse(String skillName, BinaryData * } * * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @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. @@ -306,8 +306,8 @@ public Response updateSkillWithResponse(String skillName, BinaryData */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteSkillWithResponse(String skillName, RequestOptions requestOptions) { - return this.serviceClient.deleteSkillWithResponse(skillName, requestOptions); + public Response deleteSkillWithResponse(String name, RequestOptions requestOptions) { + return this.serviceClient.deleteSkillWithResponse(name, requestOptions); } /** @@ -388,7 +388,7 @@ public SkillDetails createSkillFromPackage(BinaryData body) { /** * Retrieves a skill. * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -399,16 +399,16 @@ public SkillDetails createSkillFromPackage(BinaryData body) { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public SkillDetails getSkill(String skillName) { + public SkillDetails getSkill(String name) { // Generated convenience method for getSkillWithResponse RequestOptions requestOptions = new RequestOptions(); - return getSkillWithResponse(skillName, requestOptions).getValue().toObject(SkillDetails.class); + return getSkillWithResponse(name, requestOptions).getValue().toObject(SkillDetails.class); } /** * Downloads a skill package. * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -419,10 +419,10 @@ public SkillDetails getSkill(String skillName) { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public BinaryData downloadSkill(String skillName) { + public BinaryData downloadSkill(String name) { // Generated convenience method for downloadSkillWithResponse RequestOptions requestOptions = new RequestOptions(); - return downloadSkillWithResponse(skillName, requestOptions).getValue(); + return downloadSkillWithResponse(name, requestOptions).getValue(); } /** @@ -489,7 +489,7 @@ public PagedIterable listSkills() { /** * Updates an existing skill. * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @param description A human-readable description of the skill. * @param instructions Instructions that define the behavior of the skill. * @param metadata Set of 16 key-value pairs that can be attached to an object. This can be @@ -508,21 +508,21 @@ public PagedIterable listSkills() { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public SkillDetails updateSkill(String skillName, String description, String instructions, + public SkillDetails updateSkill(String name, String description, String instructions, Map metadata) { // Generated convenience method for updateSkillWithResponse RequestOptions requestOptions = new RequestOptions(); UpdateSkillRequest updateSkillRequestObj = new UpdateSkillRequest().setDescription(description).setInstructions(instructions).setMetadata(metadata); BinaryData updateSkillRequest = BinaryData.fromObject(updateSkillRequestObj); - return updateSkillWithResponse(skillName, updateSkillRequest, requestOptions).getValue() + return updateSkillWithResponse(name, updateSkillRequest, requestOptions).getValue() .toObject(SkillDetails.class); } /** * Updates an existing skill. * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -533,12 +533,12 @@ public SkillDetails updateSkill(String skillName, String description, String ins */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - public SkillDetails updateSkill(String skillName) { + public SkillDetails updateSkill(String name) { // Generated convenience method for updateSkillWithResponse RequestOptions requestOptions = new RequestOptions(); UpdateSkillRequest updateSkillRequestObj = new UpdateSkillRequest(); BinaryData updateSkillRequest = BinaryData.fromObject(updateSkillRequestObj); - return updateSkillWithResponse(skillName, updateSkillRequest, requestOptions).getValue() + return updateSkillWithResponse(name, updateSkillRequest, requestOptions).getValue() .toObject(SkillDetails.class); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/AIProjectClientImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/AIProjectClientImpl.java index 5224d2637538..9a07002f9d54 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/AIProjectClientImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/AIProjectClientImpl.java @@ -192,6 +192,20 @@ public EvaluatorsImpl getEvaluators() { return this.evaluators; } + /** + * The EvaluatorGenerationJobsImpl object to access its operations. + */ + private final EvaluatorGenerationJobsImpl evaluatorGenerationJobs; + + /** + * Gets the EvaluatorGenerationJobsImpl object to access its operations. + * + * @return the EvaluatorGenerationJobsImpl object. + */ + public EvaluatorGenerationJobsImpl getEvaluatorGenerationJobs() { + return this.evaluatorGenerationJobs; + } + /** * The InsightsImpl object to access its operations. */ @@ -234,6 +248,20 @@ public SkillsImpl getSkills() { return this.skills; } + /** + * The DataGenerationJobsImpl object to access its operations. + */ + private final DataGenerationJobsImpl dataGenerationJobs; + + /** + * Gets the DataGenerationJobsImpl object to access its operations. + * + * @return the DataGenerationJobsImpl object. + */ + public DataGenerationJobsImpl getDataGenerationJobs() { + return this.dataGenerationJobs; + } + /** * Initializes an instance of AIProjectClient client. * @@ -290,8 +318,10 @@ public AIProjectClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializ this.evaluationRules = new EvaluationRulesImpl(this); this.evaluationTaxonomies = new EvaluationTaxonomiesImpl(this); this.evaluators = new EvaluatorsImpl(this); + this.evaluatorGenerationJobs = new EvaluatorGenerationJobsImpl(this); this.insights = new InsightsImpl(this); this.schedules = new SchedulesImpl(this); this.skills = new SkillsImpl(this); + this.dataGenerationJobs = new DataGenerationJobsImpl(this); } } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/DataGenerationJobsImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/DataGenerationJobsImpl.java new file mode 100644 index 000000000000..e88eae403714 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/DataGenerationJobsImpl.java @@ -0,0 +1,1361 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.implementation; + +import com.azure.ai.projects.AIProjectsServiceVersion; +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.exception.ClientAuthenticationException; +import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in DataGenerationJobs. + */ +public final class DataGenerationJobsImpl { + /** + * The proxy service used to perform REST calls. + */ + private final DataGenerationJobsService service; + + /** + * The service client containing this operation class. + */ + private final AIProjectClientImpl client; + + /** + * Initializes an instance of DataGenerationJobsImpl. + * + * @param client the instance of the service client containing this operation class. + */ + DataGenerationJobsImpl(AIProjectClientImpl client) { + this.service = RestProxy.create(DataGenerationJobsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * Gets Service version. + * + * @return the serviceVersion value. + */ + public AIProjectsServiceVersion getServiceVersion() { + return client.getServiceVersion(); + } + + /** + * The interface defining all the services for AIProjectClientDataGenerationJobs to be used by the proxy service to + * perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "AIProjectClientDataGenerationJobs") + public interface DataGenerationJobsService { + @Get("/data_generation_jobs/{jobId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> getGenerationJob(@HostParam("endpoint") String endpoint, + @PathParam("jobId") String jobId, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); + + @Get("/data_generation_jobs/{jobId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response getGenerationJobSync(@HostParam("endpoint") String endpoint, + @PathParam("jobId") String jobId, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); + + @Get("/data_generation_jobs") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> listGenerationJobs(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, + RequestOptions requestOptions, Context context); + + @Get("/data_generation_jobs") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response listGenerationJobsSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, + RequestOptions requestOptions, Context context); + + @Post("/data_generation_jobs") + @ExpectedResponses({ 201 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> createGenerationJob(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData job, + RequestOptions requestOptions, Context context); + + @Post("/data_generation_jobs") + @ExpectedResponses({ 201 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response createGenerationJobSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData job, + RequestOptions requestOptions, Context context); + + @Post("/data_generation_jobs/{jobId}:cancel") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> cancelGenerationJob(@HostParam("endpoint") String endpoint, + @PathParam("jobId") String jobId, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); + + @Post("/data_generation_jobs/{jobId}:cancel") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response cancelGenerationJobSync(@HostParam("endpoint") String endpoint, + @PathParam("jobId") String jobId, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); + + @Delete("/data_generation_jobs/{jobId}") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> deleteGenerationJob(@HostParam("endpoint") String endpoint, + @PathParam("jobId") String jobId, @QueryParam("api-version") String apiVersion, + RequestOptions requestOptions, Context context); + + @Delete("/data_generation_jobs/{jobId}") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response deleteGenerationJobSync(@HostParam("endpoint") String endpoint, @PathParam("jobId") String jobId, + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); + } + + /** + * Get info about a data generation job. + * + * Gets the details of a data generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 info about a data generation job. + * + * Gets the details of a data generation job by its ID along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getGenerationJobWithResponseAsync(String jobId, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.getGenerationJob(this.client.getEndpoint(), jobId, + this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); + } + + /** + * Get info about a data generation job. + * + * Gets the details of a data generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 info about a data generation job. + * + * Gets the details of a data generation job by its ID along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getGenerationJobWithResponse(String jobId, RequestOptions requestOptions) { + final String accept = "application/json"; + return service.getGenerationJobSync(this.client.getEndpoint(), jobId, + this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); + } + + /** + * Returns a list of data generation jobs + * + * Returns a list of data generation jobs. + *

Query Parameters

+ * + * + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
limitIntegerNoA limit on the number of objects to be returned. Limit can range + * between 1 and 100, and the + * default is 20.
orderStringNoSort order by the `created_at` timestamp of the objects. `asc` + * for ascending order and`desc` + * for descending order. Allowed values: "asc", "desc".
afterStringNoA cursor for use in pagination. `after` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list.
beforeStringNoA cursor for use in pagination. `before` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list.
scenarioStringNoFilter data generation jobs by their scenario. Allowed values: + * "supervised_finetuning", "reinforcement_finetuning", "evaluation".
typeList<String>NoFilter data generation jobs by their type. In the form + * of "," separated string.
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @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 the response data for a requested list of items along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listGenerationJobsSinglePageAsync(RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listGenerationJobs(this.client.getEndpoint(), + this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "data"), null, null)); + } + + /** + * Returns a list of data generation jobs + * + * Returns a list of data generation jobs. + *

Query Parameters

+ * + * + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
limitIntegerNoA limit on the number of objects to be returned. Limit can range + * between 1 and 100, and the + * default is 20.
orderStringNoSort order by the `created_at` timestamp of the objects. `asc` + * for ascending order and`desc` + * for descending order. Allowed values: "asc", "desc".
afterStringNoA cursor for use in pagination. `after` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list.
beforeStringNoA cursor for use in pagination. `before` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list.
scenarioStringNoFilter data generation jobs by their scenario. Allowed values: + * "supervised_finetuning", "reinforcement_finetuning", "evaluation".
typeList<String>NoFilter data generation jobs by their type. In the form + * of "," separated string.
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @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 the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listGenerationJobsAsync(RequestOptions requestOptions) { + return new PagedFlux<>(() -> listGenerationJobsSinglePageAsync(requestOptions)); + } + + /** + * Returns a list of data generation jobs + * + * Returns a list of data generation jobs. + *

Query Parameters

+ * + * + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
limitIntegerNoA limit on the number of objects to be returned. Limit can range + * between 1 and 100, and the + * default is 20.
orderStringNoSort order by the `created_at` timestamp of the objects. `asc` + * for ascending order and`desc` + * for descending order. Allowed values: "asc", "desc".
afterStringNoA cursor for use in pagination. `after` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list.
beforeStringNoA cursor for use in pagination. `before` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list.
scenarioStringNoFilter data generation jobs by their scenario. Allowed values: + * "supervised_finetuning", "reinforcement_finetuning", "evaluation".
typeList<String>NoFilter data generation jobs by their type. In the form + * of "," separated string.
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @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 the response data for a requested list of items along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listGenerationJobsSinglePage(RequestOptions requestOptions) { + final String accept = "application/json"; + Response res = service.listGenerationJobsSync(this.client.getEndpoint(), + this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "data"), null, null); + } + + /** + * Returns a list of data generation jobs + * + * Returns a list of data generation jobs. + *

Query Parameters

+ * + * + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
limitIntegerNoA limit on the number of objects to be returned. Limit can range + * between 1 and 100, and the + * default is 20.
orderStringNoSort order by the `created_at` timestamp of the objects. `asc` + * for ascending order and`desc` + * for descending order. Allowed values: "asc", "desc".
afterStringNoA cursor for use in pagination. `after` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list.
beforeStringNoA cursor for use in pagination. `before` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list.
scenarioStringNoFilter data generation jobs by their scenario. Allowed values: + * "supervised_finetuning", "reinforcement_finetuning", "evaluation".
typeList<String>NoFilter data generation jobs by their type. In the form + * of "," separated string.
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @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 the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listGenerationJobs(RequestOptions requestOptions) { + return new PagedIterable<>(() -> listGenerationJobsSinglePage(requestOptions)); + } + + /** + * Creates a data generation job. + *

Header Parameters

+ * + * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
Operation-IdStringNoClient-generated unique ID for idempotent retries. When + * absent, the server creates the job unconditionally.
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 data Generation Job resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createGenerationJobWithResponseAsync(BinaryData job, + RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.createGenerationJob(this.client.getEndpoint(), + this.client.getServiceVersion().getVersion(), contentType, accept, job, requestOptions, context)); + } + + /** + * Creates a data generation job. + *

Header Parameters

+ * + * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
Operation-IdStringNoClient-generated unique ID for idempotent retries. When + * absent, the server creates the job unconditionally.
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 data Generation Job resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createGenerationJobWithResponse(BinaryData job, RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createGenerationJobSync(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), + contentType, accept, job, requestOptions, Context.NONE); + } + + /** + * Cancels a data generation job. + * + * Cancels a data generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 data Generation Job resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> cancelGenerationJobWithResponseAsync(String jobId, + RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.cancelGenerationJob(this.client.getEndpoint(), jobId, + this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); + } + + /** + * Cancels a data generation job. + * + * Cancels a data generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset/file) (Required)
+     *                 description: String (Optional)
+     *             }
+     *         ]
+     *         options (Required): {
+     *             type: String(simple_qna/traces/tool_use) (Required)
+     *             max_samples: int (Required)
+     *             train_split: Double (Optional)
+     *             model_options (Optional): {
+     *                 model: String (Required)
+     *             }
+     *         }
+     *         scenario: String(supervised_finetuning/reinforcement_finetuning/evaluation) (Required)
+     *     }
+     *     result (Optional): {
+     *         outputs (Optional): [
+     *              (Optional){
+     *                 type: String(file/dataset) (Required)
+     *             }
+     *         ]
+     *         generated_samples: int (Required)
+     *         token_usage (Optional): {
+     *             prompt_tokens: Long (Optional)
+     *             completion_tokens: Long (Optional)
+     *             total_tokens: Long (Optional)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 data Generation Job resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response cancelGenerationJobWithResponse(String jobId, RequestOptions requestOptions) { + final String accept = "application/json"; + return service.cancelGenerationJobSync(this.client.getEndpoint(), jobId, + this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); + } + + /** + * Deletes a data generation job. + * + * Deletes a data generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteGenerationJobWithResponseAsync(String jobId, RequestOptions requestOptions) { + return FluxUtil.withContext(context -> service.deleteGenerationJob(this.client.getEndpoint(), jobId, + this.client.getServiceVersion().getVersion(), requestOptions, context)); + } + + /** + * Deletes a data generation job. + * + * Deletes a data generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response deleteGenerationJobWithResponse(String jobId, RequestOptions requestOptions) { + return service.deleteGenerationJobSync(this.client.getEndpoint(), jobId, + this.client.getServiceVersion().getVersion(), requestOptions, Context.NONE); + } + + private List getValues(BinaryData binaryData, String path) { + try { + Map obj = binaryData.toObject(Map.class); + List values = (List) obj.get(path); + return values.stream().map(BinaryData::fromObject).collect(Collectors.toList()); + } catch (RuntimeException e) { + return null; + } + } + + private String getNextLink(BinaryData binaryData, String path) { + try { + Map obj = binaryData.toObject(Map.class); + return (String) obj.get(path); + } catch (RuntimeException e) { + return null; + } + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluationRulesImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluationRulesImpl.java index 641bc8b7a823..e69e28c78cad 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluationRulesImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluationRulesImpl.java @@ -305,7 +305,7 @@ public Response deleteEvaluationRuleWithResponse(String id, RequestOptions * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

@@ -382,7 +382,7 @@ public Mono> createOrUpdateEvaluationRuleWithResponseAsync( * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluationTaxonomiesImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluationTaxonomiesImpl.java index 879e65c882a8..5689abe1a802 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluationTaxonomiesImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluationTaxonomiesImpl.java @@ -151,7 +151,7 @@ Response deleteEvaluationTaxonomySync(@HostParam("endpoint") String endpoi Mono> createEvaluationTaxonomy(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @HeaderParam("Foundry-Features") String foundryFeatures, @PathParam("name") String name, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData body, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData taxonomy, RequestOptions requestOptions, Context context); @Put("/evaluationtaxonomies/{name}") @@ -163,7 +163,7 @@ Mono> createEvaluationTaxonomy(@HostParam("endpoint") Strin Response createEvaluationTaxonomySync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @HeaderParam("Foundry-Features") String foundryFeatures, @PathParam("name") String name, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData body, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData taxonomy, RequestOptions requestOptions, Context context); @Patch("/evaluationtaxonomies/{name}") @@ -175,7 +175,7 @@ Response createEvaluationTaxonomySync(@HostParam("endpoint") String Mono> updateEvaluationTaxonomy(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @HeaderParam("Foundry-Features") String foundryFeatures, @PathParam("name") String name, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData body, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData taxonomy, RequestOptions requestOptions, Context context); @Patch("/evaluationtaxonomies/{name}") @@ -187,7 +187,7 @@ Mono> updateEvaluationTaxonomy(@HostParam("endpoint") Strin Response updateEvaluationTaxonomySync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @HeaderParam("Foundry-Features") String foundryFeatures, @PathParam("name") String name, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData body, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData taxonomy, RequestOptions requestOptions, Context context); @Get("{nextLink}") @@ -749,7 +749,7 @@ public Response deleteEvaluationTaxonomyWithResponse(String name, RequestO * * * @param name The name of the evaluation taxonomy. - * @param body The evaluation taxonomy. + * @param taxonomy The evaluation taxonomy. * @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. @@ -758,13 +758,13 @@ public Response deleteEvaluationTaxonomyWithResponse(String name, RequestO * @return evaluation Taxonomy Definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createEvaluationTaxonomyWithResponseAsync(String name, BinaryData body, + public Mono> createEvaluationTaxonomyWithResponseAsync(String name, BinaryData taxonomy, RequestOptions requestOptions) { final String foundryFeatures = "Evaluations=V1Preview"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.createEvaluationTaxonomy(this.client.getEndpoint(), - this.client.getServiceVersion().getVersion(), foundryFeatures, name, contentType, accept, body, + this.client.getServiceVersion().getVersion(), foundryFeatures, name, contentType, accept, taxonomy, requestOptions, context)); } @@ -859,7 +859,7 @@ public Mono> createEvaluationTaxonomyWithResponseAsync(Stri * * * @param name The name of the evaluation taxonomy. - * @param body The evaluation taxonomy. + * @param taxonomy The evaluation taxonomy. * @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. @@ -868,13 +868,13 @@ public Mono> createEvaluationTaxonomyWithResponseAsync(Stri * @return evaluation Taxonomy Definition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createEvaluationTaxonomyWithResponse(String name, BinaryData body, + public Response createEvaluationTaxonomyWithResponse(String name, BinaryData taxonomy, RequestOptions requestOptions) { final String foundryFeatures = "Evaluations=V1Preview"; final String contentType = "application/json"; final String accept = "application/json"; return service.createEvaluationTaxonomySync(this.client.getEndpoint(), - this.client.getServiceVersion().getVersion(), foundryFeatures, name, contentType, accept, body, + this.client.getServiceVersion().getVersion(), foundryFeatures, name, contentType, accept, taxonomy, requestOptions, Context.NONE); } @@ -969,7 +969,7 @@ public Response createEvaluationTaxonomyWithResponse(String name, Bi * * * @param name The name of the evaluation taxonomy. - * @param body The evaluation taxonomy. + * @param taxonomy The evaluation taxonomy. * @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. @@ -978,13 +978,13 @@ public Response createEvaluationTaxonomyWithResponse(String name, Bi * @return evaluation Taxonomy Definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateEvaluationTaxonomyWithResponseAsync(String name, BinaryData body, + public Mono> updateEvaluationTaxonomyWithResponseAsync(String name, BinaryData taxonomy, RequestOptions requestOptions) { final String foundryFeatures = "Evaluations=V1Preview"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.updateEvaluationTaxonomy(this.client.getEndpoint(), - this.client.getServiceVersion().getVersion(), foundryFeatures, name, contentType, accept, body, + this.client.getServiceVersion().getVersion(), foundryFeatures, name, contentType, accept, taxonomy, requestOptions, context)); } @@ -1079,7 +1079,7 @@ public Mono> updateEvaluationTaxonomyWithResponseAsync(Stri * * * @param name The name of the evaluation taxonomy. - * @param body The evaluation taxonomy. + * @param taxonomy The evaluation taxonomy. * @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. @@ -1088,13 +1088,13 @@ public Mono> updateEvaluationTaxonomyWithResponseAsync(Stri * @return evaluation Taxonomy Definition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateEvaluationTaxonomyWithResponse(String name, BinaryData body, + public Response updateEvaluationTaxonomyWithResponse(String name, BinaryData taxonomy, RequestOptions requestOptions) { final String foundryFeatures = "Evaluations=V1Preview"; final String contentType = "application/json"; final String accept = "application/json"; return service.updateEvaluationTaxonomySync(this.client.getEndpoint(), - this.client.getServiceVersion().getVersion(), foundryFeatures, name, contentType, accept, body, + this.client.getServiceVersion().getVersion(), foundryFeatures, name, contentType, accept, taxonomy, requestOptions, Context.NONE); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluatorGenerationJobsImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluatorGenerationJobsImpl.java new file mode 100644 index 000000000000..adc91b75a0f0 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluatorGenerationJobsImpl.java @@ -0,0 +1,1746 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.implementation; + +import com.azure.ai.projects.AIProjectsServiceVersion; +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.exception.ClientAuthenticationException; +import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in EvaluatorGenerationJobs. + */ +public final class EvaluatorGenerationJobsImpl { + /** + * The proxy service used to perform REST calls. + */ + private final EvaluatorGenerationJobsService service; + + /** + * The service client containing this operation class. + */ + private final AIProjectClientImpl client; + + /** + * Initializes an instance of EvaluatorGenerationJobsImpl. + * + * @param client the instance of the service client containing this operation class. + */ + EvaluatorGenerationJobsImpl(AIProjectClientImpl client) { + this.service = RestProxy.create(EvaluatorGenerationJobsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * Gets Service version. + * + * @return the serviceVersion value. + */ + public AIProjectsServiceVersion getServiceVersion() { + return client.getServiceVersion(); + } + + /** + * The interface defining all the services for AIProjectClientEvaluatorGenerationJobs to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "AIProjectClientEvaluatorGenerationJobs") + public interface EvaluatorGenerationJobsService { + @Post("/evaluator_generation_jobs") + @ExpectedResponses({ 201 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> create(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData job, + RequestOptions requestOptions, Context context); + + @Post("/evaluator_generation_jobs") + @ExpectedResponses({ 201 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response createSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData job, + RequestOptions requestOptions, Context context); + + @Get("/evaluator_generation_jobs/{jobId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> get(@HostParam("endpoint") String endpoint, @PathParam("jobId") String jobId, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, + RequestOptions requestOptions, Context context); + + @Get("/evaluator_generation_jobs/{jobId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response getSync(@HostParam("endpoint") String endpoint, @PathParam("jobId") String jobId, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, + RequestOptions requestOptions, Context context); + + @Get("/evaluator_generation_jobs") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, + RequestOptions requestOptions, Context context); + + @Get("/evaluator_generation_jobs") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, + RequestOptions requestOptions, Context context); + + @Post("/evaluator_generation_jobs/{jobId}:cancel") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> cancel(@HostParam("endpoint") String endpoint, @PathParam("jobId") String jobId, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, + RequestOptions requestOptions, Context context); + + @Post("/evaluator_generation_jobs/{jobId}:cancel") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response cancelSync(@HostParam("endpoint") String endpoint, @PathParam("jobId") String jobId, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, + RequestOptions requestOptions, Context context); + + @Delete("/evaluator_generation_jobs/{jobId}") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> delete(@HostParam("endpoint") String endpoint, @PathParam("jobId") String jobId, + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); + + @Delete("/evaluator_generation_jobs/{jobId}") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, @PathParam("jobId") String jobId, + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); + } + + /** + * Creates an evaluator generation job. + * + * Creates an evaluator generation job. The service generates rubric-based evaluator + * definitions from the provided source materials asynchronously. + *

Header Parameters

+ * + * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
Operation-IdStringNoClient-generated unique ID for idempotent retries. When + * absent, the server creates the job unconditionally.
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions + * from source materials along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createWithResponseAsync(BinaryData job, RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.create(this.client.getEndpoint(), + this.client.getServiceVersion().getVersion(), contentType, accept, job, requestOptions, context)); + } + + /** + * Creates an evaluator generation job. + * + * Creates an evaluator generation job. The service generates rubric-based evaluator + * definitions from the provided source materials asynchronously. + *

Header Parameters

+ * + * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
Operation-IdStringNoClient-generated unique ID for idempotent retries. When + * absent, the server creates the job unconditionally.
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions + * from source materials along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createWithResponse(BinaryData job, RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createSync(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), contentType, + accept, job, requestOptions, Context.NONE); + } + + /** + * Get info about an evaluator generation job. + * + * Gets the details of an evaluator generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 info about an evaluator generation job. + * + * Gets the details of an evaluator generation job by its ID along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String jobId, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.get(this.client.getEndpoint(), jobId, + this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); + } + + /** + * Get info about an evaluator generation job. + * + * Gets the details of an evaluator generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 info about an evaluator generation job. + * + * Gets the details of an evaluator generation job by its ID along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String jobId, RequestOptions requestOptions) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), jobId, this.client.getServiceVersion().getVersion(), accept, + requestOptions, Context.NONE); + } + + /** + * Returns a list of evaluator generation jobs. + *

Query Parameters

+ * + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
limitIntegerNoA limit on the number of objects to be returned. Limit can range + * between 1 and 100, and the + * default is 20.
orderStringNoSort order by the `created_at` timestamp of the objects. `asc` + * for ascending order and`desc` + * for descending order. Allowed values: "asc", "desc".
afterStringNoA cursor for use in pagination. `after` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list.
beforeStringNoA cursor for use in pagination. `before` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list.
categoryStringNoFilter evaluator generation jobs by category. Allowed values: + * "quality", "safety", "agents".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @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 the response data for a requested list of items along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), + this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "data"), null, null)); + } + + /** + * Returns a list of evaluator generation jobs. + *

Query Parameters

+ * + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
limitIntegerNoA limit on the number of objects to be returned. Limit can range + * between 1 and 100, and the + * default is 20.
orderStringNoSort order by the `created_at` timestamp of the objects. `asc` + * for ascending order and`desc` + * for descending order. Allowed values: "asc", "desc".
afterStringNoA cursor for use in pagination. `after` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list.
beforeStringNoA cursor for use in pagination. `before` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list.
categoryStringNoFilter evaluator generation jobs by category. Allowed values: + * "quality", "safety", "agents".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @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 the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(RequestOptions requestOptions) { + return new PagedFlux<>(() -> listSinglePageAsync(requestOptions)); + } + + /** + * Returns a list of evaluator generation jobs. + *

Query Parameters

+ * + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
limitIntegerNoA limit on the number of objects to be returned. Limit can range + * between 1 and 100, and the + * default is 20.
orderStringNoSort order by the `created_at` timestamp of the objects. `asc` + * for ascending order and`desc` + * for descending order. Allowed values: "asc", "desc".
afterStringNoA cursor for use in pagination. `after` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list.
beforeStringNoA cursor for use in pagination. `before` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list.
categoryStringNoFilter evaluator generation jobs by category. Allowed values: + * "quality", "safety", "agents".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @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 the response data for a requested list of items along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(RequestOptions requestOptions) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "data"), null, null); + } + + /** + * Returns a list of evaluator generation jobs. + *

Query Parameters

+ * + * + * + * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
limitIntegerNoA limit on the number of objects to be returned. Limit can range + * between 1 and 100, and the + * default is 20.
orderStringNoSort order by the `created_at` timestamp of the objects. `asc` + * for ascending order and`desc` + * for descending order. Allowed values: "asc", "desc".
afterStringNoA cursor for use in pagination. `after` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list.
beforeStringNoA cursor for use in pagination. `before` is an object ID that + * defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list.
categoryStringNoFilter evaluator generation jobs by category. Allowed values: + * "quality", "safety", "agents".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @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 the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(RequestOptions requestOptions) { + return new PagedIterable<>(() -> listSinglePage(requestOptions)); + } + + /** + * Cancels an evaluator generation job. + * + * Cancels an evaluator generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions + * from source materials along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> cancelWithResponseAsync(String jobId, RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.cancel(this.client.getEndpoint(), jobId, + this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); + } + + /** + * Cancels an evaluator generation job. + * + * Cancels an evaluator generation job by its ID. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     *     inputs (Optional): {
+     *         name: String (Required)
+     *         sources (Required): [
+     *              (Required){
+     *                 type: String(prompt/agent/traces/dataset) (Required)
+     *             }
+     *         ]
+     *         category: String(quality/safety/agents) (Optional)
+     *         model: String (Required)
+     *         evaluator_name: String (Required)
+     *     }
+     *     result (Optional): {
+     *         display_name: String (Optional)
+     *         metadata (Optional): {
+     *             String: String (Required)
+     *         }
+     *         evaluator_type: String(builtin/custom) (Required)
+     *         categories (Required): [
+     *             String(quality/safety/agents) (Required)
+     *         ]
+     *         definition (Required): {
+     *             type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required)
+     *             init_parameters (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             data_schema (Optional): {
+     *                 String: BinaryData (Required)
+     *             }
+     *             metrics (Optional): {
+     *                 String (Required): {
+     *                     type: String(ordinal/continuous/boolean) (Optional)
+     *                     desirable_direction: String(increase/decrease/neutral) (Optional)
+     *                     min_value: Double (Optional)
+     *                     max_value: Double (Optional)
+     *                     threshold: Double (Optional)
+     *                     is_primary: Boolean (Optional)
+     *                 }
+     *             }
+     *         }
+     *         generation_artifacts (Optional): {
+     *             dataset (Required): {
+     *                 name: String (Required)
+     *                 version: String (Required)
+     *             }
+     *             kinds (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *         created_by: String (Required)
+     *         created_at: OffsetDateTime (Required)
+     *         modified_at: OffsetDateTime (Required)
+     *         id: String (Optional)
+     *         name: String (Required)
+     *         version: String (Required)
+     *         description: String (Optional)
+     *         tags (Optional): {
+     *             String: String (Required)
+     *         }
+     *     }
+     *     status: String(queued/in_progress/succeeded/failed/cancelled) (Required)
+     *     error (Optional): {
+     *         code: String (Required)
+     *         message: String (Required)
+     *         param: String (Optional)
+     *         type: String (Optional)
+     *         details (Optional): [
+     *             (recursive schema, see above)
+     *         ]
+     *         additionalInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *         debugInfo (Optional): {
+     *             String: BinaryData (Required)
+     *         }
+     *     }
+     *     created_at: long (Required)
+     *     finished_at: Long (Optional)
+     *     usage (Optional): {
+     *         input_tokens: long (Required)
+     *         output_tokens: long (Required)
+     *         total_tokens: long (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions + * from source materials along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response cancelWithResponse(String jobId, RequestOptions requestOptions) { + final String accept = "application/json"; + return service.cancelSync(this.client.getEndpoint(), jobId, this.client.getServiceVersion().getVersion(), + accept, requestOptions, Context.NONE); + } + + /** + * Deletes an evaluator generation job by its ID. Deletes the job record only; + * the generated evaluator (if any) is preserved. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteWithResponseAsync(String jobId, RequestOptions requestOptions) { + return FluxUtil.withContext(context -> service.delete(this.client.getEndpoint(), jobId, + this.client.getServiceVersion().getVersion(), requestOptions, context)); + } + + /** + * Deletes an evaluator generation job by its ID. Deletes the job record only; + * the generated evaluator (if any) is preserved. + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Foundry-FeaturesStringNoA feature flag opt-in required when using preview + * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", + * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview".
+ * You can add these to a request with {@link RequestOptions#addHeader} + * + * @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. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @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 the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response deleteWithResponse(String jobId, RequestOptions requestOptions) { + return service.deleteSync(this.client.getEndpoint(), jobId, this.client.getServiceVersion().getVersion(), + requestOptions, Context.NONE); + } + + private List getValues(BinaryData binaryData, String path) { + try { + Map obj = binaryData.toObject(Map.class); + List values = (List) obj.get(path); + return values.stream().map(BinaryData::fromObject).collect(Collectors.toList()); + } catch (RuntimeException e) { + return null; + } + } + + private String getNextLink(BinaryData binaryData, String path) { + try { + Map obj = binaryData.toObject(Map.class); + return (String) obj.get(path); + } catch (RuntimeException e) { + return null; + } + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluatorsImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluatorsImpl.java index 0cab4112528c..646d4d121174 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluatorsImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluatorsImpl.java @@ -285,7 +285,7 @@ Response listLatestEvaluatorVersionsNextSync( * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -303,6 +303,15 @@ Response listLatestEvaluatorVersionsNextSync( * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -364,7 +373,7 @@ private Mono> listEvaluatorVersionsSinglePageAsync(Str * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -382,6 +391,15 @@ private Mono> listEvaluatorVersionsSinglePageAsync(Str * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -439,7 +457,7 @@ public PagedFlux listEvaluatorVersionsAsync(String name, RequestOpti * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -457,6 +475,15 @@ public PagedFlux listEvaluatorVersionsAsync(String name, RequestOpti * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -515,7 +542,7 @@ private PagedResponse listEvaluatorVersionsSinglePage(String name, R * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -533,6 +560,15 @@ private PagedResponse listEvaluatorVersionsSinglePage(String name, R * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -590,7 +626,7 @@ public PagedIterable listEvaluatorVersions(String name, RequestOptio * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -608,6 +644,15 @@ public PagedIterable listEvaluatorVersions(String name, RequestOptio * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -667,7 +712,7 @@ private Mono> listLatestEvaluatorVersionsSinglePageAsy * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -685,6 +730,15 @@ private Mono> listLatestEvaluatorVersionsSinglePageAsy * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -741,7 +795,7 @@ public PagedFlux listLatestEvaluatorVersionsAsync(RequestOptions req * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -759,6 +813,15 @@ public PagedFlux listLatestEvaluatorVersionsAsync(RequestOptions req * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -816,7 +879,7 @@ private PagedResponse listLatestEvaluatorVersionsSinglePage(RequestO * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -834,6 +897,15 @@ private PagedResponse listLatestEvaluatorVersionsSinglePage(RequestO * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -881,7 +953,7 @@ public PagedIterable listLatestEvaluatorVersions(RequestOptions requ * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -899,6 +971,15 @@ public PagedIterable listLatestEvaluatorVersions(RequestOptions requ * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -950,7 +1031,7 @@ public Mono> getEvaluatorVersionWithResponseAsync(String na * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -968,6 +1049,15 @@ public Mono> getEvaluatorVersionWithResponseAsync(String na * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -1058,7 +1148,7 @@ public Response deleteEvaluatorVersionWithResponse(String name, String ver * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -1076,6 +1166,15 @@ public Response deleteEvaluatorVersionWithResponse(String name, String ver * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -1104,7 +1203,7 @@ public Response deleteEvaluatorVersionWithResponse(String name, String ver * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -1122,6 +1221,15 @@ public Response deleteEvaluatorVersionWithResponse(String name, String ver * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -1172,7 +1280,7 @@ public Mono> createEvaluatorVersionWithResponseAsync(String * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -1190,6 +1298,15 @@ public Mono> createEvaluatorVersionWithResponseAsync(String * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -1218,7 +1335,7 @@ public Mono> createEvaluatorVersionWithResponseAsync(String * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -1236,6 +1353,15 @@ public Mono> createEvaluatorVersionWithResponseAsync(String * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -1286,7 +1412,7 @@ public Response createEvaluatorVersionWithResponse(String name, Bina * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -1304,6 +1430,15 @@ public Response createEvaluatorVersionWithResponse(String name, Bina * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -1332,7 +1467,7 @@ public Response createEvaluatorVersionWithResponse(String name, Bina * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -1350,6 +1485,15 @@ public Response createEvaluatorVersionWithResponse(String name, Bina * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -1401,7 +1545,7 @@ public Mono> updateEvaluatorVersionWithResponseAsync(String * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -1419,6 +1563,15 @@ public Mono> updateEvaluatorVersionWithResponseAsync(String * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -1447,7 +1600,7 @@ public Mono> updateEvaluatorVersionWithResponseAsync(String * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -1465,6 +1618,15 @@ public Mono> updateEvaluatorVersionWithResponseAsync(String * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -1516,7 +1678,7 @@ public Response updateEvaluatorVersionWithResponse(String name, Stri * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -1534,6 +1696,15 @@ public Response updateEvaluatorVersionWithResponse(String name, Stri * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -1585,7 +1756,7 @@ private Mono> listEvaluatorVersionsNextSinglePageAsync * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -1603,6 +1774,15 @@ private Mono> listEvaluatorVersionsNextSinglePageAsync * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -1652,7 +1832,7 @@ private PagedResponse listEvaluatorVersionsNextSinglePage(String nex * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -1670,6 +1850,15 @@ private PagedResponse listEvaluatorVersionsNextSinglePage(String nex * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) @@ -1721,7 +1910,7 @@ private Mono> listLatestEvaluatorVersionsNextSinglePag * String(quality/safety/agents) (Required) * ] * definition (Required): { - * type: String(prompt/code/prompt_and_code/service/openai_graders) (Required) + * type: String(prompt/code/prompt_and_code/service/openai_graders/rubrics) (Required) * init_parameters (Optional): { * String: BinaryData (Required) * } @@ -1739,6 +1928,15 @@ private Mono> listLatestEvaluatorVersionsNextSinglePag * } * } * } + * generation_artifacts (Optional): { + * dataset (Required): { + * name: String (Required) + * version: String (Required) + * } + * kinds (Required): [ + * String (Required) + * ] + * } * created_by: String (Required) * created_at: OffsetDateTime (Required) * modified_at: OffsetDateTime (Required) diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/InsightsImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/InsightsImpl.java index 32fd5f260e4a..d682fcb606d8 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/InsightsImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/InsightsImpl.java @@ -173,7 +173,7 @@ Response listInsightsNextSync(@PathParam(value = "nextLink", encoded * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * repeatability-request-idStringNoRepeatability request ID header * repeatability-first-sentStringNoRepeatability first sent header as * HTTP-date @@ -264,7 +264,7 @@ public Mono> generateInsightWithResponseAsync(BinaryData in * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * repeatability-request-idStringNoRepeatability request ID header * repeatability-first-sentStringNoRepeatability first sent header as * HTTP-date @@ -361,7 +361,7 @@ public Response generateInsightWithResponse(BinaryData insight, Requ * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

@@ -418,7 +418,7 @@ public Mono> getInsightWithResponseAsync(String id, Request * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

@@ -480,7 +480,7 @@ public Response getInsightWithResponse(String id, RequestOptions req * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

@@ -545,7 +545,7 @@ private Mono> listInsightsSinglePageAsync(RequestOptio * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

@@ -608,7 +608,7 @@ public PagedFlux listInsightsAsync(RequestOptions requestOptions) { * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

@@ -671,7 +671,7 @@ private PagedResponse listInsightsSinglePage(RequestOptions requestO * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

@@ -721,7 +721,7 @@ public PagedIterable listInsights(RequestOptions requestOptions) { * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

@@ -774,7 +774,7 @@ private Mono> listInsightsNextSinglePageAsync(String n * Foundry-FeaturesStringNoA feature flag opt-in required when using preview * operations or modifying persisted preview resources. Allowed values: "Skills=V1Preview", "Evaluations=V1Preview", * "Schedules=V1Preview", "RedTeams=V1Preview", "Insights=V1Preview", "MemoryStores=V1Preview", - * "Toolboxes=V1Preview". + * "Toolboxes=V1Preview", "DataGenerationJobs=V1Preview". * * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/SkillsImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/SkillsImpl.java index 932c43469e3d..c5899596fe3f 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/SkillsImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/SkillsImpl.java @@ -124,49 +124,45 @@ Response createSkillFromPackageSync(@HostParam("endpoint") String en @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @BodyParam("application/zip") BinaryData body, RequestOptions requestOptions, Context context); - @Get("/skills/{skill_name}") + @Get("/skills/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Mono> getSkill(@HostParam("endpoint") String endpoint, - @PathParam("skill_name") String skillName, @HeaderParam("Foundry-Features") String foundryFeatures, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + Mono> getSkill(@HostParam("endpoint") String endpoint, @PathParam("name") String name, + @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); - @Get("/skills/{skill_name}") + @Get("/skills/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Response getSkillSync(@HostParam("endpoint") String endpoint, - @PathParam("skill_name") String skillName, @HeaderParam("Foundry-Features") String foundryFeatures, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + Response getSkillSync(@HostParam("endpoint") String endpoint, @PathParam("name") String name, + @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); - @Get("/skills/{skill_name}:download") + @Get("/skills/{name}:download") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Mono> downloadSkill(@HostParam("endpoint") String endpoint, - @PathParam("skill_name") String skillName, @HeaderParam("Foundry-Features") String foundryFeatures, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + Mono> downloadSkill(@HostParam("endpoint") String endpoint, @PathParam("name") String name, + @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); - @Get("/skills/{skill_name}:download") + @Get("/skills/{name}:download") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Response downloadSkillSync(@HostParam("endpoint") String endpoint, - @PathParam("skill_name") String skillName, @HeaderParam("Foundry-Features") String foundryFeatures, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + Response downloadSkillSync(@HostParam("endpoint") String endpoint, @PathParam("name") String name, + @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); @Get("/skills") @ExpectedResponses({ 200 }) @@ -188,51 +184,49 @@ Response listSkillsSync(@HostParam("endpoint") String endpoint, @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); - @Post("/skills/{skill_name}") + @Post("/skills/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Mono> updateSkill(@HostParam("endpoint") String endpoint, - @PathParam("skill_name") String skillName, @HeaderParam("Foundry-Features") String foundryFeatures, - @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData updateSkillRequest, - RequestOptions requestOptions, Context context); + Mono> updateSkill(@HostParam("endpoint") String endpoint, @PathParam("name") String name, + @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData updateSkillRequest, RequestOptions requestOptions, + Context context); - @Post("/skills/{skill_name}") + @Post("/skills/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Response updateSkillSync(@HostParam("endpoint") String endpoint, - @PathParam("skill_name") String skillName, @HeaderParam("Foundry-Features") String foundryFeatures, - @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData updateSkillRequest, - RequestOptions requestOptions, Context context); + Response updateSkillSync(@HostParam("endpoint") String endpoint, @PathParam("name") String name, + @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData updateSkillRequest, RequestOptions requestOptions, + Context context); - @Delete("/skills/{skill_name}") + @Delete("/skills/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Mono> deleteSkill(@HostParam("endpoint") String endpoint, - @PathParam("skill_name") String skillName, @HeaderParam("Foundry-Features") String foundryFeatures, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + Mono> deleteSkill(@HostParam("endpoint") String endpoint, @PathParam("name") String name, + @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); - @Delete("/skills/{skill_name}") + @Delete("/skills/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) - Response deleteSkillSync(@HostParam("endpoint") String endpoint, - @PathParam("skill_name") String skillName, @HeaderParam("Foundry-Features") String foundryFeatures, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + Response deleteSkillSync(@HostParam("endpoint") String endpoint, @PathParam("name") String name, + @HeaderParam("Foundry-Features") String foundryFeatures, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); } /** @@ -443,7 +437,7 @@ public Response createSkillFromPackageWithResponse(BinaryData body, * } * * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @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. @@ -452,10 +446,10 @@ public Response createSkillFromPackageWithResponse(BinaryData body, * @return a skill object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getSkillWithResponseAsync(String skillName, RequestOptions requestOptions) { + public Mono> getSkillWithResponseAsync(String name, RequestOptions requestOptions) { final String foundryFeatures = "Skills=V1Preview"; final String accept = "application/json"; - return FluxUtil.withContext(context -> service.getSkill(this.client.getEndpoint(), skillName, foundryFeatures, + return FluxUtil.withContext(context -> service.getSkill(this.client.getEndpoint(), name, foundryFeatures, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); } @@ -477,7 +471,7 @@ public Mono> getSkillWithResponseAsync(String skillName, Re * } * * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @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. @@ -486,10 +480,10 @@ public Mono> getSkillWithResponseAsync(String skillName, Re * @return a skill object along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getSkillWithResponse(String skillName, RequestOptions requestOptions) { + public Response getSkillWithResponse(String name, RequestOptions requestOptions) { final String foundryFeatures = "Skills=V1Preview"; final String accept = "application/json"; - return service.getSkillSync(this.client.getEndpoint(), skillName, foundryFeatures, + return service.getSkillSync(this.client.getEndpoint(), name, foundryFeatures, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); } @@ -503,7 +497,7 @@ public Response getSkillWithResponse(String skillName, RequestOption * } * * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @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. @@ -512,11 +506,11 @@ public Response getSkillWithResponse(String skillName, RequestOption * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> downloadSkillWithResponseAsync(String skillName, RequestOptions requestOptions) { + public Mono> downloadSkillWithResponseAsync(String name, RequestOptions requestOptions) { final String foundryFeatures = "Skills=V1Preview"; final String accept = "application/zip"; - return FluxUtil.withContext(context -> service.downloadSkill(this.client.getEndpoint(), skillName, - foundryFeatures, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); + return FluxUtil.withContext(context -> service.downloadSkill(this.client.getEndpoint(), name, foundryFeatures, + this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); } /** @@ -529,7 +523,7 @@ public Mono> downloadSkillWithResponseAsync(String skillNam * } * * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @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. @@ -538,10 +532,10 @@ public Mono> downloadSkillWithResponseAsync(String skillNam * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response downloadSkillWithResponse(String skillName, RequestOptions requestOptions) { + public Response downloadSkillWithResponse(String name, RequestOptions requestOptions) { final String foundryFeatures = "Skills=V1Preview"; final String accept = "application/zip"; - return service.downloadSkillSync(this.client.getEndpoint(), skillName, foundryFeatures, + return service.downloadSkillSync(this.client.getEndpoint(), name, foundryFeatures, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); } @@ -789,7 +783,7 @@ public PagedIterable listSkills(RequestOptions requestOptions) { * } * * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @param updateSkillRequest The updateSkillRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -799,14 +793,14 @@ public PagedIterable listSkills(RequestOptions requestOptions) { * @return a skill object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateSkillWithResponseAsync(String skillName, BinaryData updateSkillRequest, + public Mono> updateSkillWithResponseAsync(String name, BinaryData updateSkillRequest, RequestOptions requestOptions) { final String foundryFeatures = "Skills=V1Preview"; final String contentType = "application/json"; final String accept = "application/json"; - return FluxUtil.withContext(context -> service.updateSkill(this.client.getEndpoint(), skillName, - foundryFeatures, this.client.getServiceVersion().getVersion(), contentType, accept, updateSkillRequest, - requestOptions, context)); + return FluxUtil.withContext(context -> service.updateSkill(this.client.getEndpoint(), name, foundryFeatures, + this.client.getServiceVersion().getVersion(), contentType, accept, updateSkillRequest, requestOptions, + context)); } /** @@ -841,7 +835,7 @@ public Mono> updateSkillWithResponseAsync(String skillName, * } * * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @param updateSkillRequest The updateSkillRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -851,12 +845,12 @@ public Mono> updateSkillWithResponseAsync(String skillName, * @return a skill object along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateSkillWithResponse(String skillName, BinaryData updateSkillRequest, + public Response updateSkillWithResponse(String name, BinaryData updateSkillRequest, RequestOptions requestOptions) { final String foundryFeatures = "Skills=V1Preview"; final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSkillSync(this.client.getEndpoint(), skillName, foundryFeatures, + return service.updateSkillSync(this.client.getEndpoint(), name, foundryFeatures, this.client.getServiceVersion().getVersion(), contentType, accept, updateSkillRequest, requestOptions, Context.NONE); } @@ -874,7 +868,7 @@ public Response updateSkillWithResponse(String skillName, BinaryData * } * * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @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. @@ -883,11 +877,11 @@ public Response updateSkillWithResponse(String skillName, BinaryData * @return a deleted skill Object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteSkillWithResponseAsync(String skillName, RequestOptions requestOptions) { + public Mono> deleteSkillWithResponseAsync(String name, RequestOptions requestOptions) { final String foundryFeatures = "Skills=V1Preview"; final String accept = "application/json"; - return FluxUtil.withContext(context -> service.deleteSkill(this.client.getEndpoint(), skillName, - foundryFeatures, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); + return FluxUtil.withContext(context -> service.deleteSkill(this.client.getEndpoint(), name, foundryFeatures, + this.client.getServiceVersion().getVersion(), accept, requestOptions, context)); } /** @@ -903,7 +897,7 @@ public Mono> deleteSkillWithResponseAsync(String skillName, * } * * - * @param skillName The unique name of the skill. + * @param name The unique name of the skill. * @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. @@ -912,10 +906,10 @@ public Mono> deleteSkillWithResponseAsync(String skillName, * @return a deleted skill Object along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteSkillWithResponse(String skillName, RequestOptions requestOptions) { + public Response deleteSkillWithResponse(String name, RequestOptions requestOptions) { final String foundryFeatures = "Skills=V1Preview"; final String accept = "application/json"; - return service.deleteSkillSync(this.client.getEndpoint(), skillName, foundryFeatures, + return service.deleteSkillSync(this.client.getEndpoint(), name, foundryFeatures, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/AgentDataGenerationJobSource.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/AgentDataGenerationJobSource.java new file mode 100644 index 000000000000..f2ac6aad062f --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/AgentDataGenerationJobSource.java @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Agent source for data generation jobs — references an agent to fetch instructions and metadata from. + */ +@Fluent +public final class AgentDataGenerationJobSource extends DataGenerationJobSource { + /* + * The type of source. + */ + @Generated + private DataGenerationJobSourceType type = DataGenerationJobSourceType.AGENT; + + /* + * Optional description of what this source represents — helps the pipeline interpret its content (e.g., 'Company + * refund policy document' or 'Describes the agent's core capabilities'). + */ + @Generated + private String description; + + /* + * The agent name to fetch instructions from. + */ + @Generated + private final String agentName; + + /* + * The agent version. If not specified, the latest version is used. + */ + @Generated + private String agentVersion; + + /** + * Creates an instance of AgentDataGenerationJobSource class. + * + * @param agentName the agentName value to set. + */ + @Generated + public AgentDataGenerationJobSource(String agentName) { + this.agentName = agentName; + } + + /** + * Get the type property: The type of source. + * + * @return the type value. + */ + @Generated + @Override + public DataGenerationJobSourceType getType() { + return this.type; + } + + /** + * Get the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @param description the description value to set. + * @return the AgentDataGenerationJobSource object itself. + */ + @Generated + public AgentDataGenerationJobSource setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the agentName property: The agent name to fetch instructions from. + * + * @return the agentName value. + */ + @Generated + public String getAgentName() { + return this.agentName; + } + + /** + * Get the agentVersion property: The agent version. If not specified, the latest version is used. + * + * @return the agentVersion value. + */ + @Generated + public String getAgentVersion() { + return this.agentVersion; + } + + /** + * Set the agentVersion property: The agent version. If not specified, the latest version is used. + * + * @param agentVersion the agentVersion value to set. + * @return the AgentDataGenerationJobSource object itself. + */ + @Generated + public AgentDataGenerationJobSource setAgentVersion(String agentVersion) { + this.agentVersion = agentVersion; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("agent_name", this.agentName); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("description", this.description); + jsonWriter.writeStringField("agent_version", this.agentVersion); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentDataGenerationJobSource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentDataGenerationJobSource if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the AgentDataGenerationJobSource. + */ + @Generated + public static AgentDataGenerationJobSource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String agentName = null; + DataGenerationJobSourceType type = DataGenerationJobSourceType.AGENT; + String description = null; + String agentVersion = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("agent_name".equals(fieldName)) { + agentName = reader.getString(); + } else if ("type".equals(fieldName)) { + type = DataGenerationJobSourceType.fromString(reader.getString()); + } else if ("description".equals(fieldName)) { + description = reader.getString(); + } else if ("agent_version".equals(fieldName)) { + agentVersion = reader.getString(); + } else { + reader.skipChildren(); + } + } + AgentDataGenerationJobSource deserializedAgentDataGenerationJobSource + = new AgentDataGenerationJobSource(agentName); + deserializedAgentDataGenerationJobSource.type = type; + deserializedAgentDataGenerationJobSource.description = description; + deserializedAgentDataGenerationJobSource.agentVersion = agentVersion; + + return deserializedAgentDataGenerationJobSource; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/AgentEvaluatorGenerationJobSource.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/AgentEvaluatorGenerationJobSource.java new file mode 100644 index 000000000000..43d7ca440a48 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/AgentEvaluatorGenerationJobSource.java @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Agent source for evaluator generation jobs — references an agent to fetch instructions and metadata from. + */ +@Fluent +public final class AgentEvaluatorGenerationJobSource extends EvaluatorGenerationJobSource { + /* + * The type of source. + */ + @Generated + private EvaluatorGenerationJobSourceType type = EvaluatorGenerationJobSourceType.AGENT; + + /* + * Optional description of what this source represents — helps the pipeline interpret its content (e.g., 'Company + * refund policy document' or 'Describes the agent's core capabilities'). + */ + @Generated + private String description; + + /* + * The agent name to fetch instructions from. + */ + @Generated + private final String agentName; + + /* + * The agent version. If not specified, the latest version is used. + */ + @Generated + private String agentVersion; + + /** + * Creates an instance of AgentEvaluatorGenerationJobSource class. + * + * @param agentName the agentName value to set. + */ + @Generated + public AgentEvaluatorGenerationJobSource(String agentName) { + this.agentName = agentName; + } + + /** + * Get the type property: The type of source. + * + * @return the type value. + */ + @Generated + @Override + public EvaluatorGenerationJobSourceType getType() { + return this.type; + } + + /** + * Get the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @param description the description value to set. + * @return the AgentEvaluatorGenerationJobSource object itself. + */ + @Generated + public AgentEvaluatorGenerationJobSource setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the agentName property: The agent name to fetch instructions from. + * + * @return the agentName value. + */ + @Generated + public String getAgentName() { + return this.agentName; + } + + /** + * Get the agentVersion property: The agent version. If not specified, the latest version is used. + * + * @return the agentVersion value. + */ + @Generated + public String getAgentVersion() { + return this.agentVersion; + } + + /** + * Set the agentVersion property: The agent version. If not specified, the latest version is used. + * + * @param agentVersion the agentVersion value to set. + * @return the AgentEvaluatorGenerationJobSource object itself. + */ + @Generated + public AgentEvaluatorGenerationJobSource setAgentVersion(String agentVersion) { + this.agentVersion = agentVersion; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("agent_name", this.agentName); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("description", this.description); + jsonWriter.writeStringField("agent_version", this.agentVersion); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentEvaluatorGenerationJobSource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentEvaluatorGenerationJobSource if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the AgentEvaluatorGenerationJobSource. + */ + @Generated + public static AgentEvaluatorGenerationJobSource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String agentName = null; + EvaluatorGenerationJobSourceType type = EvaluatorGenerationJobSourceType.AGENT; + String description = null; + String agentVersion = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("agent_name".equals(fieldName)) { + agentName = reader.getString(); + } else if ("type".equals(fieldName)) { + type = EvaluatorGenerationJobSourceType.fromString(reader.getString()); + } else if ("description".equals(fieldName)) { + description = reader.getString(); + } else if ("agent_version".equals(fieldName)) { + agentVersion = reader.getString(); + } else { + reader.skipChildren(); + } + } + AgentEvaluatorGenerationJobSource deserializedAgentEvaluatorGenerationJobSource + = new AgentEvaluatorGenerationJobSource(agentName); + deserializedAgentEvaluatorGenerationJobSource.type = type; + deserializedAgentEvaluatorGenerationJobSource.description = description; + deserializedAgentEvaluatorGenerationJobSource.agentVersion = agentVersion; + + return deserializedAgentEvaluatorGenerationJobSource; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/ApiError.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/ApiError.java new file mode 100644 index 000000000000..bec2f6ff9019 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/ApiError.java @@ -0,0 +1,229 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.BinaryData; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; +import java.util.Map; + +/** + * The ApiError model. + */ +@Immutable +public final class ApiError implements JsonSerializable { + /* + * The code property. + */ + @Generated + private final String code; + + /* + * The message property. + */ + @Generated + private final String message; + + /* + * The param property. + */ + @Generated + private String param; + + /* + * The type property. + */ + @Generated + private String type; + + /* + * The details property. + */ + @Generated + private List details; + + /* + * The additionalInfo property. + */ + @Generated + private Map additionalInfo; + + /* + * The debugInfo property. + */ + @Generated + private Map debugInfo; + + /** + * Creates an instance of ApiError class. + * + * @param code the code value to set. + * @param message the message value to set. + */ + @Generated + private ApiError(String code, String message) { + this.code = code; + this.message = message; + } + + /** + * Get the code property: The code property. + * + * @return the code value. + */ + @Generated + public String getCode() { + return this.code; + } + + /** + * Get the message property: The message property. + * + * @return the message value. + */ + @Generated + public String getMessage() { + return this.message; + } + + /** + * Get the param property: The param property. + * + * @return the param value. + */ + @Generated + public String getParam() { + return this.param; + } + + /** + * Get the type property: The type property. + * + * @return the type value. + */ + @Generated + public String getType() { + return this.type; + } + + /** + * Get the details property: The details property. + * + * @return the details value. + */ + @Generated + public List getDetails() { + return this.details; + } + + /** + * Get the additionalInfo property: The additionalInfo property. + * + * @return the additionalInfo value. + */ + @Generated + public Map getAdditionalInfo() { + return this.additionalInfo; + } + + /** + * Get the debugInfo property: The debugInfo property. + * + * @return the debugInfo value. + */ + @Generated + public Map getDebugInfo() { + return this.debugInfo; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("code", this.code); + jsonWriter.writeStringField("message", this.message); + jsonWriter.writeStringField("param", this.param); + jsonWriter.writeStringField("type", this.type); + jsonWriter.writeArrayField("details", this.details, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeMapField("additionalInfo", this.additionalInfo, (writer, element) -> { + if (element == null) { + writer.writeNull(); + } else { + element.writeTo(writer); + } + }); + jsonWriter.writeMapField("debugInfo", this.debugInfo, (writer, element) -> { + if (element == null) { + writer.writeNull(); + } else { + element.writeTo(writer); + } + }); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ApiError from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ApiError if the JsonReader was pointing to an instance of it, or null if it was pointing + * to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ApiError. + */ + @Generated + public static ApiError fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String code = null; + String message = null; + String param = null; + String type = null; + List details = null; + Map additionalInfo = null; + Map debugInfo = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("code".equals(fieldName)) { + code = reader.getString(); + } else if ("message".equals(fieldName)) { + message = reader.getString(); + } else if ("param".equals(fieldName)) { + param = reader.getString(); + } else if ("type".equals(fieldName)) { + type = reader.getString(); + } else if ("details".equals(fieldName)) { + details = reader.readArray(reader1 -> ApiError.fromJson(reader1)); + } else if ("additionalInfo".equals(fieldName)) { + additionalInfo = reader.readMap(reader1 -> reader1 + .getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped()))); + } else if ("debugInfo".equals(fieldName)) { + debugInfo = reader.readMap(reader1 -> reader1 + .getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped()))); + } else { + reader.skipChildren(); + } + } + ApiError deserializedApiError = new ApiError(code, message); + deserializedApiError.param = param; + deserializedApiError.type = type; + deserializedApiError.details = details; + deserializedApiError.additionalInfo = additionalInfo; + deserializedApiError.debugInfo = debugInfo; + + return deserializedApiError; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJob.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJob.java new file mode 100644 index 000000000000..72a44c0edb30 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJob.java @@ -0,0 +1,209 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.Instant; +import java.time.OffsetDateTime; +import java.time.ZoneOffset; + +/** + * Data Generation Job resource. + */ +@Fluent +public final class DataGenerationJob implements JsonSerializable { + /* + * Server-assigned unique identifier. + */ + @Generated + private String id; + + /* + * Caller-supplied inputs. + */ + @Generated + private DataGenerationJobInputs inputs; + + /* + * Result produced on success. + */ + @Generated + private DataGenerationJobResult result; + + /* + * Current lifecycle status. + */ + @Generated + private JobStatus status; + + /* + * Error details — populated only on failure. + */ + @Generated + private ApiError error; + + /* + * The timestamp when the job was created, represented in Unix time (seconds since January 1, 1970). + */ + @Generated + private long createdAt; + + /* + * The timestamp when the job was finished, represented in Unix time (seconds since January 1, 1970). + */ + @Generated + private Long finishedAt; + + /** + * Creates an instance of DataGenerationJob class. + */ + @Generated + public DataGenerationJob() { + } + + /** + * Get the id property: Server-assigned unique identifier. + * + * @return the id value. + */ + @Generated + public String getId() { + return this.id; + } + + /** + * Get the inputs property: Caller-supplied inputs. + * + * @return the inputs value. + */ + @Generated + public DataGenerationJobInputs getInputs() { + return this.inputs; + } + + /** + * Set the inputs property: Caller-supplied inputs. + * + * @param inputs the inputs value to set. + * @return the DataGenerationJob object itself. + */ + @Generated + public DataGenerationJob setInputs(DataGenerationJobInputs inputs) { + this.inputs = inputs; + return this; + } + + /** + * Get the result property: Result produced on success. + * + * @return the result value. + */ + @Generated + public DataGenerationJobResult getResult() { + return this.result; + } + + /** + * Get the status property: Current lifecycle status. + * + * @return the status value. + */ + @Generated + public JobStatus getStatus() { + return this.status; + } + + /** + * Get the error property: Error details — populated only on failure. + * + * @return the error value. + */ + @Generated + public ApiError getError() { + return this.error; + } + + /** + * Get the createdAt property: The timestamp when the job was created, represented in Unix time (seconds since + * January 1, 1970). + * + * @return the createdAt value. + */ + @Generated + public OffsetDateTime getCreatedAt() { + return OffsetDateTime.ofInstant(Instant.ofEpochSecond(this.createdAt), ZoneOffset.UTC); + } + + /** + * Get the finishedAt property: The timestamp when the job was finished, represented in Unix time (seconds since + * January 1, 1970). + * + * @return the finishedAt value. + */ + @Generated + public OffsetDateTime getFinishedAt() { + if (this.finishedAt == null) { + return null; + } + return OffsetDateTime.ofInstant(Instant.ofEpochSecond(this.finishedAt), ZoneOffset.UTC); + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("inputs", this.inputs); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DataGenerationJob from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DataGenerationJob if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the DataGenerationJob. + */ + @Generated + public static DataGenerationJob fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DataGenerationJob deserializedDataGenerationJob = new DataGenerationJob(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedDataGenerationJob.id = reader.getString(); + } else if ("status".equals(fieldName)) { + deserializedDataGenerationJob.status = JobStatus.fromString(reader.getString()); + } else if ("created_at".equals(fieldName)) { + deserializedDataGenerationJob.createdAt = reader.getLong(); + } else if ("inputs".equals(fieldName)) { + deserializedDataGenerationJob.inputs = DataGenerationJobInputs.fromJson(reader); + } else if ("result".equals(fieldName)) { + deserializedDataGenerationJob.result = DataGenerationJobResult.fromJson(reader); + } else if ("error".equals(fieldName)) { + deserializedDataGenerationJob.error = ApiError.fromJson(reader); + } else if ("finished_at".equals(fieldName)) { + deserializedDataGenerationJob.finishedAt = reader.getNullable(JsonReader::getLong); + } else { + reader.skipChildren(); + } + } + + return deserializedDataGenerationJob; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobInputs.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobInputs.java new file mode 100644 index 000000000000..e02a19700f36 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobInputs.java @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Caller-supplied inputs for a data generation job. + */ +@Immutable +public final class DataGenerationJobInputs implements JsonSerializable { + /* + * The display name of the data generation job. + */ + @Generated + private final String name; + + /* + * The sources used for the data generation job. + */ + @Generated + private final List sources; + + /* + * The options for the data generation job. + */ + @Generated + private final DataGenerationJobOptions options; + + /* + * The scenario of the data generation job. Either for fine-tuning or evaluation. + */ + @Generated + private final DataGenerationJobScenario scenario; + + /** + * Creates an instance of DataGenerationJobInputs class. + * + * @param name the name value to set. + * @param sources the sources value to set. + * @param options the options value to set. + * @param scenario the scenario value to set. + */ + @Generated + public DataGenerationJobInputs(String name, List sources, DataGenerationJobOptions options, + DataGenerationJobScenario scenario) { + this.name = name; + this.sources = sources; + this.options = options; + this.scenario = scenario; + } + + /** + * Get the name property: The display name of the data generation job. + * + * @return the name value. + */ + @Generated + public String getName() { + return this.name; + } + + /** + * Get the sources property: The sources used for the data generation job. + * + * @return the sources value. + */ + @Generated + public List getSources() { + return this.sources; + } + + /** + * Get the options property: The options for the data generation job. + * + * @return the options value. + */ + @Generated + public DataGenerationJobOptions getOptions() { + return this.options; + } + + /** + * Get the scenario property: The scenario of the data generation job. Either for fine-tuning or evaluation. + * + * @return the scenario value. + */ + @Generated + public DataGenerationJobScenario getScenario() { + return this.scenario; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeArrayField("sources", this.sources, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("options", this.options); + jsonWriter.writeStringField("scenario", this.scenario == null ? null : this.scenario.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DataGenerationJobInputs from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DataGenerationJobInputs if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the DataGenerationJobInputs. + */ + @Generated + public static DataGenerationJobInputs fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String name = null; + List sources = null; + DataGenerationJobOptions options = null; + DataGenerationJobScenario scenario = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + name = reader.getString(); + } else if ("sources".equals(fieldName)) { + sources = reader.readArray(reader1 -> DataGenerationJobSource.fromJson(reader1)); + } else if ("options".equals(fieldName)) { + options = DataGenerationJobOptions.fromJson(reader); + } else if ("scenario".equals(fieldName)) { + scenario = DataGenerationJobScenario.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + return new DataGenerationJobInputs(name, sources, options, scenario); + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobOptions.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobOptions.java new file mode 100644 index 000000000000..a6486592e0e1 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobOptions.java @@ -0,0 +1,205 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Options for managing data generation jobs. + */ +@Fluent +public class DataGenerationJobOptions implements JsonSerializable { + /* + * The data generation job type. + */ + @Generated + private DataGenerationJobType type = DataGenerationJobType.fromString("DataGenerationJobOptions"); + + /* + * Maximum number of samples to generate. + */ + @Generated + private final int maxSamples; + + /* + * The proportion of the generated data to be used for training when the data is used for fine-tuning. The rest will + * be used for validation. Value should be between 0 and 1. + */ + @Generated + private Double trainSplit; + + /* + * The LLM model options. + */ + @Generated + private DataGenerationModelOptions modelOptions; + + /** + * Creates an instance of DataGenerationJobOptions class. + * + * @param maxSamples the maxSamples value to set. + */ + @Generated + public DataGenerationJobOptions(int maxSamples) { + this.maxSamples = maxSamples; + } + + /** + * Get the type property: The data generation job type. + * + * @return the type value. + */ + @Generated + public DataGenerationJobType getType() { + return this.type; + } + + /** + * Get the maxSamples property: Maximum number of samples to generate. + * + * @return the maxSamples value. + */ + @Generated + public int getMaxSamples() { + return this.maxSamples; + } + + /** + * Get the trainSplit property: The proportion of the generated data to be used for training when the data is used + * for fine-tuning. The rest will be used for validation. Value should be between 0 and 1. + * + * @return the trainSplit value. + */ + @Generated + public Double getTrainSplit() { + return this.trainSplit; + } + + /** + * Set the trainSplit property: The proportion of the generated data to be used for training when the data is used + * for fine-tuning. The rest will be used for validation. Value should be between 0 and 1. + * + * @param trainSplit the trainSplit value to set. + * @return the DataGenerationJobOptions object itself. + */ + @Generated + public DataGenerationJobOptions setTrainSplit(Double trainSplit) { + this.trainSplit = trainSplit; + return this; + } + + /** + * Get the modelOptions property: The LLM model options. + * + * @return the modelOptions value. + */ + @Generated + public DataGenerationModelOptions getModelOptions() { + return this.modelOptions; + } + + /** + * Set the modelOptions property: The LLM model options. + * + * @param modelOptions the modelOptions value to set. + * @return the DataGenerationJobOptions object itself. + */ + @Generated + public DataGenerationJobOptions setModelOptions(DataGenerationModelOptions modelOptions) { + this.modelOptions = modelOptions; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeIntField("max_samples", this.maxSamples); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeNumberField("train_split", this.trainSplit); + jsonWriter.writeJsonField("model_options", this.modelOptions); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DataGenerationJobOptions from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DataGenerationJobOptions if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the DataGenerationJobOptions. + */ + @Generated + public static DataGenerationJobOptions fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("type".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("simple_qna".equals(discriminatorValue)) { + return SimpleQnADataGenerationJobOptions.fromJson(readerToUse.reset()); + } else if ("traces".equals(discriminatorValue)) { + return TracesDataGenerationJobOptions.fromJson(readerToUse.reset()); + } else if ("tool_use".equals(discriminatorValue)) { + return ToolUseFineTuningDataGenerationJobOptions.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + @Generated + static DataGenerationJobOptions fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + int maxSamples = 0; + DataGenerationJobType type = null; + Double trainSplit = null; + DataGenerationModelOptions modelOptions = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("max_samples".equals(fieldName)) { + maxSamples = reader.getInt(); + } else if ("type".equals(fieldName)) { + type = DataGenerationJobType.fromString(reader.getString()); + } else if ("train_split".equals(fieldName)) { + trainSplit = reader.getNullable(JsonReader::getDouble); + } else if ("model_options".equals(fieldName)) { + modelOptions = DataGenerationModelOptions.fromJson(reader); + } else { + reader.skipChildren(); + } + } + DataGenerationJobOptions deserializedDataGenerationJobOptions = new DataGenerationJobOptions(maxSamples); + deserializedDataGenerationJobOptions.type = type; + deserializedDataGenerationJobOptions.trainSplit = trainSplit; + deserializedDataGenerationJobOptions.modelOptions = modelOptions; + + return deserializedDataGenerationJobOptions; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobOutput.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobOutput.java new file mode 100644 index 000000000000..da6277d1587e --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobOutput.java @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Output information for a data generation job. + */ +@Immutable +public class DataGenerationJobOutput implements JsonSerializable { + /* + * The type of the output. + */ + @Generated + private DataGenerationJobOutputType type = DataGenerationJobOutputType.fromString("DataGenerationJobOutput"); + + /** + * Creates an instance of DataGenerationJobOutput class. + */ + @Generated + protected DataGenerationJobOutput() { + } + + /** + * Get the type property: The type of the output. + * + * @return the type value. + */ + @Generated + public DataGenerationJobOutputType getType() { + return this.type; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DataGenerationJobOutput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DataGenerationJobOutput if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the DataGenerationJobOutput. + */ + @Generated + public static DataGenerationJobOutput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("type".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("file".equals(discriminatorValue)) { + return FileDataGenerationJobOutput.fromJson(readerToUse.reset()); + } else if ("dataset".equals(discriminatorValue)) { + return DatasetDataGenerationJobOutput.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + @Generated + static DataGenerationJobOutput fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DataGenerationJobOutput deserializedDataGenerationJobOutput = new DataGenerationJobOutput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedDataGenerationJobOutput.type + = DataGenerationJobOutputType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedDataGenerationJobOutput; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobOutputType.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobOutputType.java new file mode 100644 index 000000000000..467ee3e86f36 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobOutputType.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The supported output file types for a data generation job. + */ +public final class DataGenerationJobOutputType extends ExpandableStringEnum { + /** + * The generated data is an Azure OpenAI File. + */ + @Generated + public static final DataGenerationJobOutputType FILE = fromString("file"); + + /** + * The generated data is a Dataset. + */ + @Generated + public static final DataGenerationJobOutputType DATASET = fromString("dataset"); + + /** + * Creates a new instance of DataGenerationJobOutputType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Generated + @Deprecated + public DataGenerationJobOutputType() { + } + + /** + * Creates or finds a DataGenerationJobOutputType from its string representation. + * + * @param name a name to look for. + * @return the corresponding DataGenerationJobOutputType. + */ + @Generated + public static DataGenerationJobOutputType fromString(String name) { + return fromString(name, DataGenerationJobOutputType.class); + } + + /** + * Gets known DataGenerationJobOutputType values. + * + * @return known DataGenerationJobOutputType values. + */ + @Generated + public static Collection values() { + return values(DataGenerationJobOutputType.class); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobResult.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobResult.java new file mode 100644 index 000000000000..20bc30278962 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobResult.java @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Result produced by a successful data generation job. + */ +@Immutable +public final class DataGenerationJobResult implements JsonSerializable { + /* + * The final job outputs: Azure OpenAI files for fine-tuning, or datasets for evaluation. + */ + @Generated + private List outputs; + + /* + * The number of samples actually generated. + */ + @Generated + private final int generatedSamples; + + /* + * The token usage information for the data generation job. + */ + @Generated + private DataGenerationTokenUsage tokenUsage; + + /** + * Creates an instance of DataGenerationJobResult class. + * + * @param generatedSamples the generatedSamples value to set. + */ + @Generated + private DataGenerationJobResult(int generatedSamples) { + this.generatedSamples = generatedSamples; + } + + /** + * Get the outputs property: The final job outputs: Azure OpenAI files for fine-tuning, or datasets for evaluation. + * + * @return the outputs value. + */ + @Generated + public List getOutputs() { + return this.outputs; + } + + /** + * Get the generatedSamples property: The number of samples actually generated. + * + * @return the generatedSamples value. + */ + @Generated + public int getGeneratedSamples() { + return this.generatedSamples; + } + + /** + * Get the tokenUsage property: The token usage information for the data generation job. + * + * @return the tokenUsage value. + */ + @Generated + public DataGenerationTokenUsage getTokenUsage() { + return this.tokenUsage; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeIntField("generated_samples", this.generatedSamples); + jsonWriter.writeArrayField("outputs", this.outputs, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("token_usage", this.tokenUsage); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DataGenerationJobResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DataGenerationJobResult if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the DataGenerationJobResult. + */ + @Generated + public static DataGenerationJobResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + int generatedSamples = 0; + List outputs = null; + DataGenerationTokenUsage tokenUsage = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("generated_samples".equals(fieldName)) { + generatedSamples = reader.getInt(); + } else if ("outputs".equals(fieldName)) { + outputs = reader.readArray(reader1 -> DataGenerationJobOutput.fromJson(reader1)); + } else if ("token_usage".equals(fieldName)) { + tokenUsage = DataGenerationTokenUsage.fromJson(reader); + } else { + reader.skipChildren(); + } + } + DataGenerationJobResult deserializedDataGenerationJobResult = new DataGenerationJobResult(generatedSamples); + deserializedDataGenerationJobResult.outputs = outputs; + deserializedDataGenerationJobResult.tokenUsage = tokenUsage; + + return deserializedDataGenerationJobResult; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobScenario.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobScenario.java new file mode 100644 index 000000000000..5add7ccb81c2 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobScenario.java @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The supported scenarios for a data generation job. + */ +public final class DataGenerationJobScenario extends ExpandableStringEnum { + /** + * Supervised Fine-tuning scenario. + */ + @Generated + public static final DataGenerationJobScenario SUPERVISED_FINETUNING = fromString("supervised_finetuning"); + + /** + * Reinforcement Fine-tuning scenario. + */ + @Generated + public static final DataGenerationJobScenario REINFORCEMENT_FINETUNING = fromString("reinforcement_finetuning"); + + /** + * Evaluation scenario. + */ + @Generated + public static final DataGenerationJobScenario EVALUATION = fromString("evaluation"); + + /** + * Creates a new instance of DataGenerationJobScenario value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Generated + @Deprecated + public DataGenerationJobScenario() { + } + + /** + * Creates or finds a DataGenerationJobScenario from its string representation. + * + * @param name a name to look for. + * @return the corresponding DataGenerationJobScenario. + */ + @Generated + public static DataGenerationJobScenario fromString(String name) { + return fromString(name, DataGenerationJobScenario.class); + } + + /** + * Gets known DataGenerationJobScenario values. + * + * @return known DataGenerationJobScenario values. + */ + @Generated + public static Collection values() { + return values(DataGenerationJobScenario.class); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobSource.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobSource.java new file mode 100644 index 000000000000..a2c831af3582 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobSource.java @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The base source model for data generation jobs. + */ +@Fluent +public class DataGenerationJobSource implements JsonSerializable { + /* + * The type of source. + */ + @Generated + private DataGenerationJobSourceType type = DataGenerationJobSourceType.fromString("DataGenerationJobSource"); + + /* + * Optional description of what this source represents — helps the pipeline interpret its content (e.g., 'Company + * refund policy document' or 'Describes the agent's core capabilities'). + */ + @Generated + private String description; + + /** + * Creates an instance of DataGenerationJobSource class. + */ + @Generated + public DataGenerationJobSource() { + } + + /** + * Get the type property: The type of source. + * + * @return the type value. + */ + @Generated + public DataGenerationJobSourceType getType() { + return this.type; + } + + /** + * Get the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @param description the description value to set. + * @return the DataGenerationJobSource object itself. + */ + @Generated + public DataGenerationJobSource setDescription(String description) { + this.description = description; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("description", this.description); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DataGenerationJobSource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DataGenerationJobSource if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the DataGenerationJobSource. + */ + @Generated + public static DataGenerationJobSource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("type".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("prompt".equals(discriminatorValue)) { + return PromptDataGenerationJobSource.fromJson(readerToUse.reset()); + } else if ("agent".equals(discriminatorValue)) { + return AgentDataGenerationJobSource.fromJson(readerToUse.reset()); + } else if ("traces".equals(discriminatorValue)) { + return TracesDataGenerationJobSource.fromJson(readerToUse.reset()); + } else if ("dataset".equals(discriminatorValue)) { + return DatasetDataGenerationJobSource.fromJson(readerToUse.reset()); + } else if ("file".equals(discriminatorValue)) { + return FileDataGenerationJobSource.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + @Generated + static DataGenerationJobSource fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DataGenerationJobSource deserializedDataGenerationJobSource = new DataGenerationJobSource(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedDataGenerationJobSource.type + = DataGenerationJobSourceType.fromString(reader.getString()); + } else if ("description".equals(fieldName)) { + deserializedDataGenerationJobSource.description = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedDataGenerationJobSource; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobSourceType.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobSourceType.java new file mode 100644 index 000000000000..ba7eced697c9 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobSourceType.java @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The supported source types for data generation jobs. + */ +public final class DataGenerationJobSourceType extends ExpandableStringEnum { + /** + * Prompt source — inline text provided by the user. + */ + @Generated + public static final DataGenerationJobSourceType PROMPT = fromString("prompt"); + + /** + * Agent source — references an agent. + */ + @Generated + public static final DataGenerationJobSourceType AGENT = fromString("agent"); + + /** + * Traces source — conversation traces from Application Insights. + */ + @Generated + public static final DataGenerationJobSourceType TRACES = fromString("traces"); + + /** + * Dataset source — reference to a dataset. + */ + @Generated + public static final DataGenerationJobSourceType DATASET = fromString("dataset"); + + /** + * File source — Azure OpenAI file. + */ + @Generated + public static final DataGenerationJobSourceType FILE = fromString("file"); + + /** + * Creates a new instance of DataGenerationJobSourceType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Generated + @Deprecated + public DataGenerationJobSourceType() { + } + + /** + * Creates or finds a DataGenerationJobSourceType from its string representation. + * + * @param name a name to look for. + * @return the corresponding DataGenerationJobSourceType. + */ + @Generated + public static DataGenerationJobSourceType fromString(String name) { + return fromString(name, DataGenerationJobSourceType.class); + } + + /** + * Gets known DataGenerationJobSourceType values. + * + * @return known DataGenerationJobSourceType values. + */ + @Generated + public static Collection values() { + return values(DataGenerationJobSourceType.class); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobType.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobType.java new file mode 100644 index 000000000000..7b898ebb0501 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationJobType.java @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The supported data generation job types. + */ +public final class DataGenerationJobType extends ExpandableStringEnum { + /** + * Simple question and answers between user and agent. + */ + @Generated + public static final DataGenerationJobType SIMPLE_QNA = fromString("simple_qna"); + + /** + * Single turn query and response from agent traces. + */ + @Generated + public static final DataGenerationJobType TRACES = fromString("traces"); + + /** + * Tool calling conversation between user and agent. + */ + @Generated + public static final DataGenerationJobType TOOL_USE = fromString("tool_use"); + + /** + * Creates a new instance of DataGenerationJobType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Generated + @Deprecated + public DataGenerationJobType() { + } + + /** + * Creates or finds a DataGenerationJobType from its string representation. + * + * @param name a name to look for. + * @return the corresponding DataGenerationJobType. + */ + @Generated + public static DataGenerationJobType fromString(String name) { + return fromString(name, DataGenerationJobType.class); + } + + /** + * Gets known DataGenerationJobType values. + * + * @return known DataGenerationJobType values. + */ + @Generated + public static Collection values() { + return values(DataGenerationJobType.class); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationModelOptions.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationModelOptions.java new file mode 100644 index 000000000000..ed49d79c7677 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationModelOptions.java @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * LLM model options for data generation jobs. + */ +@Immutable +public final class DataGenerationModelOptions implements JsonSerializable { + /* + * Base model name used to generate data. + */ + @Generated + private final String model; + + /** + * Creates an instance of DataGenerationModelOptions class. + * + * @param model the model value to set. + */ + @Generated + public DataGenerationModelOptions(String model) { + this.model = model; + } + + /** + * Get the model property: Base model name used to generate data. + * + * @return the model value. + */ + @Generated + public String getModel() { + return this.model; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("model", this.model); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DataGenerationModelOptions from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DataGenerationModelOptions if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the DataGenerationModelOptions. + */ + @Generated + public static DataGenerationModelOptions fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String model = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("model".equals(fieldName)) { + model = reader.getString(); + } else { + reader.skipChildren(); + } + } + return new DataGenerationModelOptions(model); + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationTokenUsage.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationTokenUsage.java new file mode 100644 index 000000000000..3bc928526714 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DataGenerationTokenUsage.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Token usage information for a data generation job. + */ +@Immutable +public final class DataGenerationTokenUsage implements JsonSerializable { + /* + * The number of prompt tokens used. + */ + @Generated + private Long promptTokens; + + /* + * The number of completion tokens generated. + */ + @Generated + private Long completionTokens; + + /* + * Total number of tokens used. + */ + @Generated + private Long totalTokens; + + /** + * Creates an instance of DataGenerationTokenUsage class. + */ + @Generated + private DataGenerationTokenUsage() { + } + + /** + * Get the promptTokens property: The number of prompt tokens used. + * + * @return the promptTokens value. + */ + @Generated + public Long getPromptTokens() { + return this.promptTokens; + } + + /** + * Get the completionTokens property: The number of completion tokens generated. + * + * @return the completionTokens value. + */ + @Generated + public Long getCompletionTokens() { + return this.completionTokens; + } + + /** + * Get the totalTokens property: Total number of tokens used. + * + * @return the totalTokens value. + */ + @Generated + public Long getTotalTokens() { + return this.totalTokens; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DataGenerationTokenUsage from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DataGenerationTokenUsage if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the DataGenerationTokenUsage. + */ + @Generated + public static DataGenerationTokenUsage fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DataGenerationTokenUsage deserializedDataGenerationTokenUsage = new DataGenerationTokenUsage(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("prompt_tokens".equals(fieldName)) { + deserializedDataGenerationTokenUsage.promptTokens = reader.getNullable(JsonReader::getLong); + } else if ("completion_tokens".equals(fieldName)) { + deserializedDataGenerationTokenUsage.completionTokens = reader.getNullable(JsonReader::getLong); + } else if ("total_tokens".equals(fieldName)) { + deserializedDataGenerationTokenUsage.totalTokens = reader.getNullable(JsonReader::getLong); + } else { + reader.skipChildren(); + } + } + + return deserializedDataGenerationTokenUsage; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DatasetDataGenerationJobOutput.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DatasetDataGenerationJobOutput.java new file mode 100644 index 000000000000..d03c09a1060c --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DatasetDataGenerationJobOutput.java @@ -0,0 +1,178 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.Map; + +/** + * Dataset output for a data generation job. + */ +@Immutable +public final class DatasetDataGenerationJobOutput extends DataGenerationJobOutput { + /* + * The type of the output. + */ + @Generated + private DataGenerationJobOutputType type = DataGenerationJobOutputType.DATASET; + + /* + * The id of the output dataset created. + */ + @Generated + private String id; + + /* + * The name of the output dataset and can be optionally set during job creation time. + */ + @Generated + private String name; + + /* + * The version of the output dataset. + */ + @Generated + private String version; + + /* + * Description of the output dataset and can be optionally set during job creation time. + */ + @Generated + private String description; + + /* + * Tag dictionary of the output dataset and can be optionally set during job creation time. + */ + @Generated + private Map tags; + + /** + * Creates an instance of DatasetDataGenerationJobOutput class. + */ + @Generated + private DatasetDataGenerationJobOutput() { + } + + /** + * Get the type property: The type of the output. + * + * @return the type value. + */ + @Generated + @Override + public DataGenerationJobOutputType getType() { + return this.type; + } + + /** + * Get the id property: The id of the output dataset created. + * + * @return the id value. + */ + @Generated + public String getId() { + return this.id; + } + + /** + * Get the name property: The name of the output dataset and can be optionally set during job creation time. + * + * @return the name value. + */ + @Generated + public String getName() { + return this.name; + } + + /** + * Get the version property: The version of the output dataset. + * + * @return the version value. + */ + @Generated + public String getVersion() { + return this.version; + } + + /** + * Get the description property: Description of the output dataset and can be optionally set during job creation + * time. + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Get the tags property: Tag dictionary of the output dataset and can be optionally set during job creation time. + * + * @return the tags value. + */ + @Generated + public Map getTags() { + return this.tags; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("description", this.description); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DatasetDataGenerationJobOutput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DatasetDataGenerationJobOutput if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the DatasetDataGenerationJobOutput. + */ + @Generated + public static DatasetDataGenerationJobOutput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DatasetDataGenerationJobOutput deserializedDatasetDataGenerationJobOutput + = new DatasetDataGenerationJobOutput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedDatasetDataGenerationJobOutput.type + = DataGenerationJobOutputType.fromString(reader.getString()); + } else if ("id".equals(fieldName)) { + deserializedDatasetDataGenerationJobOutput.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedDatasetDataGenerationJobOutput.name = reader.getString(); + } else if ("version".equals(fieldName)) { + deserializedDatasetDataGenerationJobOutput.version = reader.getString(); + } else if ("description".equals(fieldName)) { + deserializedDatasetDataGenerationJobOutput.description = reader.getString(); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedDatasetDataGenerationJobOutput.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedDatasetDataGenerationJobOutput; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DatasetDataGenerationJobSource.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DatasetDataGenerationJobSource.java new file mode 100644 index 000000000000..d670e897fc07 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DatasetDataGenerationJobSource.java @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Dataset source for data generation jobs — reference to a dataset. + */ +@Fluent +public final class DatasetDataGenerationJobSource extends DataGenerationJobSource { + /* + * The type of source. + */ + @Generated + private DataGenerationJobSourceType type = DataGenerationJobSourceType.DATASET; + + /* + * Optional description of what this source represents — helps the pipeline interpret its content (e.g., 'Company + * refund policy document' or 'Describes the agent's core capabilities'). + */ + @Generated + private String description; + + /* + * The name of the dataset. + */ + @Generated + private final String name; + + /* + * The version of the dataset. If not specified, the latest version is used. + */ + @Generated + private String version; + + /** + * Creates an instance of DatasetDataGenerationJobSource class. + * + * @param name the name value to set. + */ + @Generated + public DatasetDataGenerationJobSource(String name) { + this.name = name; + } + + /** + * Get the type property: The type of source. + * + * @return the type value. + */ + @Generated + @Override + public DataGenerationJobSourceType getType() { + return this.type; + } + + /** + * Get the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @param description the description value to set. + * @return the DatasetDataGenerationJobSource object itself. + */ + @Generated + public DatasetDataGenerationJobSource setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the name property: The name of the dataset. + * + * @return the name value. + */ + @Generated + public String getName() { + return this.name; + } + + /** + * Get the version property: The version of the dataset. If not specified, the latest version is used. + * + * @return the version value. + */ + @Generated + public String getVersion() { + return this.version; + } + + /** + * Set the version property: The version of the dataset. If not specified, the latest version is used. + * + * @param version the version value to set. + * @return the DatasetDataGenerationJobSource object itself. + */ + @Generated + public DatasetDataGenerationJobSource setVersion(String version) { + this.version = version; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("description", this.description); + jsonWriter.writeStringField("version", this.version); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DatasetDataGenerationJobSource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DatasetDataGenerationJobSource if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the DatasetDataGenerationJobSource. + */ + @Generated + public static DatasetDataGenerationJobSource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String name = null; + DataGenerationJobSourceType type = DataGenerationJobSourceType.DATASET; + String description = null; + String version = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + name = reader.getString(); + } else if ("type".equals(fieldName)) { + type = DataGenerationJobSourceType.fromString(reader.getString()); + } else if ("description".equals(fieldName)) { + description = reader.getString(); + } else if ("version".equals(fieldName)) { + version = reader.getString(); + } else { + reader.skipChildren(); + } + } + DatasetDataGenerationJobSource deserializedDatasetDataGenerationJobSource + = new DatasetDataGenerationJobSource(name); + deserializedDatasetDataGenerationJobSource.type = type; + deserializedDatasetDataGenerationJobSource.description = description; + deserializedDatasetDataGenerationJobSource.version = version; + + return deserializedDatasetDataGenerationJobSource; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DatasetEvaluatorGenerationJobSource.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DatasetEvaluatorGenerationJobSource.java new file mode 100644 index 000000000000..bd62e52828b2 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DatasetEvaluatorGenerationJobSource.java @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Dataset source for evaluator generation jobs — reference to a dataset. + */ +@Fluent +public final class DatasetEvaluatorGenerationJobSource extends EvaluatorGenerationJobSource { + /* + * The type of source. + */ + @Generated + private EvaluatorGenerationJobSourceType type = EvaluatorGenerationJobSourceType.DATASET; + + /* + * Optional description of what this source represents — helps the pipeline interpret its content (e.g., 'Company + * refund policy document' or 'Describes the agent's core capabilities'). + */ + @Generated + private String description; + + /* + * The name of the dataset. + */ + @Generated + private final String name; + + /* + * The version of the dataset. If not specified, the latest version is used. + */ + @Generated + private String version; + + /** + * Creates an instance of DatasetEvaluatorGenerationJobSource class. + * + * @param name the name value to set. + */ + @Generated + public DatasetEvaluatorGenerationJobSource(String name) { + this.name = name; + } + + /** + * Get the type property: The type of source. + * + * @return the type value. + */ + @Generated + @Override + public EvaluatorGenerationJobSourceType getType() { + return this.type; + } + + /** + * Get the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @param description the description value to set. + * @return the DatasetEvaluatorGenerationJobSource object itself. + */ + @Generated + public DatasetEvaluatorGenerationJobSource setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the name property: The name of the dataset. + * + * @return the name value. + */ + @Generated + public String getName() { + return this.name; + } + + /** + * Get the version property: The version of the dataset. If not specified, the latest version is used. + * + * @return the version value. + */ + @Generated + public String getVersion() { + return this.version; + } + + /** + * Set the version property: The version of the dataset. If not specified, the latest version is used. + * + * @param version the version value to set. + * @return the DatasetEvaluatorGenerationJobSource object itself. + */ + @Generated + public DatasetEvaluatorGenerationJobSource setVersion(String version) { + this.version = version; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("description", this.description); + jsonWriter.writeStringField("version", this.version); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DatasetEvaluatorGenerationJobSource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DatasetEvaluatorGenerationJobSource if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the DatasetEvaluatorGenerationJobSource. + */ + @Generated + public static DatasetEvaluatorGenerationJobSource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String name = null; + EvaluatorGenerationJobSourceType type = EvaluatorGenerationJobSourceType.DATASET; + String description = null; + String version = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + name = reader.getString(); + } else if ("type".equals(fieldName)) { + type = EvaluatorGenerationJobSourceType.fromString(reader.getString()); + } else if ("description".equals(fieldName)) { + description = reader.getString(); + } else if ("version".equals(fieldName)) { + version = reader.getString(); + } else { + reader.skipChildren(); + } + } + DatasetEvaluatorGenerationJobSource deserializedDatasetEvaluatorGenerationJobSource + = new DatasetEvaluatorGenerationJobSource(name); + deserializedDatasetEvaluatorGenerationJobSource.type = type; + deserializedDatasetEvaluatorGenerationJobSource.description = description; + deserializedDatasetEvaluatorGenerationJobSource.version = version; + + return deserializedDatasetEvaluatorGenerationJobSource; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DatasetReference.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DatasetReference.java new file mode 100644 index 000000000000..688759dfb392 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/DatasetReference.java @@ -0,0 +1,105 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Reference to a versioned Foundry Dataset. + */ +@Immutable +public final class DatasetReference implements JsonSerializable { + /* + * Dataset name. + */ + @Generated + private final String name; + + /* + * Dataset version. + */ + @Generated + private final String version; + + /** + * Creates an instance of DatasetReference class. + * + * @param name the name value to set. + * @param version the version value to set. + */ + @Generated + private DatasetReference(String name, String version) { + this.name = name; + this.version = version; + } + + /** + * Get the name property: Dataset name. + * + * @return the name value. + */ + @Generated + public String getName() { + return this.name; + } + + /** + * Get the version property: Dataset version. + * + * @return the version value. + */ + @Generated + public String getVersion() { + return this.version; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("version", this.version); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DatasetReference from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DatasetReference if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the DatasetReference. + */ + @Generated + public static DatasetReference fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String name = null; + String version = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + name = reader.getString(); + } else if ("version".equals(fieldName)) { + version = reader.getString(); + } else { + reader.skipChildren(); + } + } + return new DatasetReference(name, version); + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorDefinition.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorDefinition.java index 8c9db84a7c82..aaf72ab0ea04 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorDefinition.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorDefinition.java @@ -162,6 +162,8 @@ public static EvaluatorDefinition fromJson(JsonReader jsonReader) throws IOExcep return CodeBasedEvaluatorDefinition.fromJson(readerToUse.reset()); } else if ("prompt".equals(discriminatorValue)) { return PromptBasedEvaluatorDefinition.fromJson(readerToUse.reset()); + } else if ("rubrics".equals(discriminatorValue)) { + return RubricBasedEvaluatorDefinition.fromJson(readerToUse.reset()); } else { return fromJsonKnownDiscriminator(readerToUse.reset()); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorDefinitionType.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorDefinitionType.java index 9e2d5501690d..fef367fb03ec 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorDefinitionType.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorDefinitionType.java @@ -72,4 +72,11 @@ public static EvaluatorDefinitionType fromString(String name) { public static Collection values() { return values(EvaluatorDefinitionType.class); } + + /** + * Rubric-based evaluator definition. Stores rubric criteria for both quality and safety evaluators. Can be created + * via the generate API or manually via createVersion. + */ + @Generated + public static final EvaluatorDefinitionType RUBRICS = fromString("rubrics"); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationArtifacts.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationArtifacts.java new file mode 100644 index 000000000000..30d05d538176 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationArtifacts.java @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Service-managed provenance artifacts produced by an evaluator generation job. Present only on EvaluatorVersion + * resources created via the generation pipeline. The combined-JSONL Foundry Dataset is read-only and resolves to a + * versioned dataset in a service-reserved namespace. + */ +@Immutable +public final class EvaluatorGenerationArtifacts implements JsonSerializable { + /* + * Reference to the single Foundry Dataset (one combined JSONL file, version-aligned to `EvaluatorVersion.version`) + * holding all artifacts produced by the generation pipeline. Each row in the JSONL carries a `kind` field + * discriminating its content (e.g. `spec`, `tools`, `context`). + */ + @Generated + private final DatasetReference dataset; + + /* + * The kinds of rows present in `dataset`. Always contains `"spec"` (the generated evaluation specification, a + * Markdown document describing what the evaluator measures). May additionally contain `"tools"` (when the + * generation pipeline produced or inferred OpenAI tool schemas) and/or `"context"` (when supplementary materials + * such as file uploads or trace samples were used during generation). + */ + @Generated + private final List kinds; + + /** + * Creates an instance of EvaluatorGenerationArtifacts class. + * + * @param dataset the dataset value to set. + * @param kinds the kinds value to set. + */ + @Generated + private EvaluatorGenerationArtifacts(DatasetReference dataset, List kinds) { + this.dataset = dataset; + this.kinds = kinds; + } + + /** + * Get the dataset property: Reference to the single Foundry Dataset (one combined JSONL file, version-aligned to + * `EvaluatorVersion.version`) holding all artifacts produced by the generation pipeline. Each row in the JSONL + * carries a `kind` field discriminating its content (e.g. `spec`, `tools`, `context`). + * + * @return the dataset value. + */ + @Generated + public DatasetReference getDataset() { + return this.dataset; + } + + /** + * Get the kinds property: The kinds of rows present in `dataset`. Always contains `"spec"` (the generated + * evaluation specification, a Markdown document describing what the evaluator measures). May additionally contain + * `"tools"` (when the generation pipeline produced or inferred OpenAI tool schemas) and/or `"context"` (when + * supplementary materials such as file uploads or trace samples were used during generation). + * + * @return the kinds value. + */ + @Generated + public List getKinds() { + return this.kinds; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("dataset", this.dataset); + jsonWriter.writeArrayField("kinds", this.kinds, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EvaluatorGenerationArtifacts from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EvaluatorGenerationArtifacts if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the EvaluatorGenerationArtifacts. + */ + @Generated + public static EvaluatorGenerationArtifacts fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DatasetReference dataset = null; + List kinds = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("dataset".equals(fieldName)) { + dataset = DatasetReference.fromJson(reader); + } else if ("kinds".equals(fieldName)) { + kinds = reader.readArray(reader1 -> reader1.getString()); + } else { + reader.skipChildren(); + } + } + return new EvaluatorGenerationArtifacts(dataset, kinds); + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationInputs.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationInputs.java new file mode 100644 index 000000000000..a830bdea9c3c --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationInputs.java @@ -0,0 +1,202 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Caller-supplied inputs for an evaluator generation job. + */ +@Fluent +public final class EvaluatorGenerationInputs implements JsonSerializable { + /* + * Display name for this generation job. + */ + @Generated + private final String name; + + /* + * Source materials for generation — agent descriptions, prompts, traces, or datasets. Each entry is an + * `EvaluatorGenerationJobSource` variant discriminated by `type`. + */ + @Generated + private final List sources; + + /* + * Category determines the rubric generation focus: 'quality' (default) produces quality-focused rubric criteria, + * 'safety' produces policy-derived safety rubric criteria. Both use the same rubric structure. Singular because + * quality and safety generation are mutually exclusive pipelines — the output EvaluatorVersion.categories is an + * array (e.g., ['agents', 'quality']). + */ + @Generated + private EvaluatorCategory category; + + /* + * The LLM model to use for rubric generation (e.g., 'gpt-4o'). Required — users must provide their own model rather + * than relying on service-owned capacity. + */ + @Generated + private final String model; + + /* + * The evaluator name to create or update. If an evaluator with this name already exists, the service retrieves the + * latest version's criteria as context for improvement. + */ + @Generated + private final String evaluatorName; + + /** + * Creates an instance of EvaluatorGenerationInputs class. + * + * @param name the name value to set. + * @param sources the sources value to set. + * @param model the model value to set. + * @param evaluatorName the evaluatorName value to set. + */ + @Generated + public EvaluatorGenerationInputs(String name, List sources, String model, + String evaluatorName) { + this.name = name; + this.sources = sources; + this.model = model; + this.evaluatorName = evaluatorName; + } + + /** + * Get the name property: Display name for this generation job. + * + * @return the name value. + */ + @Generated + public String getName() { + return this.name; + } + + /** + * Get the sources property: Source materials for generation — agent descriptions, prompts, traces, or datasets. + * Each entry is an `EvaluatorGenerationJobSource` variant discriminated by `type`. + * + * @return the sources value. + */ + @Generated + public List getSources() { + return this.sources; + } + + /** + * Get the category property: Category determines the rubric generation focus: 'quality' (default) produces + * quality-focused rubric criteria, 'safety' produces policy-derived safety rubric criteria. Both use the same + * rubric structure. Singular because quality and safety generation are mutually exclusive pipelines — the output + * EvaluatorVersion.categories is an array (e.g., ['agents', 'quality']). + * + * @return the category value. + */ + @Generated + public EvaluatorCategory getCategory() { + return this.category; + } + + /** + * Set the category property: Category determines the rubric generation focus: 'quality' (default) produces + * quality-focused rubric criteria, 'safety' produces policy-derived safety rubric criteria. Both use the same + * rubric structure. Singular because quality and safety generation are mutually exclusive pipelines — the output + * EvaluatorVersion.categories is an array (e.g., ['agents', 'quality']). + * + * @param category the category value to set. + * @return the EvaluatorGenerationInputs object itself. + */ + @Generated + public EvaluatorGenerationInputs setCategory(EvaluatorCategory category) { + this.category = category; + return this; + } + + /** + * Get the model property: The LLM model to use for rubric generation (e.g., 'gpt-4o'). Required — users must + * provide their own model rather than relying on service-owned capacity. + * + * @return the model value. + */ + @Generated + public String getModel() { + return this.model; + } + + /** + * Get the evaluatorName property: The evaluator name to create or update. If an evaluator with this name already + * exists, the service retrieves the latest version's criteria as context for improvement. + * + * @return the evaluatorName value. + */ + @Generated + public String getEvaluatorName() { + return this.evaluatorName; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeArrayField("sources", this.sources, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("model", this.model); + jsonWriter.writeStringField("evaluator_name", this.evaluatorName); + jsonWriter.writeStringField("category", this.category == null ? null : this.category.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EvaluatorGenerationInputs from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EvaluatorGenerationInputs if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the EvaluatorGenerationInputs. + */ + @Generated + public static EvaluatorGenerationInputs fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String name = null; + List sources = null; + String model = null; + String evaluatorName = null; + EvaluatorCategory category = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + name = reader.getString(); + } else if ("sources".equals(fieldName)) { + sources = reader.readArray(reader1 -> EvaluatorGenerationJobSource.fromJson(reader1)); + } else if ("model".equals(fieldName)) { + model = reader.getString(); + } else if ("evaluator_name".equals(fieldName)) { + evaluatorName = reader.getString(); + } else if ("category".equals(fieldName)) { + category = EvaluatorCategory.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + EvaluatorGenerationInputs deserializedEvaluatorGenerationInputs + = new EvaluatorGenerationInputs(name, sources, model, evaluatorName); + deserializedEvaluatorGenerationInputs.category = category; + + return deserializedEvaluatorGenerationInputs; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJob.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJob.java new file mode 100644 index 000000000000..80e1b06c79af --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJob.java @@ -0,0 +1,228 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.Instant; +import java.time.OffsetDateTime; +import java.time.ZoneOffset; + +/** + * Evaluator Generation Job resource — a long-running job that generates rubric-based evaluator definitions from source + * materials. On success, the result is the persisted EvaluatorVersion. + */ +@Fluent +public final class EvaluatorGenerationJob implements JsonSerializable { + /* + * Server-assigned unique identifier. + */ + @Generated + private String id; + + /* + * Caller-supplied inputs. + */ + @Generated + private EvaluatorGenerationInputs inputs; + + /* + * Result produced on success. + */ + @Generated + private EvaluatorVersion result; + + /* + * Current lifecycle status. + */ + @Generated + private JobStatus status; + + /* + * Error details — populated only on failure. + */ + @Generated + private ApiError error; + + /* + * The timestamp when the job was created, represented in Unix time (seconds since January 1, 1970). + */ + @Generated + private long createdAt; + + /* + * The timestamp when the job finished, represented in Unix time (seconds since January 1, 1970). + */ + @Generated + private Long finishedAt; + + /* + * Token consumption summary. Populated when the job reaches a terminal state. + */ + @Generated + private EvaluatorGenerationTokenUsage usage; + + /** + * Creates an instance of EvaluatorGenerationJob class. + */ + @Generated + public EvaluatorGenerationJob() { + } + + /** + * Get the id property: Server-assigned unique identifier. + * + * @return the id value. + */ + @Generated + public String getId() { + return this.id; + } + + /** + * Get the inputs property: Caller-supplied inputs. + * + * @return the inputs value. + */ + @Generated + public EvaluatorGenerationInputs getInputs() { + return this.inputs; + } + + /** + * Set the inputs property: Caller-supplied inputs. + * + * @param inputs the inputs value to set. + * @return the EvaluatorGenerationJob object itself. + */ + @Generated + public EvaluatorGenerationJob setInputs(EvaluatorGenerationInputs inputs) { + this.inputs = inputs; + return this; + } + + /** + * Get the result property: Result produced on success. + * + * @return the result value. + */ + @Generated + public EvaluatorVersion getResult() { + return this.result; + } + + /** + * Get the status property: Current lifecycle status. + * + * @return the status value. + */ + @Generated + public JobStatus getStatus() { + return this.status; + } + + /** + * Get the error property: Error details — populated only on failure. + * + * @return the error value. + */ + @Generated + public ApiError getError() { + return this.error; + } + + /** + * Get the createdAt property: The timestamp when the job was created, represented in Unix time (seconds since + * January 1, 1970). + * + * @return the createdAt value. + */ + @Generated + public OffsetDateTime getCreatedAt() { + return OffsetDateTime.ofInstant(Instant.ofEpochSecond(this.createdAt), ZoneOffset.UTC); + } + + /** + * Get the finishedAt property: The timestamp when the job finished, represented in Unix time (seconds since January + * 1, 1970). + * + * @return the finishedAt value. + */ + @Generated + public OffsetDateTime getFinishedAt() { + if (this.finishedAt == null) { + return null; + } + return OffsetDateTime.ofInstant(Instant.ofEpochSecond(this.finishedAt), ZoneOffset.UTC); + } + + /** + * Get the usage property: Token consumption summary. Populated when the job reaches a terminal state. + * + * @return the usage value. + */ + @Generated + public EvaluatorGenerationTokenUsage getUsage() { + return this.usage; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("inputs", this.inputs); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EvaluatorGenerationJob from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EvaluatorGenerationJob if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the EvaluatorGenerationJob. + */ + @Generated + public static EvaluatorGenerationJob fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EvaluatorGenerationJob deserializedEvaluatorGenerationJob = new EvaluatorGenerationJob(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedEvaluatorGenerationJob.id = reader.getString(); + } else if ("status".equals(fieldName)) { + deserializedEvaluatorGenerationJob.status = JobStatus.fromString(reader.getString()); + } else if ("created_at".equals(fieldName)) { + deserializedEvaluatorGenerationJob.createdAt = reader.getLong(); + } else if ("inputs".equals(fieldName)) { + deserializedEvaluatorGenerationJob.inputs = EvaluatorGenerationInputs.fromJson(reader); + } else if ("result".equals(fieldName)) { + deserializedEvaluatorGenerationJob.result = EvaluatorVersion.fromJson(reader); + } else if ("error".equals(fieldName)) { + deserializedEvaluatorGenerationJob.error = ApiError.fromJson(reader); + } else if ("finished_at".equals(fieldName)) { + deserializedEvaluatorGenerationJob.finishedAt = reader.getNullable(JsonReader::getLong); + } else if ("usage".equals(fieldName)) { + deserializedEvaluatorGenerationJob.usage = EvaluatorGenerationTokenUsage.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedEvaluatorGenerationJob; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJobSource.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJobSource.java new file mode 100644 index 000000000000..99a3b39cf28c --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJobSource.java @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The base source model for evaluator generation jobs. Polymorphic over `type`. + */ +@Immutable +public class EvaluatorGenerationJobSource implements JsonSerializable { + /* + * The type of source. + */ + @Generated + private EvaluatorGenerationJobSourceType type + = EvaluatorGenerationJobSourceType.fromString("EvaluatorGenerationJobSource"); + + /** + * Creates an instance of EvaluatorGenerationJobSource class. + */ + @Generated + public EvaluatorGenerationJobSource() { + } + + /** + * Get the type property: The type of source. + * + * @return the type value. + */ + @Generated + public EvaluatorGenerationJobSourceType getType() { + return this.type; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EvaluatorGenerationJobSource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EvaluatorGenerationJobSource if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the EvaluatorGenerationJobSource. + */ + @Generated + public static EvaluatorGenerationJobSource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("type".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("prompt".equals(discriminatorValue)) { + return PromptEvaluatorGenerationJobSource.fromJson(readerToUse.reset()); + } else if ("agent".equals(discriminatorValue)) { + return AgentEvaluatorGenerationJobSource.fromJson(readerToUse.reset()); + } else if ("traces".equals(discriminatorValue)) { + return TracesEvaluatorGenerationJobSource.fromJson(readerToUse.reset()); + } else if ("dataset".equals(discriminatorValue)) { + return DatasetEvaluatorGenerationJobSource.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + @Generated + static EvaluatorGenerationJobSource fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EvaluatorGenerationJobSource deserializedEvaluatorGenerationJobSource = new EvaluatorGenerationJobSource(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedEvaluatorGenerationJobSource.type + = EvaluatorGenerationJobSourceType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedEvaluatorGenerationJobSource; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJobSourceType.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJobSourceType.java new file mode 100644 index 000000000000..827c76e67d2e --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJobSourceType.java @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The supported source types for evaluator generation jobs. + */ +public final class EvaluatorGenerationJobSourceType extends ExpandableStringEnum { + /** + * Prompt source — inline text provided by the user. + */ + @Generated + public static final EvaluatorGenerationJobSourceType PROMPT = fromString("prompt"); + + /** + * Agent source — references an agent to fetch instructions and metadata from. + */ + @Generated + public static final EvaluatorGenerationJobSourceType AGENT = fromString("agent"); + + /** + * Traces source — conversation traces from Application Insights. + */ + @Generated + public static final EvaluatorGenerationJobSourceType TRACES = fromString("traces"); + + /** + * Dataset source — reference to a dataset. + */ + @Generated + public static final EvaluatorGenerationJobSourceType DATASET = fromString("dataset"); + + /** + * Creates a new instance of EvaluatorGenerationJobSourceType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Generated + @Deprecated + public EvaluatorGenerationJobSourceType() { + } + + /** + * Creates or finds a EvaluatorGenerationJobSourceType from its string representation. + * + * @param name a name to look for. + * @return the corresponding EvaluatorGenerationJobSourceType. + */ + @Generated + public static EvaluatorGenerationJobSourceType fromString(String name) { + return fromString(name, EvaluatorGenerationJobSourceType.class); + } + + /** + * Gets known EvaluatorGenerationJobSourceType values. + * + * @return known EvaluatorGenerationJobSourceType values. + */ + @Generated + public static Collection values() { + return values(EvaluatorGenerationJobSourceType.class); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationTokenUsage.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationTokenUsage.java new file mode 100644 index 000000000000..a452679c16df --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorGenerationTokenUsage.java @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Token consumption summary for an evaluator generation job. Populated when the job reaches a terminal state. + */ +@Immutable +public final class EvaluatorGenerationTokenUsage implements JsonSerializable { + /* + * Number of input (prompt) tokens consumed. + */ + @Generated + private final long inputTokens; + + /* + * Number of output (completion) tokens generated. + */ + @Generated + private final long outputTokens; + + /* + * Total tokens consumed (input + output). + */ + @Generated + private final long totalTokens; + + /** + * Creates an instance of EvaluatorGenerationTokenUsage class. + * + * @param inputTokens the inputTokens value to set. + * @param outputTokens the outputTokens value to set. + * @param totalTokens the totalTokens value to set. + */ + @Generated + private EvaluatorGenerationTokenUsage(long inputTokens, long outputTokens, long totalTokens) { + this.inputTokens = inputTokens; + this.outputTokens = outputTokens; + this.totalTokens = totalTokens; + } + + /** + * Get the inputTokens property: Number of input (prompt) tokens consumed. + * + * @return the inputTokens value. + */ + @Generated + public long getInputTokens() { + return this.inputTokens; + } + + /** + * Get the outputTokens property: Number of output (completion) tokens generated. + * + * @return the outputTokens value. + */ + @Generated + public long getOutputTokens() { + return this.outputTokens; + } + + /** + * Get the totalTokens property: Total tokens consumed (input + output). + * + * @return the totalTokens value. + */ + @Generated + public long getTotalTokens() { + return this.totalTokens; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeLongField("input_tokens", this.inputTokens); + jsonWriter.writeLongField("output_tokens", this.outputTokens); + jsonWriter.writeLongField("total_tokens", this.totalTokens); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EvaluatorGenerationTokenUsage from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EvaluatorGenerationTokenUsage if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the EvaluatorGenerationTokenUsage. + */ + @Generated + public static EvaluatorGenerationTokenUsage fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + long inputTokens = 0L; + long outputTokens = 0L; + long totalTokens = 0L; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("input_tokens".equals(fieldName)) { + inputTokens = reader.getLong(); + } else if ("output_tokens".equals(fieldName)) { + outputTokens = reader.getLong(); + } else if ("total_tokens".equals(fieldName)) { + totalTokens = reader.getLong(); + } else { + reader.skipChildren(); + } + } + return new EvaluatorGenerationTokenUsage(inputTokens, outputTokens, totalTokens); + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorVersion.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorVersion.java index 025fb0f18566..678deb89fc14 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorVersion.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/EvaluatorVersion.java @@ -335,6 +335,7 @@ public static EvaluatorVersion fromJson(JsonReader jsonReader) throws IOExceptio String version = null; String displayName = null; Map metadata = null; + EvaluatorGenerationArtifacts generationArtifacts = null; String id = null; String description = null; Map tags = null; @@ -363,6 +364,8 @@ public static EvaluatorVersion fromJson(JsonReader jsonReader) throws IOExceptio displayName = reader.getString(); } else if ("metadata".equals(fieldName)) { metadata = reader.readMap(reader1 -> reader1.getString()); + } else if ("generation_artifacts".equals(fieldName)) { + generationArtifacts = EvaluatorGenerationArtifacts.fromJson(reader); } else if ("id".equals(fieldName)) { id = reader.getString(); } else if ("description".equals(fieldName)) { @@ -381,10 +384,30 @@ public static EvaluatorVersion fromJson(JsonReader jsonReader) throws IOExceptio deserializedEvaluatorVersion.version = version; deserializedEvaluatorVersion.displayName = displayName; deserializedEvaluatorVersion.metadata = metadata; + deserializedEvaluatorVersion.generationArtifacts = generationArtifacts; deserializedEvaluatorVersion.id = id; deserializedEvaluatorVersion.description = description; deserializedEvaluatorVersion.tags = tags; return deserializedEvaluatorVersion; }); } + + /* + * Provenance artifacts from the generation pipeline. Read-only; present only on evaluator versions created via an + * EvaluatorGenerationJob. Each artifact resolves to a versioned Foundry Dataset. + */ + @Generated + private EvaluatorGenerationArtifacts generationArtifacts; + + /** + * Get the generationArtifacts property: Provenance artifacts from the generation pipeline. Read-only; present only + * on evaluator versions created via an EvaluatorGenerationJob. Each artifact resolves to a versioned Foundry + * Dataset. + * + * @return the generationArtifacts value. + */ + @Generated + public EvaluatorGenerationArtifacts getGenerationArtifacts() { + return this.generationArtifacts; + } } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/FileDataGenerationJobOutput.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/FileDataGenerationJobOutput.java new file mode 100644 index 000000000000..8558032a66ea --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/FileDataGenerationJobOutput.java @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Azure OpenAI file output for a data generation job. + */ +@Immutable +public final class FileDataGenerationJobOutput extends DataGenerationJobOutput { + /* + * The type of the output. + */ + @Generated + private DataGenerationJobOutputType type = DataGenerationJobOutputType.FILE; + + /* + * The id of the output Azure OpenAI file. + */ + @Generated + private String id; + + /* + * The filename of the output Azure OpenAI file. + */ + @Generated + private String filename; + + /** + * Creates an instance of FileDataGenerationJobOutput class. + */ + @Generated + private FileDataGenerationJobOutput() { + } + + /** + * Get the type property: The type of the output. + * + * @return the type value. + */ + @Generated + @Override + public DataGenerationJobOutputType getType() { + return this.type; + } + + /** + * Get the id property: The id of the output Azure OpenAI file. + * + * @return the id value. + */ + @Generated + public String getId() { + return this.id; + } + + /** + * Get the filename property: The filename of the output Azure OpenAI file. + * + * @return the filename value. + */ + @Generated + public String getFilename() { + return this.filename; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FileDataGenerationJobOutput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FileDataGenerationJobOutput if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the FileDataGenerationJobOutput. + */ + @Generated + public static FileDataGenerationJobOutput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FileDataGenerationJobOutput deserializedFileDataGenerationJobOutput = new FileDataGenerationJobOutput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedFileDataGenerationJobOutput.id = reader.getString(); + } else if ("filename".equals(fieldName)) { + deserializedFileDataGenerationJobOutput.filename = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedFileDataGenerationJobOutput.type + = DataGenerationJobOutputType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedFileDataGenerationJobOutput; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/FileDataGenerationJobSource.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/FileDataGenerationJobSource.java new file mode 100644 index 000000000000..8f0091bedeb7 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/FileDataGenerationJobSource.java @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * File source for data generation jobs — Azure OpenAI file input. + */ +@Fluent +public final class FileDataGenerationJobSource extends DataGenerationJobSource { + /* + * The type of source. + */ + @Generated + private DataGenerationJobSourceType type = DataGenerationJobSourceType.FILE; + + /* + * Input Azure Open AI file id used for data generation. + */ + @Generated + private final String id; + + /** + * Creates an instance of FileDataGenerationJobSource class. + * + * @param id the id value to set. + */ + @Generated + public FileDataGenerationJobSource(String id) { + this.id = id; + } + + /** + * Get the type property: The type of source. + * + * @return the type value. + */ + @Generated + @Override + public DataGenerationJobSourceType getType() { + return this.type; + } + + /** + * Get the id property: Input Azure Open AI file id used for data generation. + * + * @return the id value. + */ + @Generated + public String getId() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public FileDataGenerationJobSource setDescription(String description) { + super.setDescription(description); + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("description", getDescription()); + jsonWriter.writeStringField("id", this.id); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FileDataGenerationJobSource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FileDataGenerationJobSource if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the FileDataGenerationJobSource. + */ + @Generated + public static FileDataGenerationJobSource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String description = null; + String id = null; + DataGenerationJobSourceType type = DataGenerationJobSourceType.FILE; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("description".equals(fieldName)) { + description = reader.getString(); + } else if ("id".equals(fieldName)) { + id = reader.getString(); + } else if ("type".equals(fieldName)) { + type = DataGenerationJobSourceType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + FileDataGenerationJobSource deserializedFileDataGenerationJobSource = new FileDataGenerationJobSource(id); + deserializedFileDataGenerationJobSource.setDescription(description); + deserializedFileDataGenerationJobSource.type = type; + + return deserializedFileDataGenerationJobSource; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/FoundryFeaturesOptInKeys.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/FoundryFeaturesOptInKeys.java index aaabb4dfcbb1..e8c607ed65f0 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/FoundryFeaturesOptInKeys.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/FoundryFeaturesOptInKeys.java @@ -41,7 +41,12 @@ public enum FoundryFeaturesOptInKeys { /** * Enum value Toolboxes=V1Preview. */ - TOOLBOXES_V1_PREVIEW("Toolboxes=V1Preview"); + TOOLBOXES_V1_PREVIEW("Toolboxes=V1Preview"), + + /** + * Enum value DataGenerationJobs=V1Preview. + */ + DATA_GENERATION_JOBS_V1_PREVIEW("DataGenerationJobs=V1Preview"); /** * The actual serialized value for a FoundryFeaturesOptInKeys instance. diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/JobStatus.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/JobStatus.java new file mode 100644 index 000000000000..b8dfbf9023b6 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/JobStatus.java @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Extensible status values shared by Foundry jobs. + */ +public final class JobStatus extends ExpandableStringEnum { + /** + * Job is waiting to start. + */ + @Generated + public static final JobStatus QUEUED = fromString("queued"); + + /** + * Job is actively processing. + */ + @Generated + public static final JobStatus IN_PROGRESS = fromString("in_progress"); + + /** + * Job completed successfully. + */ + @Generated + public static final JobStatus SUCCEEDED = fromString("succeeded"); + + /** + * Job failed. + */ + @Generated + public static final JobStatus FAILED = fromString("failed"); + + /** + * Job was cancelled by the caller. + */ + @Generated + public static final JobStatus CANCELLED = fromString("cancelled"); + + /** + * Creates a new instance of JobStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Generated + @Deprecated + public JobStatus() { + } + + /** + * Creates or finds a JobStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding JobStatus. + */ + @Generated + public static JobStatus fromString(String name) { + return fromString(name, JobStatus.class); + } + + /** + * Gets known JobStatus values. + * + * @return known JobStatus values. + */ + @Generated + public static Collection values() { + return values(JobStatus.class); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/ModelSamplingParams.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/ModelSamplingParams.java index 4127ae67535e..22344d442c96 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/ModelSamplingParams.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/ModelSamplingParams.java @@ -3,8 +3,8 @@ // Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.ai.projects.models; +import com.azure.core.annotation.Fluent; import com.azure.core.annotation.Generated; -import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,76 +14,60 @@ /** * Represents a set of parameters used to control the sampling behavior of a language model during text generation. */ -@Immutable +@Fluent public final class ModelSamplingParams implements JsonSerializable { /* - * The temperature parameter for sampling. + * The temperature parameter for sampling. Defaults to 1.0. */ @Generated - private final double temperature; + private Double temperature; /* - * The top-p parameter for nucleus sampling. + * The top-p parameter for nucleus sampling. Defaults to 1.0. */ @Generated - private final double topP; + private Double topP; /* - * The random seed for reproducibility. + * The random seed for reproducibility. Defaults to 42. */ @Generated - private final int seed; + private Integer seed; /* * The maximum number of tokens allowed in the completion. */ @Generated - private final int maxCompletionTokens; + private Integer maxCompletionTokens; /** - * Creates an instance of ModelSamplingParams class. - * - * @param temperature the temperature value to set. - * @param topP the topP value to set. - * @param seed the seed value to set. - * @param maxCompletionTokens the maxCompletionTokens value to set. - */ - @Generated - public ModelSamplingParams(double temperature, double topP, int seed, int maxCompletionTokens) { - this.temperature = temperature; - this.topP = topP; - this.seed = seed; - this.maxCompletionTokens = maxCompletionTokens; - } - - /** - * Get the temperature property: The temperature parameter for sampling. + * Get the temperature property: The temperature parameter for sampling. Defaults to 1.0. * * @return the temperature value. */ @Generated - public double getTemperature() { + public Double getTemperature() { return this.temperature; } /** - * Get the topP property: The top-p parameter for nucleus sampling. + * Get the topP property: The top-p parameter for nucleus sampling. Defaults to 1.0. * * @return the topP value. */ @Generated - public double getTopP() { + public Double getTopP() { return this.topP; } /** - * Get the seed property: The random seed for reproducibility. + * Get the seed property: The random seed for reproducibility. Defaults to 42. * * @return the seed value. */ @Generated - public int getSeed() { + public Integer getSeed() { return this.seed; } @@ -93,7 +77,7 @@ public int getSeed() { * @return the maxCompletionTokens value. */ @Generated - public int getMaxCompletionTokens() { + public Integer getMaxCompletionTokens() { return this.maxCompletionTokens; } @@ -104,10 +88,10 @@ public int getMaxCompletionTokens() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeDoubleField("temperature", this.temperature); - jsonWriter.writeDoubleField("top_p", this.topP); - jsonWriter.writeIntField("seed", this.seed); - jsonWriter.writeIntField("max_completion_tokens", this.maxCompletionTokens); + jsonWriter.writeNumberField("temperature", this.temperature); + jsonWriter.writeNumberField("top_p", this.topP); + jsonWriter.writeNumberField("seed", this.seed); + jsonWriter.writeNumberField("max_completion_tokens", this.maxCompletionTokens); return jsonWriter.writeEndObject(); } @@ -117,32 +101,83 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ModelSamplingParams if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ModelSamplingParams. */ @Generated public static ModelSamplingParams fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - double temperature = 0.0; - double topP = 0.0; - int seed = 0; - int maxCompletionTokens = 0; + ModelSamplingParams deserializedModelSamplingParams = new ModelSamplingParams(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("temperature".equals(fieldName)) { - temperature = reader.getDouble(); + deserializedModelSamplingParams.temperature = reader.getNullable(JsonReader::getDouble); } else if ("top_p".equals(fieldName)) { - topP = reader.getDouble(); + deserializedModelSamplingParams.topP = reader.getNullable(JsonReader::getDouble); } else if ("seed".equals(fieldName)) { - seed = reader.getInt(); + deserializedModelSamplingParams.seed = reader.getNullable(JsonReader::getInt); } else if ("max_completion_tokens".equals(fieldName)) { - maxCompletionTokens = reader.getInt(); + deserializedModelSamplingParams.maxCompletionTokens = reader.getNullable(JsonReader::getInt); } else { reader.skipChildren(); } } - return new ModelSamplingParams(temperature, topP, seed, maxCompletionTokens); + return deserializedModelSamplingParams; }); } + + /** + * Creates an instance of ModelSamplingParams class. + */ + @Generated + public ModelSamplingParams() { + } + + /** + * Set the temperature property: The temperature parameter for sampling. Defaults to 1.0. + * + * @param temperature the temperature value to set. + * @return the ModelSamplingParams object itself. + */ + @Generated + public ModelSamplingParams setTemperature(Double temperature) { + this.temperature = temperature; + return this; + } + + /** + * Set the topP property: The top-p parameter for nucleus sampling. Defaults to 1.0. + * + * @param topP the topP value to set. + * @return the ModelSamplingParams object itself. + */ + @Generated + public ModelSamplingParams setTopP(Double topP) { + this.topP = topP; + return this; + } + + /** + * Set the seed property: The random seed for reproducibility. Defaults to 42. + * + * @param seed the seed value to set. + * @return the ModelSamplingParams object itself. + */ + @Generated + public ModelSamplingParams setSeed(Integer seed) { + this.seed = seed; + return this; + } + + /** + * Set the maxCompletionTokens property: The maximum number of tokens allowed in the completion. + * + * @param maxCompletionTokens the maxCompletionTokens value to set. + * @return the ModelSamplingParams object itself. + */ + @Generated + public ModelSamplingParams setMaxCompletionTokens(Integer maxCompletionTokens) { + this.maxCompletionTokens = maxCompletionTokens; + return this; + } } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/PromptDataGenerationJobSource.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/PromptDataGenerationJobSource.java new file mode 100644 index 000000000000..dc270f038fa5 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/PromptDataGenerationJobSource.java @@ -0,0 +1,143 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Prompt source for data generation jobs — inline text provided by the user. + */ +@Fluent +public final class PromptDataGenerationJobSource extends DataGenerationJobSource { + /* + * The type of source. + */ + @Generated + private DataGenerationJobSourceType type = DataGenerationJobSourceType.PROMPT; + + /* + * Optional description of what this source represents — helps the pipeline interpret its content (e.g., 'Company + * refund policy document' or 'Describes the agent's core capabilities'). + */ + @Generated + private String description; + + /* + * Inline prompt text (e.g., agent description, policy text, supplementary context). + */ + @Generated + private final String prompt; + + /** + * Creates an instance of PromptDataGenerationJobSource class. + * + * @param prompt the prompt value to set. + */ + @Generated + public PromptDataGenerationJobSource(String prompt) { + this.prompt = prompt; + } + + /** + * Get the type property: The type of source. + * + * @return the type value. + */ + @Generated + @Override + public DataGenerationJobSourceType getType() { + return this.type; + } + + /** + * Get the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @param description the description value to set. + * @return the PromptDataGenerationJobSource object itself. + */ + @Generated + public PromptDataGenerationJobSource setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the prompt property: Inline prompt text (e.g., agent description, policy text, supplementary context). + * + * @return the prompt value. + */ + @Generated + public String getPrompt() { + return this.prompt; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("prompt", this.prompt); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("description", this.description); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PromptDataGenerationJobSource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PromptDataGenerationJobSource if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the PromptDataGenerationJobSource. + */ + @Generated + public static PromptDataGenerationJobSource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String prompt = null; + DataGenerationJobSourceType type = DataGenerationJobSourceType.PROMPT; + String description = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("prompt".equals(fieldName)) { + prompt = reader.getString(); + } else if ("type".equals(fieldName)) { + type = DataGenerationJobSourceType.fromString(reader.getString()); + } else if ("description".equals(fieldName)) { + description = reader.getString(); + } else { + reader.skipChildren(); + } + } + PromptDataGenerationJobSource deserializedPromptDataGenerationJobSource + = new PromptDataGenerationJobSource(prompt); + deserializedPromptDataGenerationJobSource.type = type; + deserializedPromptDataGenerationJobSource.description = description; + + return deserializedPromptDataGenerationJobSource; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/PromptEvaluatorGenerationJobSource.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/PromptEvaluatorGenerationJobSource.java new file mode 100644 index 000000000000..7a806abb3f35 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/PromptEvaluatorGenerationJobSource.java @@ -0,0 +1,143 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Prompt source for evaluator generation jobs — inline text provided by the user. + */ +@Fluent +public final class PromptEvaluatorGenerationJobSource extends EvaluatorGenerationJobSource { + /* + * The type of source. + */ + @Generated + private EvaluatorGenerationJobSourceType type = EvaluatorGenerationJobSourceType.PROMPT; + + /* + * Optional description of what this source represents — helps the pipeline interpret its content (e.g., 'Company + * refund policy document' or 'Describes the agent's core capabilities'). + */ + @Generated + private String description; + + /* + * Inline prompt text (e.g., agent description, policy text, supplementary context). + */ + @Generated + private final String prompt; + + /** + * Creates an instance of PromptEvaluatorGenerationJobSource class. + * + * @param prompt the prompt value to set. + */ + @Generated + public PromptEvaluatorGenerationJobSource(String prompt) { + this.prompt = prompt; + } + + /** + * Get the type property: The type of source. + * + * @return the type value. + */ + @Generated + @Override + public EvaluatorGenerationJobSourceType getType() { + return this.type; + } + + /** + * Get the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @param description the description value to set. + * @return the PromptEvaluatorGenerationJobSource object itself. + */ + @Generated + public PromptEvaluatorGenerationJobSource setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the prompt property: Inline prompt text (e.g., agent description, policy text, supplementary context). + * + * @return the prompt value. + */ + @Generated + public String getPrompt() { + return this.prompt; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("prompt", this.prompt); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("description", this.description); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PromptEvaluatorGenerationJobSource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PromptEvaluatorGenerationJobSource if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the PromptEvaluatorGenerationJobSource. + */ + @Generated + public static PromptEvaluatorGenerationJobSource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String prompt = null; + EvaluatorGenerationJobSourceType type = EvaluatorGenerationJobSourceType.PROMPT; + String description = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("prompt".equals(fieldName)) { + prompt = reader.getString(); + } else if ("type".equals(fieldName)) { + type = EvaluatorGenerationJobSourceType.fromString(reader.getString()); + } else if ("description".equals(fieldName)) { + description = reader.getString(); + } else { + reader.skipChildren(); + } + } + PromptEvaluatorGenerationJobSource deserializedPromptEvaluatorGenerationJobSource + = new PromptEvaluatorGenerationJobSource(prompt); + deserializedPromptEvaluatorGenerationJobSource.type = type; + deserializedPromptEvaluatorGenerationJobSource.description = description; + + return deserializedPromptEvaluatorGenerationJobSource; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/RubricBasedEvaluatorDefinition.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/RubricBasedEvaluatorDefinition.java new file mode 100644 index 000000000000..b33b48eee41f --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/RubricBasedEvaluatorDefinition.java @@ -0,0 +1,175 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.core.util.BinaryData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; +import java.util.Map; + +/** + * Rubric-based evaluator definition — stores rubric criteria produced by the generate API. Used for both quality and + * safety evaluators. + */ +@Fluent +public final class RubricBasedEvaluatorDefinition extends EvaluatorDefinition { + /* + * The type of evaluator definition + */ + @Generated + private EvaluatorDefinitionType type = EvaluatorDefinitionType.RUBRICS; + + /* + * Rubric criteria — the scoring blueprint used by the LLM judge. Quality evaluators include a non-editable residual + * criterion with rubric_id 'general_quality' (always_applicable: true); safety evaluators include + * 'general_policy_compliance'. Both use the same rubric structure. + */ + @Generated + private final List rubricCriteria; + + /** + * Creates an instance of RubricBasedEvaluatorDefinition class. + * + * @param rubricCriteria the rubricCriteria value to set. + */ + @Generated + public RubricBasedEvaluatorDefinition(List rubricCriteria) { + this.rubricCriteria = rubricCriteria; + } + + /** + * Get the type property: The type of evaluator definition. + * + * @return the type value. + */ + @Generated + @Override + public EvaluatorDefinitionType getType() { + return this.type; + } + + /** + * Get the rubricCriteria property: Rubric criteria — the scoring blueprint used by the LLM judge. Quality + * evaluators include a non-editable residual criterion with rubric_id 'general_quality' (always_applicable: true); + * safety evaluators include 'general_policy_compliance'. Both use the same rubric structure. + * + * @return the rubricCriteria value. + */ + @Generated + public List getRubricCriteria() { + return this.rubricCriteria; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public RubricBasedEvaluatorDefinition setInitParameters(Map initParameters) { + super.setInitParameters(initParameters); + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public RubricBasedEvaluatorDefinition setDataSchema(Map dataSchema) { + super.setDataSchema(dataSchema); + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public RubricBasedEvaluatorDefinition setMetrics(Map metrics) { + super.setMetrics(metrics); + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("init_parameters", getInitParameters(), (writer, element) -> { + if (element == null) { + writer.writeNull(); + } else { + element.writeTo(writer); + } + }); + jsonWriter.writeMapField("data_schema", getDataSchema(), (writer, element) -> { + if (element == null) { + writer.writeNull(); + } else { + element.writeTo(writer); + } + }); + jsonWriter.writeMapField("metrics", getMetrics(), (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("rubric_criteria", this.rubricCriteria, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RubricBasedEvaluatorDefinition from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RubricBasedEvaluatorDefinition if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the RubricBasedEvaluatorDefinition. + */ + @Generated + public static RubricBasedEvaluatorDefinition fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + Map initParameters = null; + Map dataSchema = null; + Map metrics = null; + List rubricCriteria = null; + EvaluatorDefinitionType type = EvaluatorDefinitionType.RUBRICS; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("init_parameters".equals(fieldName)) { + initParameters = reader.readMap(reader1 -> reader1 + .getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped()))); + } else if ("data_schema".equals(fieldName)) { + dataSchema = reader.readMap(reader1 -> reader1 + .getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped()))); + } else if ("metrics".equals(fieldName)) { + metrics = reader.readMap(reader1 -> EvaluatorMetric.fromJson(reader1)); + } else if ("rubric_criteria".equals(fieldName)) { + rubricCriteria = reader.readArray(reader1 -> RubricCriterion.fromJson(reader1)); + } else if ("type".equals(fieldName)) { + type = EvaluatorDefinitionType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + RubricBasedEvaluatorDefinition deserializedRubricBasedEvaluatorDefinition + = new RubricBasedEvaluatorDefinition(rubricCriteria); + deserializedRubricBasedEvaluatorDefinition.setInitParameters(initParameters); + deserializedRubricBasedEvaluatorDefinition.setDataSchema(dataSchema); + deserializedRubricBasedEvaluatorDefinition.setMetrics(metrics); + deserializedRubricBasedEvaluatorDefinition.type = type; + + return deserializedRubricBasedEvaluatorDefinition; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/RubricCriterion.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/RubricCriterion.java new file mode 100644 index 000000000000..517fb0953ba3 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/RubricCriterion.java @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * A single rubric criterion — one measurable quality dimension in an evaluator's scoring blueprint. + */ +@Fluent +public final class RubricCriterion implements JsonSerializable { + /* + * Stable identifier for this rubric criterion (snake_case, e.g., `correct_resolution`). Required. Provided by the + * user when manually creating a rubric evaluator or during human-in-the-loop review of a generated catalog; the + * generation pipeline produces an initial value the user can edit. Editable when saving new versions. + */ + @Generated + private final String rubricId; + + /* + * What this criterion measures (e.g., 'Correctly identifies the user's reservation intent and pursues the + * appropriate workflow'). + */ + @Generated + private final String description; + + /* + * Relative weight of this criterion (1-10). The generation pipeline assigns exactly one criterion weight 8-10; all + * others use 1-6. User edits are not constrained by this heuristic. + */ + @Generated + private final int weight; + + /* + * When true, the LLM judge always scores this criterion regardless of relevance (skips applicability assessment). + * The service-generated general quality/policy criterion has this set to true and is non-editable. Users may set + * this on their own custom criteria. + */ + @Generated + private Boolean alwaysApplicable; + + /** + * Creates an instance of RubricCriterion class. + * + * @param rubricId the rubricId value to set. + * @param description the description value to set. + * @param weight the weight value to set. + */ + @Generated + public RubricCriterion(String rubricId, String description, int weight) { + this.rubricId = rubricId; + this.description = description; + this.weight = weight; + } + + /** + * Get the rubricId property: Stable identifier for this rubric criterion (snake_case, e.g., `correct_resolution`). + * Required. Provided by the user when manually creating a rubric evaluator or during human-in-the-loop review of a + * generated catalog; the generation pipeline produces an initial value the user can edit. Editable when saving new + * versions. + * + * @return the rubricId value. + */ + @Generated + public String getRubricId() { + return this.rubricId; + } + + /** + * Get the description property: What this criterion measures (e.g., 'Correctly identifies the user's reservation + * intent and pursues the appropriate workflow'). + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Get the weight property: Relative weight of this criterion (1-10). The generation pipeline assigns exactly one + * criterion weight 8-10; all others use 1-6. User edits are not constrained by this heuristic. + * + * @return the weight value. + */ + @Generated + public int getWeight() { + return this.weight; + } + + /** + * Get the alwaysApplicable property: When true, the LLM judge always scores this criterion regardless of relevance + * (skips applicability assessment). The service-generated general quality/policy criterion has this set to true and + * is non-editable. Users may set this on their own custom criteria. + * + * @return the alwaysApplicable value. + */ + @Generated + public Boolean isAlwaysApplicable() { + return this.alwaysApplicable; + } + + /** + * Set the alwaysApplicable property: When true, the LLM judge always scores this criterion regardless of relevance + * (skips applicability assessment). The service-generated general quality/policy criterion has this set to true and + * is non-editable. Users may set this on their own custom criteria. + * + * @param alwaysApplicable the alwaysApplicable value to set. + * @return the RubricCriterion object itself. + */ + @Generated + public RubricCriterion setAlwaysApplicable(Boolean alwaysApplicable) { + this.alwaysApplicable = alwaysApplicable; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("rubric_id", this.rubricId); + jsonWriter.writeStringField("description", this.description); + jsonWriter.writeIntField("weight", this.weight); + jsonWriter.writeBooleanField("always_applicable", this.alwaysApplicable); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RubricCriterion from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RubricCriterion if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the RubricCriterion. + */ + @Generated + public static RubricCriterion fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String rubricId = null; + String description = null; + int weight = 0; + Boolean alwaysApplicable = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("rubric_id".equals(fieldName)) { + rubricId = reader.getString(); + } else if ("description".equals(fieldName)) { + description = reader.getString(); + } else if ("weight".equals(fieldName)) { + weight = reader.getInt(); + } else if ("always_applicable".equals(fieldName)) { + alwaysApplicable = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + RubricCriterion deserializedRubricCriterion = new RubricCriterion(rubricId, description, weight); + deserializedRubricCriterion.alwaysApplicable = alwaysApplicable; + + return deserializedRubricCriterion; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/SimpleQnADataGenerationJobOptions.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/SimpleQnADataGenerationJobOptions.java new file mode 100644 index 000000000000..923ea851c24b --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/SimpleQnADataGenerationJobOptions.java @@ -0,0 +1,157 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The options for a data generation job with SimpleQnA type. + */ +@Fluent +public final class SimpleQnADataGenerationJobOptions extends DataGenerationJobOptions { + /* + * The data generation job type. + */ + @Generated + private DataGenerationJobType type = DataGenerationJobType.SIMPLE_QNA; + + /* + * The question types to generate. Used only for fine-tuning scenarios. + */ + @Generated + private List questionTypes; + + /** + * Creates an instance of SimpleQnADataGenerationJobOptions class. + * + * @param maxSamples the maxSamples value to set. + */ + @Generated + public SimpleQnADataGenerationJobOptions(int maxSamples) { + super(maxSamples); + } + + /** + * Get the type property: The data generation job type. + * + * @return the type value. + */ + @Generated + @Override + public DataGenerationJobType getType() { + return this.type; + } + + /** + * Get the questionTypes property: The question types to generate. Used only for fine-tuning scenarios. + * + * @return the questionTypes value. + */ + @Generated + public List getQuestionTypes() { + return this.questionTypes; + } + + /** + * Set the questionTypes property: The question types to generate. Used only for fine-tuning scenarios. + * + * @param questionTypes the questionTypes value to set. + * @return the SimpleQnADataGenerationJobOptions object itself. + */ + @Generated + public SimpleQnADataGenerationJobOptions setQuestionTypes(List questionTypes) { + this.questionTypes = questionTypes; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public SimpleQnADataGenerationJobOptions setTrainSplit(Double trainSplit) { + super.setTrainSplit(trainSplit); + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public SimpleQnADataGenerationJobOptions setModelOptions(DataGenerationModelOptions modelOptions) { + super.setModelOptions(modelOptions); + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeIntField("max_samples", getMaxSamples()); + jsonWriter.writeNumberField("train_split", getTrainSplit()); + jsonWriter.writeJsonField("model_options", getModelOptions()); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeArrayField("question_types", this.questionTypes, + (writer, element) -> writer.writeString(element == null ? null : element.toString())); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SimpleQnADataGenerationJobOptions from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SimpleQnADataGenerationJobOptions if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SimpleQnADataGenerationJobOptions. + */ + @Generated + public static SimpleQnADataGenerationJobOptions fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + int maxSamples = 0; + Double trainSplit = null; + DataGenerationModelOptions modelOptions = null; + DataGenerationJobType type = DataGenerationJobType.SIMPLE_QNA; + List questionTypes = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("max_samples".equals(fieldName)) { + maxSamples = reader.getInt(); + } else if ("train_split".equals(fieldName)) { + trainSplit = reader.getNullable(JsonReader::getDouble); + } else if ("model_options".equals(fieldName)) { + modelOptions = DataGenerationModelOptions.fromJson(reader); + } else if ("type".equals(fieldName)) { + type = DataGenerationJobType.fromString(reader.getString()); + } else if ("question_types".equals(fieldName)) { + questionTypes + = reader.readArray(reader1 -> SimpleQnAFineTuningQuestionType.fromString(reader1.getString())); + } else { + reader.skipChildren(); + } + } + SimpleQnADataGenerationJobOptions deserializedSimpleQnADataGenerationJobOptions + = new SimpleQnADataGenerationJobOptions(maxSamples); + deserializedSimpleQnADataGenerationJobOptions.setTrainSplit(trainSplit); + deserializedSimpleQnADataGenerationJobOptions.setModelOptions(modelOptions); + deserializedSimpleQnADataGenerationJobOptions.type = type; + deserializedSimpleQnADataGenerationJobOptions.questionTypes = questionTypes; + + return deserializedSimpleQnADataGenerationJobOptions; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/SimpleQnAFineTuningQuestionType.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/SimpleQnAFineTuningQuestionType.java new file mode 100644 index 000000000000..f6752b23ba9e --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/SimpleQnAFineTuningQuestionType.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The supported question types for SimpleQnA data generation jobs used for fine-tuning scenarios. + */ +public final class SimpleQnAFineTuningQuestionType extends ExpandableStringEnum { + /** + * Short answer question type. + */ + @Generated + public static final SimpleQnAFineTuningQuestionType SHORT_ANSWER = fromString("short_answer"); + + /** + * Long answer question type. + */ + @Generated + public static final SimpleQnAFineTuningQuestionType LONG_ANSWER = fromString("long_answer"); + + /** + * Creates a new instance of SimpleQnAFineTuningQuestionType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Generated + @Deprecated + public SimpleQnAFineTuningQuestionType() { + } + + /** + * Creates or finds a SimpleQnAFineTuningQuestionType from its string representation. + * + * @param name a name to look for. + * @return the corresponding SimpleQnAFineTuningQuestionType. + */ + @Generated + public static SimpleQnAFineTuningQuestionType fromString(String name) { + return fromString(name, SimpleQnAFineTuningQuestionType.class); + } + + /** + * Gets known SimpleQnAFineTuningQuestionType values. + * + * @return known SimpleQnAFineTuningQuestionType values. + */ + @Generated + public static Collection values() { + return values(SimpleQnAFineTuningQuestionType.class); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/ToolUseFineTuningDataGenerationJobOptions.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/ToolUseFineTuningDataGenerationJobOptions.java new file mode 100644 index 000000000000..d7320b3b1095 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/ToolUseFineTuningDataGenerationJobOptions.java @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The options for a data generation job with ToolUse type. Used only for fine-tuning scenarios. + */ +@Fluent +public final class ToolUseFineTuningDataGenerationJobOptions extends DataGenerationJobOptions { + /* + * The data generation job type. + */ + @Generated + private DataGenerationJobType type = DataGenerationJobType.TOOL_USE; + + /** + * Creates an instance of ToolUseFineTuningDataGenerationJobOptions class. + * + * @param maxSamples the maxSamples value to set. + */ + @Generated + public ToolUseFineTuningDataGenerationJobOptions(int maxSamples) { + super(maxSamples); + } + + /** + * Get the type property: The data generation job type. + * + * @return the type value. + */ + @Generated + @Override + public DataGenerationJobType getType() { + return this.type; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public ToolUseFineTuningDataGenerationJobOptions setTrainSplit(Double trainSplit) { + super.setTrainSplit(trainSplit); + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public ToolUseFineTuningDataGenerationJobOptions setModelOptions(DataGenerationModelOptions modelOptions) { + super.setModelOptions(modelOptions); + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeIntField("max_samples", getMaxSamples()); + jsonWriter.writeNumberField("train_split", getTrainSplit()); + jsonWriter.writeJsonField("model_options", getModelOptions()); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ToolUseFineTuningDataGenerationJobOptions from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ToolUseFineTuningDataGenerationJobOptions if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ToolUseFineTuningDataGenerationJobOptions. + */ + @Generated + public static ToolUseFineTuningDataGenerationJobOptions fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + int maxSamples = 0; + Double trainSplit = null; + DataGenerationModelOptions modelOptions = null; + DataGenerationJobType type = DataGenerationJobType.TOOL_USE; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("max_samples".equals(fieldName)) { + maxSamples = reader.getInt(); + } else if ("train_split".equals(fieldName)) { + trainSplit = reader.getNullable(JsonReader::getDouble); + } else if ("model_options".equals(fieldName)) { + modelOptions = DataGenerationModelOptions.fromJson(reader); + } else if ("type".equals(fieldName)) { + type = DataGenerationJobType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + ToolUseFineTuningDataGenerationJobOptions deserializedToolUseFineTuningDataGenerationJobOptions + = new ToolUseFineTuningDataGenerationJobOptions(maxSamples); + deserializedToolUseFineTuningDataGenerationJobOptions.setTrainSplit(trainSplit); + deserializedToolUseFineTuningDataGenerationJobOptions.setModelOptions(modelOptions); + deserializedToolUseFineTuningDataGenerationJobOptions.type = type; + + return deserializedToolUseFineTuningDataGenerationJobOptions; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/TracesDataGenerationJobOptions.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/TracesDataGenerationJobOptions.java new file mode 100644 index 000000000000..2c02491b607c --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/TracesDataGenerationJobOptions.java @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The options for a data generation job with Traces type. + */ +@Fluent +public final class TracesDataGenerationJobOptions extends DataGenerationJobOptions { + /* + * The data generation job type. + */ + @Generated + private DataGenerationJobType type = DataGenerationJobType.TRACES; + + /** + * Creates an instance of TracesDataGenerationJobOptions class. + * + * @param maxSamples the maxSamples value to set. + */ + @Generated + public TracesDataGenerationJobOptions(int maxSamples) { + super(maxSamples); + } + + /** + * Get the type property: The data generation job type. + * + * @return the type value. + */ + @Generated + @Override + public DataGenerationJobType getType() { + return this.type; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public TracesDataGenerationJobOptions setTrainSplit(Double trainSplit) { + super.setTrainSplit(trainSplit); + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public TracesDataGenerationJobOptions setModelOptions(DataGenerationModelOptions modelOptions) { + super.setModelOptions(modelOptions); + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeIntField("max_samples", getMaxSamples()); + jsonWriter.writeNumberField("train_split", getTrainSplit()); + jsonWriter.writeJsonField("model_options", getModelOptions()); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TracesDataGenerationJobOptions from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TracesDataGenerationJobOptions if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the TracesDataGenerationJobOptions. + */ + @Generated + public static TracesDataGenerationJobOptions fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + int maxSamples = 0; + Double trainSplit = null; + DataGenerationModelOptions modelOptions = null; + DataGenerationJobType type = DataGenerationJobType.TRACES; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("max_samples".equals(fieldName)) { + maxSamples = reader.getInt(); + } else if ("train_split".equals(fieldName)) { + trainSplit = reader.getNullable(JsonReader::getDouble); + } else if ("model_options".equals(fieldName)) { + modelOptions = DataGenerationModelOptions.fromJson(reader); + } else if ("type".equals(fieldName)) { + type = DataGenerationJobType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + TracesDataGenerationJobOptions deserializedTracesDataGenerationJobOptions + = new TracesDataGenerationJobOptions(maxSamples); + deserializedTracesDataGenerationJobOptions.setTrainSplit(trainSplit); + deserializedTracesDataGenerationJobOptions.setModelOptions(modelOptions); + deserializedTracesDataGenerationJobOptions.type = type; + + return deserializedTracesDataGenerationJobOptions; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/TracesDataGenerationJobSource.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/TracesDataGenerationJobSource.java new file mode 100644 index 000000000000..97d2b2d0f8a4 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/TracesDataGenerationJobSource.java @@ -0,0 +1,330 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.Instant; +import java.time.OffsetDateTime; +import java.time.ZoneOffset; + +/** + * Traces source for data generation jobs — conversation traces from Application Insights. + */ +@Fluent +public final class TracesDataGenerationJobSource extends DataGenerationJobSource { + /* + * The type of source. + */ + @Generated + private DataGenerationJobSourceType type = DataGenerationJobSourceType.TRACES; + + /* + * Optional description of what this source represents — helps the pipeline interpret its content (e.g., 'Company + * refund policy document' or 'Describes the agent's core capabilities'). + */ + @Generated + private String description; + + /* + * The unique agent ID used to filter traces. Optional — when omitted, traces are filtered by `agent_name` (and + * `agent_version` if specified). + */ + @Generated + private String agentId; + + /* + * The agent name to fetch traces for. + */ + @Generated + private final String agentName; + + /* + * The agent version. If not specified, traces for ALL versions of the agent are included within the time window. + */ + @Generated + private String agentVersion; + + /* + * Start of the time window (Unix timestamp in seconds) for fetching traces. + */ + @Generated + private Long startTime; + + /* + * End of the time window (Unix timestamp in seconds). Defaults to current time. + */ + @Generated + private Long endTime; + + /* + * Maximum number of traces to retrieve. + */ + @Generated + private Integer maxTraces; + + /** + * Creates an instance of TracesDataGenerationJobSource class. + * + * @param agentName the agentName value to set. + */ + @Generated + public TracesDataGenerationJobSource(String agentName) { + this.agentName = agentName; + } + + /** + * Get the type property: The type of source. + * + * @return the type value. + */ + @Generated + @Override + public DataGenerationJobSourceType getType() { + return this.type; + } + + /** + * Get the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @param description the description value to set. + * @return the TracesDataGenerationJobSource object itself. + */ + @Generated + public TracesDataGenerationJobSource setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the agentId property: The unique agent ID used to filter traces. Optional — when omitted, traces are filtered + * by `agent_name` (and `agent_version` if specified). + * + * @return the agentId value. + */ + @Generated + public String getAgentId() { + return this.agentId; + } + + /** + * Set the agentId property: The unique agent ID used to filter traces. Optional — when omitted, traces are filtered + * by `agent_name` (and `agent_version` if specified). + * + * @param agentId the agentId value to set. + * @return the TracesDataGenerationJobSource object itself. + */ + @Generated + public TracesDataGenerationJobSource setAgentId(String agentId) { + this.agentId = agentId; + return this; + } + + /** + * Get the agentName property: The agent name to fetch traces for. + * + * @return the agentName value. + */ + @Generated + public String getAgentName() { + return this.agentName; + } + + /** + * Get the agentVersion property: The agent version. If not specified, traces for ALL versions of the agent are + * included within the time window. + * + * @return the agentVersion value. + */ + @Generated + public String getAgentVersion() { + return this.agentVersion; + } + + /** + * Set the agentVersion property: The agent version. If not specified, traces for ALL versions of the agent are + * included within the time window. + * + * @param agentVersion the agentVersion value to set. + * @return the TracesDataGenerationJobSource object itself. + */ + @Generated + public TracesDataGenerationJobSource setAgentVersion(String agentVersion) { + this.agentVersion = agentVersion; + return this; + } + + /** + * Get the startTime property: Start of the time window (Unix timestamp in seconds) for fetching traces. + * + * @return the startTime value. + */ + @Generated + public OffsetDateTime getStartTime() { + if (this.startTime == null) { + return null; + } + return OffsetDateTime.ofInstant(Instant.ofEpochSecond(this.startTime), ZoneOffset.UTC); + } + + /** + * Set the startTime property: Start of the time window (Unix timestamp in seconds) for fetching traces. + * + * @param startTime the startTime value to set. + * @return the TracesDataGenerationJobSource object itself. + */ + @Generated + public TracesDataGenerationJobSource setStartTime(OffsetDateTime startTime) { + if (startTime == null) { + this.startTime = null; + } else { + this.startTime = startTime.toEpochSecond(); + } + return this; + } + + /** + * Get the endTime property: End of the time window (Unix timestamp in seconds). Defaults to current time. + * + * @return the endTime value. + */ + @Generated + public OffsetDateTime getEndTime() { + if (this.endTime == null) { + return null; + } + return OffsetDateTime.ofInstant(Instant.ofEpochSecond(this.endTime), ZoneOffset.UTC); + } + + /** + * Set the endTime property: End of the time window (Unix timestamp in seconds). Defaults to current time. + * + * @param endTime the endTime value to set. + * @return the TracesDataGenerationJobSource object itself. + */ + @Generated + public TracesDataGenerationJobSource setEndTime(OffsetDateTime endTime) { + if (endTime == null) { + this.endTime = null; + } else { + this.endTime = endTime.toEpochSecond(); + } + return this; + } + + /** + * Get the maxTraces property: Maximum number of traces to retrieve. + * + * @return the maxTraces value. + */ + @Generated + public Integer getMaxTraces() { + return this.maxTraces; + } + + /** + * Set the maxTraces property: Maximum number of traces to retrieve. + * + * @param maxTraces the maxTraces value to set. + * @return the TracesDataGenerationJobSource object itself. + */ + @Generated + public TracesDataGenerationJobSource setMaxTraces(Integer maxTraces) { + this.maxTraces = maxTraces; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("agent_name", this.agentName); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("description", this.description); + jsonWriter.writeStringField("agent_id", this.agentId); + jsonWriter.writeStringField("agent_version", this.agentVersion); + jsonWriter.writeNumberField("start_time", this.startTime); + jsonWriter.writeNumberField("end_time", this.endTime); + jsonWriter.writeNumberField("max_traces", this.maxTraces); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TracesDataGenerationJobSource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TracesDataGenerationJobSource if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the TracesDataGenerationJobSource. + */ + @Generated + public static TracesDataGenerationJobSource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String agentName = null; + DataGenerationJobSourceType type = DataGenerationJobSourceType.TRACES; + String description = null; + String agentId = null; + String agentVersion = null; + Long startTime = null; + Long endTime = null; + Integer maxTraces = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("agent_name".equals(fieldName)) { + agentName = reader.getString(); + } else if ("type".equals(fieldName)) { + type = DataGenerationJobSourceType.fromString(reader.getString()); + } else if ("description".equals(fieldName)) { + description = reader.getString(); + } else if ("agent_id".equals(fieldName)) { + agentId = reader.getString(); + } else if ("agent_version".equals(fieldName)) { + agentVersion = reader.getString(); + } else if ("start_time".equals(fieldName)) { + startTime = reader.getNullable(JsonReader::getLong); + } else if ("end_time".equals(fieldName)) { + endTime = reader.getNullable(JsonReader::getLong); + } else if ("max_traces".equals(fieldName)) { + maxTraces = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + TracesDataGenerationJobSource deserializedTracesDataGenerationJobSource + = new TracesDataGenerationJobSource(agentName); + deserializedTracesDataGenerationJobSource.type = type; + deserializedTracesDataGenerationJobSource.description = description; + deserializedTracesDataGenerationJobSource.agentId = agentId; + deserializedTracesDataGenerationJobSource.agentVersion = agentVersion; + deserializedTracesDataGenerationJobSource.startTime = startTime; + deserializedTracesDataGenerationJobSource.endTime = endTime; + deserializedTracesDataGenerationJobSource.maxTraces = maxTraces; + + return deserializedTracesDataGenerationJobSource; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/TracesEvaluatorGenerationJobSource.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/TracesEvaluatorGenerationJobSource.java new file mode 100644 index 000000000000..8012e5acb375 --- /dev/null +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/models/TracesEvaluatorGenerationJobSource.java @@ -0,0 +1,330 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.projects.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.Instant; +import java.time.OffsetDateTime; +import java.time.ZoneOffset; + +/** + * Traces source for evaluator generation jobs — conversation traces from Application Insights. + */ +@Fluent +public final class TracesEvaluatorGenerationJobSource extends EvaluatorGenerationJobSource { + /* + * The type of source. + */ + @Generated + private EvaluatorGenerationJobSourceType type = EvaluatorGenerationJobSourceType.TRACES; + + /* + * Optional description of what this source represents — helps the pipeline interpret its content (e.g., 'Company + * refund policy document' or 'Describes the agent's core capabilities'). + */ + @Generated + private String description; + + /* + * The unique agent ID used to filter traces. Optional — when omitted, traces are filtered by `agent_name` (and + * `agent_version` if specified). + */ + @Generated + private String agentId; + + /* + * The agent name to fetch traces for. + */ + @Generated + private final String agentName; + + /* + * The agent version. If not specified, traces for ALL versions of the agent are included within the time window. + */ + @Generated + private String agentVersion; + + /* + * Start of the time window (Unix timestamp in seconds) for fetching traces. + */ + @Generated + private Long startTime; + + /* + * End of the time window (Unix timestamp in seconds). Defaults to current time. + */ + @Generated + private Long endTime; + + /* + * Maximum number of traces to retrieve. + */ + @Generated + private Integer maxTraces; + + /** + * Creates an instance of TracesEvaluatorGenerationJobSource class. + * + * @param agentName the agentName value to set. + */ + @Generated + public TracesEvaluatorGenerationJobSource(String agentName) { + this.agentName = agentName; + } + + /** + * Get the type property: The type of source. + * + * @return the type value. + */ + @Generated + @Override + public EvaluatorGenerationJobSourceType getType() { + return this.type; + } + + /** + * Get the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @return the description value. + */ + @Generated + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Optional description of what this source represents — helps the pipeline interpret + * its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities'). + * + * @param description the description value to set. + * @return the TracesEvaluatorGenerationJobSource object itself. + */ + @Generated + public TracesEvaluatorGenerationJobSource setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the agentId property: The unique agent ID used to filter traces. Optional — when omitted, traces are filtered + * by `agent_name` (and `agent_version` if specified). + * + * @return the agentId value. + */ + @Generated + public String getAgentId() { + return this.agentId; + } + + /** + * Set the agentId property: The unique agent ID used to filter traces. Optional — when omitted, traces are filtered + * by `agent_name` (and `agent_version` if specified). + * + * @param agentId the agentId value to set. + * @return the TracesEvaluatorGenerationJobSource object itself. + */ + @Generated + public TracesEvaluatorGenerationJobSource setAgentId(String agentId) { + this.agentId = agentId; + return this; + } + + /** + * Get the agentName property: The agent name to fetch traces for. + * + * @return the agentName value. + */ + @Generated + public String getAgentName() { + return this.agentName; + } + + /** + * Get the agentVersion property: The agent version. If not specified, traces for ALL versions of the agent are + * included within the time window. + * + * @return the agentVersion value. + */ + @Generated + public String getAgentVersion() { + return this.agentVersion; + } + + /** + * Set the agentVersion property: The agent version. If not specified, traces for ALL versions of the agent are + * included within the time window. + * + * @param agentVersion the agentVersion value to set. + * @return the TracesEvaluatorGenerationJobSource object itself. + */ + @Generated + public TracesEvaluatorGenerationJobSource setAgentVersion(String agentVersion) { + this.agentVersion = agentVersion; + return this; + } + + /** + * Get the startTime property: Start of the time window (Unix timestamp in seconds) for fetching traces. + * + * @return the startTime value. + */ + @Generated + public OffsetDateTime getStartTime() { + if (this.startTime == null) { + return null; + } + return OffsetDateTime.ofInstant(Instant.ofEpochSecond(this.startTime), ZoneOffset.UTC); + } + + /** + * Set the startTime property: Start of the time window (Unix timestamp in seconds) for fetching traces. + * + * @param startTime the startTime value to set. + * @return the TracesEvaluatorGenerationJobSource object itself. + */ + @Generated + public TracesEvaluatorGenerationJobSource setStartTime(OffsetDateTime startTime) { + if (startTime == null) { + this.startTime = null; + } else { + this.startTime = startTime.toEpochSecond(); + } + return this; + } + + /** + * Get the endTime property: End of the time window (Unix timestamp in seconds). Defaults to current time. + * + * @return the endTime value. + */ + @Generated + public OffsetDateTime getEndTime() { + if (this.endTime == null) { + return null; + } + return OffsetDateTime.ofInstant(Instant.ofEpochSecond(this.endTime), ZoneOffset.UTC); + } + + /** + * Set the endTime property: End of the time window (Unix timestamp in seconds). Defaults to current time. + * + * @param endTime the endTime value to set. + * @return the TracesEvaluatorGenerationJobSource object itself. + */ + @Generated + public TracesEvaluatorGenerationJobSource setEndTime(OffsetDateTime endTime) { + if (endTime == null) { + this.endTime = null; + } else { + this.endTime = endTime.toEpochSecond(); + } + return this; + } + + /** + * Get the maxTraces property: Maximum number of traces to retrieve. + * + * @return the maxTraces value. + */ + @Generated + public Integer getMaxTraces() { + return this.maxTraces; + } + + /** + * Set the maxTraces property: Maximum number of traces to retrieve. + * + * @param maxTraces the maxTraces value to set. + * @return the TracesEvaluatorGenerationJobSource object itself. + */ + @Generated + public TracesEvaluatorGenerationJobSource setMaxTraces(Integer maxTraces) { + this.maxTraces = maxTraces; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("agent_name", this.agentName); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("description", this.description); + jsonWriter.writeStringField("agent_id", this.agentId); + jsonWriter.writeStringField("agent_version", this.agentVersion); + jsonWriter.writeNumberField("start_time", this.startTime); + jsonWriter.writeNumberField("end_time", this.endTime); + jsonWriter.writeNumberField("max_traces", this.maxTraces); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TracesEvaluatorGenerationJobSource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TracesEvaluatorGenerationJobSource if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the TracesEvaluatorGenerationJobSource. + */ + @Generated + public static TracesEvaluatorGenerationJobSource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String agentName = null; + EvaluatorGenerationJobSourceType type = EvaluatorGenerationJobSourceType.TRACES; + String description = null; + String agentId = null; + String agentVersion = null; + Long startTime = null; + Long endTime = null; + Integer maxTraces = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("agent_name".equals(fieldName)) { + agentName = reader.getString(); + } else if ("type".equals(fieldName)) { + type = EvaluatorGenerationJobSourceType.fromString(reader.getString()); + } else if ("description".equals(fieldName)) { + description = reader.getString(); + } else if ("agent_id".equals(fieldName)) { + agentId = reader.getString(); + } else if ("agent_version".equals(fieldName)) { + agentVersion = reader.getString(); + } else if ("start_time".equals(fieldName)) { + startTime = reader.getNullable(JsonReader::getLong); + } else if ("end_time".equals(fieldName)) { + endTime = reader.getNullable(JsonReader::getLong); + } else if ("max_traces".equals(fieldName)) { + maxTraces = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + TracesEvaluatorGenerationJobSource deserializedTracesEvaluatorGenerationJobSource + = new TracesEvaluatorGenerationJobSource(agentName); + deserializedTracesEvaluatorGenerationJobSource.type = type; + deserializedTracesEvaluatorGenerationJobSource.description = description; + deserializedTracesEvaluatorGenerationJobSource.agentId = agentId; + deserializedTracesEvaluatorGenerationJobSource.agentVersion = agentVersion; + deserializedTracesEvaluatorGenerationJobSource.startTime = startTime; + deserializedTracesEvaluatorGenerationJobSource.endTime = endTime; + deserializedTracesEvaluatorGenerationJobSource.maxTraces = maxTraces; + + return deserializedTracesEvaluatorGenerationJobSource; + }); + } +} diff --git a/sdk/ai/azure-ai-projects/src/main/resources/META-INF/azure-ai-projects_metadata.json b/sdk/ai/azure-ai-projects/src/main/resources/META-INF/azure-ai-projects_metadata.json index 57d4ac02a60d..296c582ab490 100644 --- a/sdk/ai/azure-ai-projects/src/main/resources/META-INF/azure-ai-projects_metadata.json +++ b/sdk/ai/azure-ai-projects/src/main/resources/META-INF/azure-ai-projects_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Azure.AI.Projects":"v1"},"crossLanguageDefinitions":{"com.azure.ai.projects.AIProjectClientBuilder":"Azure.AI.Projects","com.azure.ai.projects.ConnectionsAsyncClient":"Azure.AI.Projects.Connections","com.azure.ai.projects.ConnectionsAsyncClient.getConnection":"Azure.AI.Projects.Connections.get","com.azure.ai.projects.ConnectionsAsyncClient.getConnectionWithCredentials":"Azure.AI.Projects.Connections.getWithCredentials","com.azure.ai.projects.ConnectionsAsyncClient.getConnectionWithCredentialsWithResponse":"Azure.AI.Projects.Connections.getWithCredentials","com.azure.ai.projects.ConnectionsAsyncClient.getConnectionWithResponse":"Azure.AI.Projects.Connections.get","com.azure.ai.projects.ConnectionsAsyncClient.listConnections":"Azure.AI.Projects.Connections.list","com.azure.ai.projects.ConnectionsClient":"Azure.AI.Projects.Connections","com.azure.ai.projects.ConnectionsClient.getConnection":"Azure.AI.Projects.Connections.get","com.azure.ai.projects.ConnectionsClient.getConnectionWithCredentials":"Azure.AI.Projects.Connections.getWithCredentials","com.azure.ai.projects.ConnectionsClient.getConnectionWithCredentialsWithResponse":"Azure.AI.Projects.Connections.getWithCredentials","com.azure.ai.projects.ConnectionsClient.getConnectionWithResponse":"Azure.AI.Projects.Connections.get","com.azure.ai.projects.ConnectionsClient.listConnections":"Azure.AI.Projects.Connections.list","com.azure.ai.projects.DatasetsAsyncClient":"Azure.AI.Projects.Datasets","com.azure.ai.projects.DatasetsAsyncClient.createOrUpdateDatasetVersion":"Azure.AI.Projects.Datasets.createOrUpdateVersion","com.azure.ai.projects.DatasetsAsyncClient.createOrUpdateDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.createOrUpdateVersion","com.azure.ai.projects.DatasetsAsyncClient.deleteDatasetVersion":"Azure.AI.Projects.Datasets.deleteVersion","com.azure.ai.projects.DatasetsAsyncClient.deleteDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.deleteVersion","com.azure.ai.projects.DatasetsAsyncClient.getCredentials":"Azure.AI.Projects.Datasets.getCredentials","com.azure.ai.projects.DatasetsAsyncClient.getCredentialsWithResponse":"Azure.AI.Projects.Datasets.getCredentials","com.azure.ai.projects.DatasetsAsyncClient.getDatasetVersion":"Azure.AI.Projects.Datasets.getVersion","com.azure.ai.projects.DatasetsAsyncClient.getDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.getVersion","com.azure.ai.projects.DatasetsAsyncClient.listDatasetVersions":"Azure.AI.Projects.Datasets.listVersions","com.azure.ai.projects.DatasetsAsyncClient.listLatestDatasetVersions":"Azure.AI.Projects.Datasets.listLatest","com.azure.ai.projects.DatasetsAsyncClient.pendingUpload":"Azure.AI.Projects.Datasets.startPendingUploadVersion","com.azure.ai.projects.DatasetsAsyncClient.pendingUploadWithResponse":"Azure.AI.Projects.Datasets.startPendingUploadVersion","com.azure.ai.projects.DatasetsClient":"Azure.AI.Projects.Datasets","com.azure.ai.projects.DatasetsClient.createOrUpdateDatasetVersion":"Azure.AI.Projects.Datasets.createOrUpdateVersion","com.azure.ai.projects.DatasetsClient.createOrUpdateDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.createOrUpdateVersion","com.azure.ai.projects.DatasetsClient.deleteDatasetVersion":"Azure.AI.Projects.Datasets.deleteVersion","com.azure.ai.projects.DatasetsClient.deleteDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.deleteVersion","com.azure.ai.projects.DatasetsClient.getCredentials":"Azure.AI.Projects.Datasets.getCredentials","com.azure.ai.projects.DatasetsClient.getCredentialsWithResponse":"Azure.AI.Projects.Datasets.getCredentials","com.azure.ai.projects.DatasetsClient.getDatasetVersion":"Azure.AI.Projects.Datasets.getVersion","com.azure.ai.projects.DatasetsClient.getDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.getVersion","com.azure.ai.projects.DatasetsClient.listDatasetVersions":"Azure.AI.Projects.Datasets.listVersions","com.azure.ai.projects.DatasetsClient.listLatestDatasetVersions":"Azure.AI.Projects.Datasets.listLatest","com.azure.ai.projects.DatasetsClient.pendingUpload":"Azure.AI.Projects.Datasets.startPendingUploadVersion","com.azure.ai.projects.DatasetsClient.pendingUploadWithResponse":"Azure.AI.Projects.Datasets.startPendingUploadVersion","com.azure.ai.projects.DeploymentsAsyncClient":"Azure.AI.Projects.Deployments","com.azure.ai.projects.DeploymentsAsyncClient.getDeployment":"Azure.AI.Projects.Deployments.get","com.azure.ai.projects.DeploymentsAsyncClient.getDeploymentWithResponse":"Azure.AI.Projects.Deployments.get","com.azure.ai.projects.DeploymentsAsyncClient.listDeployments":"Azure.AI.Projects.Deployments.list","com.azure.ai.projects.DeploymentsClient":"Azure.AI.Projects.Deployments","com.azure.ai.projects.DeploymentsClient.getDeployment":"Azure.AI.Projects.Deployments.get","com.azure.ai.projects.DeploymentsClient.getDeploymentWithResponse":"Azure.AI.Projects.Deployments.get","com.azure.ai.projects.DeploymentsClient.listDeployments":"Azure.AI.Projects.Deployments.list","com.azure.ai.projects.EvaluationRulesAsyncClient":"Azure.AI.Projects.EvaluationRules","com.azure.ai.projects.EvaluationRulesAsyncClient.createOrUpdateEvaluationRule":"Azure.AI.Projects.EvaluationRules.createOrUpdate","com.azure.ai.projects.EvaluationRulesAsyncClient.createOrUpdateEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.createOrUpdate","com.azure.ai.projects.EvaluationRulesAsyncClient.deleteEvaluationRule":"Azure.AI.Projects.EvaluationRules.delete","com.azure.ai.projects.EvaluationRulesAsyncClient.deleteEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.delete","com.azure.ai.projects.EvaluationRulesAsyncClient.getEvaluationRule":"Azure.AI.Projects.EvaluationRules.get","com.azure.ai.projects.EvaluationRulesAsyncClient.getEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.get","com.azure.ai.projects.EvaluationRulesAsyncClient.listEvaluationRules":"Azure.AI.Projects.EvaluationRules.list","com.azure.ai.projects.EvaluationRulesClient":"Azure.AI.Projects.EvaluationRules","com.azure.ai.projects.EvaluationRulesClient.createOrUpdateEvaluationRule":"Azure.AI.Projects.EvaluationRules.createOrUpdate","com.azure.ai.projects.EvaluationRulesClient.createOrUpdateEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.createOrUpdate","com.azure.ai.projects.EvaluationRulesClient.deleteEvaluationRule":"Azure.AI.Projects.EvaluationRules.delete","com.azure.ai.projects.EvaluationRulesClient.deleteEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.delete","com.azure.ai.projects.EvaluationRulesClient.getEvaluationRule":"Azure.AI.Projects.EvaluationRules.get","com.azure.ai.projects.EvaluationRulesClient.getEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.get","com.azure.ai.projects.EvaluationRulesClient.listEvaluationRules":"Azure.AI.Projects.EvaluationRules.list","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient":"Azure.AI.Projects.EvaluationTaxonomies","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.createEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.create","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.createEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.create","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.deleteEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.delete","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.deleteEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.delete","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.getEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.get","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.getEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.get","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.listEvaluationTaxonomies":"Azure.AI.Projects.EvaluationTaxonomies.list","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.updateEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.update","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.updateEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.update","com.azure.ai.projects.EvaluationTaxonomiesClient":"Azure.AI.Projects.EvaluationTaxonomies","com.azure.ai.projects.EvaluationTaxonomiesClient.createEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.create","com.azure.ai.projects.EvaluationTaxonomiesClient.createEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.create","com.azure.ai.projects.EvaluationTaxonomiesClient.deleteEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.delete","com.azure.ai.projects.EvaluationTaxonomiesClient.deleteEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.delete","com.azure.ai.projects.EvaluationTaxonomiesClient.getEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.get","com.azure.ai.projects.EvaluationTaxonomiesClient.getEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.get","com.azure.ai.projects.EvaluationTaxonomiesClient.listEvaluationTaxonomies":"Azure.AI.Projects.EvaluationTaxonomies.list","com.azure.ai.projects.EvaluationTaxonomiesClient.updateEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.update","com.azure.ai.projects.EvaluationTaxonomiesClient.updateEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.update","com.azure.ai.projects.EvaluatorsAsyncClient":"Azure.AI.Projects.Evaluators","com.azure.ai.projects.EvaluatorsAsyncClient.createEvaluatorVersion":"Azure.AI.Projects.Evaluators.createVersion","com.azure.ai.projects.EvaluatorsAsyncClient.createEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.createVersion","com.azure.ai.projects.EvaluatorsAsyncClient.deleteEvaluatorVersion":"Azure.AI.Projects.Evaluators.deleteVersion","com.azure.ai.projects.EvaluatorsAsyncClient.deleteEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.deleteVersion","com.azure.ai.projects.EvaluatorsAsyncClient.getEvaluatorVersion":"Azure.AI.Projects.Evaluators.getVersion","com.azure.ai.projects.EvaluatorsAsyncClient.getEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.getVersion","com.azure.ai.projects.EvaluatorsAsyncClient.listEvaluatorVersions":"Azure.AI.Projects.Evaluators.listVersions","com.azure.ai.projects.EvaluatorsAsyncClient.listLatestEvaluatorVersions":"Azure.AI.Projects.Evaluators.listLatestVersions","com.azure.ai.projects.EvaluatorsAsyncClient.updateEvaluatorVersion":"Azure.AI.Projects.Evaluators.updateVersion","com.azure.ai.projects.EvaluatorsAsyncClient.updateEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.updateVersion","com.azure.ai.projects.EvaluatorsClient":"Azure.AI.Projects.Evaluators","com.azure.ai.projects.EvaluatorsClient.createEvaluatorVersion":"Azure.AI.Projects.Evaluators.createVersion","com.azure.ai.projects.EvaluatorsClient.createEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.createVersion","com.azure.ai.projects.EvaluatorsClient.deleteEvaluatorVersion":"Azure.AI.Projects.Evaluators.deleteVersion","com.azure.ai.projects.EvaluatorsClient.deleteEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.deleteVersion","com.azure.ai.projects.EvaluatorsClient.getEvaluatorVersion":"Azure.AI.Projects.Evaluators.getVersion","com.azure.ai.projects.EvaluatorsClient.getEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.getVersion","com.azure.ai.projects.EvaluatorsClient.listEvaluatorVersions":"Azure.AI.Projects.Evaluators.listVersions","com.azure.ai.projects.EvaluatorsClient.listLatestEvaluatorVersions":"Azure.AI.Projects.Evaluators.listLatestVersions","com.azure.ai.projects.EvaluatorsClient.updateEvaluatorVersion":"Azure.AI.Projects.Evaluators.updateVersion","com.azure.ai.projects.EvaluatorsClient.updateEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.updateVersion","com.azure.ai.projects.IndexesAsyncClient":"Azure.AI.Projects.Indexes","com.azure.ai.projects.IndexesAsyncClient.createOrUpdateIndexVersion":"Azure.AI.Projects.Indexes.createOrUpdateVersion","com.azure.ai.projects.IndexesAsyncClient.createOrUpdateIndexVersionWithResponse":"Azure.AI.Projects.Indexes.createOrUpdateVersion","com.azure.ai.projects.IndexesAsyncClient.deleteIndexVersion":"Azure.AI.Projects.Indexes.deleteVersion","com.azure.ai.projects.IndexesAsyncClient.deleteIndexVersionWithResponse":"Azure.AI.Projects.Indexes.deleteVersion","com.azure.ai.projects.IndexesAsyncClient.getIndexVersion":"Azure.AI.Projects.Indexes.getVersion","com.azure.ai.projects.IndexesAsyncClient.getIndexVersionWithResponse":"Azure.AI.Projects.Indexes.getVersion","com.azure.ai.projects.IndexesAsyncClient.listIndexVersions":"Azure.AI.Projects.Indexes.listVersions","com.azure.ai.projects.IndexesAsyncClient.listLatestIndexVersions":"Azure.AI.Projects.Indexes.listLatest","com.azure.ai.projects.IndexesClient":"Azure.AI.Projects.Indexes","com.azure.ai.projects.IndexesClient.createOrUpdateIndexVersion":"Azure.AI.Projects.Indexes.createOrUpdateVersion","com.azure.ai.projects.IndexesClient.createOrUpdateIndexVersionWithResponse":"Azure.AI.Projects.Indexes.createOrUpdateVersion","com.azure.ai.projects.IndexesClient.deleteIndexVersion":"Azure.AI.Projects.Indexes.deleteVersion","com.azure.ai.projects.IndexesClient.deleteIndexVersionWithResponse":"Azure.AI.Projects.Indexes.deleteVersion","com.azure.ai.projects.IndexesClient.getIndexVersion":"Azure.AI.Projects.Indexes.getVersion","com.azure.ai.projects.IndexesClient.getIndexVersionWithResponse":"Azure.AI.Projects.Indexes.getVersion","com.azure.ai.projects.IndexesClient.listIndexVersions":"Azure.AI.Projects.Indexes.listVersions","com.azure.ai.projects.IndexesClient.listLatestIndexVersions":"Azure.AI.Projects.Indexes.listLatest","com.azure.ai.projects.InsightsAsyncClient":"Azure.AI.Projects.Insights","com.azure.ai.projects.InsightsAsyncClient.generateInsight":"Azure.AI.Projects.Insights.generate","com.azure.ai.projects.InsightsAsyncClient.generateInsightWithResponse":"Azure.AI.Projects.Insights.generate","com.azure.ai.projects.InsightsAsyncClient.getInsight":"Azure.AI.Projects.Insights.get","com.azure.ai.projects.InsightsAsyncClient.getInsightWithResponse":"Azure.AI.Projects.Insights.get","com.azure.ai.projects.InsightsAsyncClient.listInsights":"Azure.AI.Projects.Insights.list","com.azure.ai.projects.InsightsClient":"Azure.AI.Projects.Insights","com.azure.ai.projects.InsightsClient.generateInsight":"Azure.AI.Projects.Insights.generate","com.azure.ai.projects.InsightsClient.generateInsightWithResponse":"Azure.AI.Projects.Insights.generate","com.azure.ai.projects.InsightsClient.getInsight":"Azure.AI.Projects.Insights.get","com.azure.ai.projects.InsightsClient.getInsightWithResponse":"Azure.AI.Projects.Insights.get","com.azure.ai.projects.InsightsClient.listInsights":"Azure.AI.Projects.Insights.list","com.azure.ai.projects.RedTeamsAsyncClient":"Azure.AI.Projects.RedTeams","com.azure.ai.projects.RedTeamsAsyncClient.createRedTeamRun":"Azure.AI.Projects.RedTeams.create","com.azure.ai.projects.RedTeamsAsyncClient.createRedTeamRunWithResponse":"Azure.AI.Projects.RedTeams.create","com.azure.ai.projects.RedTeamsAsyncClient.getRedTeam":"Azure.AI.Projects.RedTeams.get","com.azure.ai.projects.RedTeamsAsyncClient.getRedTeamWithResponse":"Azure.AI.Projects.RedTeams.get","com.azure.ai.projects.RedTeamsAsyncClient.listRedTeams":"Azure.AI.Projects.RedTeams.list","com.azure.ai.projects.RedTeamsClient":"Azure.AI.Projects.RedTeams","com.azure.ai.projects.RedTeamsClient.createRedTeamRun":"Azure.AI.Projects.RedTeams.create","com.azure.ai.projects.RedTeamsClient.createRedTeamRunWithResponse":"Azure.AI.Projects.RedTeams.create","com.azure.ai.projects.RedTeamsClient.getRedTeam":"Azure.AI.Projects.RedTeams.get","com.azure.ai.projects.RedTeamsClient.getRedTeamWithResponse":"Azure.AI.Projects.RedTeams.get","com.azure.ai.projects.RedTeamsClient.listRedTeams":"Azure.AI.Projects.RedTeams.list","com.azure.ai.projects.SchedulesAsyncClient":"Azure.AI.Projects.Schedules","com.azure.ai.projects.SchedulesAsyncClient.createOrUpdateSchedule":"Azure.AI.Projects.Schedules.createOrUpdate","com.azure.ai.projects.SchedulesAsyncClient.createOrUpdateScheduleWithResponse":"Azure.AI.Projects.Schedules.createOrUpdate","com.azure.ai.projects.SchedulesAsyncClient.deleteSchedule":"Azure.AI.Projects.Schedules.delete","com.azure.ai.projects.SchedulesAsyncClient.deleteScheduleWithResponse":"Azure.AI.Projects.Schedules.delete","com.azure.ai.projects.SchedulesAsyncClient.getSchedule":"Azure.AI.Projects.Schedules.get","com.azure.ai.projects.SchedulesAsyncClient.getScheduleRun":"Azure.AI.Projects.Schedules.getRun","com.azure.ai.projects.SchedulesAsyncClient.getScheduleRunWithResponse":"Azure.AI.Projects.Schedules.getRun","com.azure.ai.projects.SchedulesAsyncClient.getScheduleWithResponse":"Azure.AI.Projects.Schedules.get","com.azure.ai.projects.SchedulesAsyncClient.listScheduleRuns":"Azure.AI.Projects.Schedules.listRuns","com.azure.ai.projects.SchedulesAsyncClient.listSchedules":"Azure.AI.Projects.Schedules.list","com.azure.ai.projects.SchedulesClient":"Azure.AI.Projects.Schedules","com.azure.ai.projects.SchedulesClient.createOrUpdateSchedule":"Azure.AI.Projects.Schedules.createOrUpdate","com.azure.ai.projects.SchedulesClient.createOrUpdateScheduleWithResponse":"Azure.AI.Projects.Schedules.createOrUpdate","com.azure.ai.projects.SchedulesClient.deleteSchedule":"Azure.AI.Projects.Schedules.delete","com.azure.ai.projects.SchedulesClient.deleteScheduleWithResponse":"Azure.AI.Projects.Schedules.delete","com.azure.ai.projects.SchedulesClient.getSchedule":"Azure.AI.Projects.Schedules.get","com.azure.ai.projects.SchedulesClient.getScheduleRun":"Azure.AI.Projects.Schedules.getRun","com.azure.ai.projects.SchedulesClient.getScheduleRunWithResponse":"Azure.AI.Projects.Schedules.getRun","com.azure.ai.projects.SchedulesClient.getScheduleWithResponse":"Azure.AI.Projects.Schedules.get","com.azure.ai.projects.SchedulesClient.listScheduleRuns":"Azure.AI.Projects.Schedules.listRuns","com.azure.ai.projects.SchedulesClient.listSchedules":"Azure.AI.Projects.Schedules.list","com.azure.ai.projects.SkillsAsyncClient":"Azure.AI.Projects.Skills","com.azure.ai.projects.SkillsAsyncClient.createSkill":"Azure.AI.Projects.Skills.createSkill","com.azure.ai.projects.SkillsAsyncClient.createSkillFromPackage":"Azure.AI.Projects.Skills.createSkillFromPackage","com.azure.ai.projects.SkillsAsyncClient.createSkillFromPackageWithResponse":"Azure.AI.Projects.Skills.createSkillFromPackage","com.azure.ai.projects.SkillsAsyncClient.createSkillWithResponse":"Azure.AI.Projects.Skills.createSkill","com.azure.ai.projects.SkillsAsyncClient.downloadSkill":"Azure.AI.Projects.Skills.downloadSkill","com.azure.ai.projects.SkillsAsyncClient.downloadSkillWithResponse":"Azure.AI.Projects.Skills.downloadSkill","com.azure.ai.projects.SkillsAsyncClient.getSkill":"Azure.AI.Projects.Skills.getSkill","com.azure.ai.projects.SkillsAsyncClient.getSkillWithResponse":"Azure.AI.Projects.Skills.getSkill","com.azure.ai.projects.SkillsAsyncClient.listSkills":"Azure.AI.Projects.Skills.listSkills","com.azure.ai.projects.SkillsAsyncClient.updateSkill":"Azure.AI.Projects.Skills.updateSkill","com.azure.ai.projects.SkillsAsyncClient.updateSkillWithResponse":"Azure.AI.Projects.Skills.updateSkill","com.azure.ai.projects.SkillsClient":"Azure.AI.Projects.Skills","com.azure.ai.projects.SkillsClient.createSkill":"Azure.AI.Projects.Skills.createSkill","com.azure.ai.projects.SkillsClient.createSkillFromPackage":"Azure.AI.Projects.Skills.createSkillFromPackage","com.azure.ai.projects.SkillsClient.createSkillFromPackageWithResponse":"Azure.AI.Projects.Skills.createSkillFromPackage","com.azure.ai.projects.SkillsClient.createSkillWithResponse":"Azure.AI.Projects.Skills.createSkill","com.azure.ai.projects.SkillsClient.downloadSkill":"Azure.AI.Projects.Skills.downloadSkill","com.azure.ai.projects.SkillsClient.downloadSkillWithResponse":"Azure.AI.Projects.Skills.downloadSkill","com.azure.ai.projects.SkillsClient.getSkill":"Azure.AI.Projects.Skills.getSkill","com.azure.ai.projects.SkillsClient.getSkillWithResponse":"Azure.AI.Projects.Skills.getSkill","com.azure.ai.projects.SkillsClient.listSkills":"Azure.AI.Projects.Skills.listSkills","com.azure.ai.projects.SkillsClient.updateSkill":"Azure.AI.Projects.Skills.updateSkill","com.azure.ai.projects.SkillsClient.updateSkillWithResponse":"Azure.AI.Projects.Skills.updateSkill","com.azure.ai.projects.implementation.models.CreateSkillRequest":"Azure.AI.Projects.createSkill.Request.anonymous","com.azure.ai.projects.implementation.models.UpdateSkillRequest":"Azure.AI.Projects.updateSkill.Request.anonymous","com.azure.ai.projects.models.AIProjectIndex":"Azure.AI.Projects.Index","com.azure.ai.projects.models.AgentClusterInsightRequest":"Azure.AI.Projects.AgentClusterInsightRequest","com.azure.ai.projects.models.AgentClusterInsightResult":"Azure.AI.Projects.AgentClusterInsightResult","com.azure.ai.projects.models.AgentTaxonomyInput":"Azure.AI.Projects.AgentTaxonomyInput","com.azure.ai.projects.models.AgenticIdentityPreviewCredential":"Azure.AI.Projects.AgenticIdentityPreviewCredentials","com.azure.ai.projects.models.ApiKeyCredential":"Azure.AI.Projects.ApiKeyCredentials","com.azure.ai.projects.models.AttackStrategy":"Azure.AI.Projects.AttackStrategy","com.azure.ai.projects.models.AzureAIAgentTarget":"Azure.AI.Projects.AzureAIAgentTarget","com.azure.ai.projects.models.AzureAIModelTarget":"Azure.AI.Projects.AzureAIModelTarget","com.azure.ai.projects.models.AzureAISearchIndex":"Azure.AI.Projects.AzureAISearchIndex","com.azure.ai.projects.models.AzureOpenAIModelConfiguration":"Azure.AI.Projects.AzureOpenAIModelConfiguration","com.azure.ai.projects.models.BaseCredential":"Azure.AI.Projects.BaseCredentials","com.azure.ai.projects.models.BlobReference":"Azure.AI.Projects.BlobReference","com.azure.ai.projects.models.BlobReferenceSasCredential":"Azure.AI.Projects.SasCredential","com.azure.ai.projects.models.ChartCoordinate":"Azure.AI.Projects.ChartCoordinate","com.azure.ai.projects.models.ClusterInsightResult":"Azure.AI.Projects.ClusterInsightResult","com.azure.ai.projects.models.ClusterTokenUsage":"Azure.AI.Projects.ClusterTokenUsage","com.azure.ai.projects.models.CodeBasedEvaluatorDefinition":"Azure.AI.Projects.CodeBasedEvaluatorDefinition","com.azure.ai.projects.models.Connection":"Azure.AI.Projects.Connection","com.azure.ai.projects.models.ConnectionType":"Azure.AI.Projects.ConnectionType","com.azure.ai.projects.models.ContinuousEvaluationRuleAction":"Azure.AI.Projects.ContinuousEvaluationRuleAction","com.azure.ai.projects.models.CosmosDBIndex":"Azure.AI.Projects.CosmosDBIndex","com.azure.ai.projects.models.CredentialType":"Azure.AI.Projects.CredentialType","com.azure.ai.projects.models.CronTrigger":"Azure.AI.Projects.CronTrigger","com.azure.ai.projects.models.CustomCredential":"Azure.AI.Projects.CustomCredential","com.azure.ai.projects.models.DailyRecurrenceSchedule":"Azure.AI.Projects.DailyRecurrenceSchedule","com.azure.ai.projects.models.DatasetCredential":"Azure.AI.Projects.AssetCredentialResponse","com.azure.ai.projects.models.DatasetType":"Azure.AI.Projects.DatasetType","com.azure.ai.projects.models.DatasetVersion":"Azure.AI.Projects.DatasetVersion","com.azure.ai.projects.models.Deployment":"Azure.AI.Projects.Deployment","com.azure.ai.projects.models.DeploymentType":"Azure.AI.Projects.DeploymentType","com.azure.ai.projects.models.EmbeddingConfiguration":"Azure.AI.Projects.EmbeddingConfiguration","com.azure.ai.projects.models.EntraIdCredential":"Azure.AI.Projects.EntraIDCredentials","com.azure.ai.projects.models.EvaluationComparisonInsightRequest":"Azure.AI.Projects.EvaluationComparisonInsightRequest","com.azure.ai.projects.models.EvaluationComparisonInsightResult":"Azure.AI.Projects.EvaluationComparisonInsightResult","com.azure.ai.projects.models.EvaluationResult":"Azure.AI.Projects.EvalResult","com.azure.ai.projects.models.EvaluationResultSample":"Azure.AI.Projects.EvaluationResultSample","com.azure.ai.projects.models.EvaluationRule":"Azure.AI.Projects.EvaluationRule","com.azure.ai.projects.models.EvaluationRuleAction":"Azure.AI.Projects.EvaluationRuleAction","com.azure.ai.projects.models.EvaluationRuleActionType":"Azure.AI.Projects.EvaluationRuleActionType","com.azure.ai.projects.models.EvaluationRuleEventType":"Azure.AI.Projects.EvaluationRuleEventType","com.azure.ai.projects.models.EvaluationRuleFilter":"Azure.AI.Projects.EvaluationRuleFilter","com.azure.ai.projects.models.EvaluationRunClusterInsightRequest":"Azure.AI.Projects.EvaluationRunClusterInsightRequest","com.azure.ai.projects.models.EvaluationRunClusterInsightResult":"Azure.AI.Projects.EvaluationRunClusterInsightResult","com.azure.ai.projects.models.EvaluationRunResultCompareItem":"Azure.AI.Projects.EvalRunResultCompareItem","com.azure.ai.projects.models.EvaluationRunResultComparison":"Azure.AI.Projects.EvalRunResultComparison","com.azure.ai.projects.models.EvaluationRunResultSummary":"Azure.AI.Projects.EvalRunResultSummary","com.azure.ai.projects.models.EvaluationScheduleTask":"Azure.AI.Projects.EvaluationScheduleTask","com.azure.ai.projects.models.EvaluationScheduleTaskEvalRun":"Azure.AI.Projects.EvaluationScheduleTask.evalRun.anonymous","com.azure.ai.projects.models.EvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomy","com.azure.ai.projects.models.EvaluationTaxonomyInput":"Azure.AI.Projects.EvaluationTaxonomyInput","com.azure.ai.projects.models.EvaluationTaxonomyInputType":"Azure.AI.Projects.EvaluationTaxonomyInputType","com.azure.ai.projects.models.EvaluatorCategory":"Azure.AI.Projects.EvaluatorCategory","com.azure.ai.projects.models.EvaluatorDefinition":"Azure.AI.Projects.EvaluatorDefinition","com.azure.ai.projects.models.EvaluatorDefinitionType":"Azure.AI.Projects.EvaluatorDefinitionType","com.azure.ai.projects.models.EvaluatorMetric":"Azure.AI.Projects.EvaluatorMetric","com.azure.ai.projects.models.EvaluatorMetricDirection":"Azure.AI.Projects.EvaluatorMetricDirection","com.azure.ai.projects.models.EvaluatorMetricType":"Azure.AI.Projects.EvaluatorMetricType","com.azure.ai.projects.models.EvaluatorType":"Azure.AI.Projects.EvaluatorType","com.azure.ai.projects.models.EvaluatorVersion":"Azure.AI.Projects.EvaluatorVersion","com.azure.ai.projects.models.FieldMapping":"Azure.AI.Projects.FieldMapping","com.azure.ai.projects.models.FileDatasetVersion":"Azure.AI.Projects.FileDatasetVersion","com.azure.ai.projects.models.FolderDatasetVersion":"Azure.AI.Projects.FolderDatasetVersion","com.azure.ai.projects.models.FoundryFeaturesOptInKeys":"Azure.AI.Projects.FoundryFeaturesOptInKeys","com.azure.ai.projects.models.HourlyRecurrenceSchedule":"Azure.AI.Projects.HourlyRecurrenceSchedule","com.azure.ai.projects.models.HumanEvaluationPreviewRuleAction":"Azure.AI.Projects.HumanEvaluationPreviewRuleAction","com.azure.ai.projects.models.IndexType":"Azure.AI.Projects.IndexType","com.azure.ai.projects.models.Insight":"Azure.AI.Projects.Insight","com.azure.ai.projects.models.InsightCluster":"Azure.AI.Projects.InsightCluster","com.azure.ai.projects.models.InsightModelConfiguration":"Azure.AI.Projects.InsightModelConfiguration","com.azure.ai.projects.models.InsightRequest":"Azure.AI.Projects.InsightRequest","com.azure.ai.projects.models.InsightResult":"Azure.AI.Projects.InsightResult","com.azure.ai.projects.models.InsightSample":"Azure.AI.Projects.InsightSample","com.azure.ai.projects.models.InsightScheduleTask":"Azure.AI.Projects.InsightScheduleTask","com.azure.ai.projects.models.InsightSummary":"Azure.AI.Projects.InsightSummary","com.azure.ai.projects.models.InsightType":"Azure.AI.Projects.InsightType","com.azure.ai.projects.models.InsightsMetadata":"Azure.AI.Projects.InsightsMetadata","com.azure.ai.projects.models.ListVersionsRequestType":"Azure.AI.Projects.listVersions.RequestType.anonymous","com.azure.ai.projects.models.ManagedAzureAISearchIndex":"Azure.AI.Projects.ManagedAzureAISearchIndex","com.azure.ai.projects.models.ModelDeployment":"Azure.AI.Projects.ModelDeployment","com.azure.ai.projects.models.ModelDeploymentSku":"Azure.AI.Projects.Sku","com.azure.ai.projects.models.ModelSamplingParams":"Azure.AI.Projects.ModelSamplingParams","com.azure.ai.projects.models.MonthlyRecurrenceSchedule":"Azure.AI.Projects.MonthlyRecurrenceSchedule","com.azure.ai.projects.models.NoAuthenticationCredential":"Azure.AI.Projects.NoAuthenticationCredentials","com.azure.ai.projects.models.OneTimeTrigger":"Azure.AI.Projects.OneTimeTrigger","com.azure.ai.projects.models.OperationStatus":"Azure.Core.Foundations.OperationState","com.azure.ai.projects.models.PendingUploadRequest":"Azure.AI.Projects.PendingUploadRequest","com.azure.ai.projects.models.PendingUploadResponse":"Azure.AI.Projects.PendingUploadResponse","com.azure.ai.projects.models.PendingUploadType":"Azure.AI.Projects.PendingUploadType","com.azure.ai.projects.models.PromptBasedEvaluatorDefinition":"Azure.AI.Projects.PromptBasedEvaluatorDefinition","com.azure.ai.projects.models.RecurrenceSchedule":"Azure.AI.Projects.RecurrenceSchedule","com.azure.ai.projects.models.RecurrenceTrigger":"Azure.AI.Projects.RecurrenceTrigger","com.azure.ai.projects.models.RecurrenceType":"Azure.AI.Projects.RecurrenceType","com.azure.ai.projects.models.RedTeam":"Azure.AI.Projects.RedTeam","com.azure.ai.projects.models.RiskCategory":"Azure.AI.Projects.RiskCategory","com.azure.ai.projects.models.SampleType":"Azure.AI.Projects.SampleType","com.azure.ai.projects.models.SasCredential":"Azure.AI.Projects.SASCredentials","com.azure.ai.projects.models.Schedule":"Azure.AI.Projects.Schedule","com.azure.ai.projects.models.ScheduleProvisioningStatus":"Azure.AI.Projects.ScheduleProvisioningStatus","com.azure.ai.projects.models.ScheduleRun":"Azure.AI.Projects.ScheduleRun","com.azure.ai.projects.models.ScheduleTask":"Azure.AI.Projects.ScheduleTask","com.azure.ai.projects.models.ScheduleTaskType":"Azure.AI.Projects.ScheduleTaskType","com.azure.ai.projects.models.SkillDetails":"Azure.AI.Projects.SkillObject","com.azure.ai.projects.models.Target":"Azure.AI.Projects.Target","com.azure.ai.projects.models.TargetConfig":"Azure.AI.Projects.TargetConfig","com.azure.ai.projects.models.TaxonomyCategory":"Azure.AI.Projects.TaxonomyCategory","com.azure.ai.projects.models.TaxonomySubCategory":"Azure.AI.Projects.TaxonomySubCategory","com.azure.ai.projects.models.ToolDescription":"Azure.AI.Projects.ToolDescription","com.azure.ai.projects.models.TreatmentEffectType":"Azure.AI.Projects.TreatmentEffectType","com.azure.ai.projects.models.Trigger":"Azure.AI.Projects.Trigger","com.azure.ai.projects.models.TriggerType":"Azure.AI.Projects.TriggerType","com.azure.ai.projects.models.WeeklyRecurrenceSchedule":"Azure.AI.Projects.WeeklyRecurrenceSchedule"},"generatedFiles":["src/main/java/com/azure/ai/projects/AIProjectClientBuilder.java","src/main/java/com/azure/ai/projects/AIProjectsServiceVersion.java","src/main/java/com/azure/ai/projects/ConnectionsAsyncClient.java","src/main/java/com/azure/ai/projects/ConnectionsClient.java","src/main/java/com/azure/ai/projects/DatasetsAsyncClient.java","src/main/java/com/azure/ai/projects/DatasetsClient.java","src/main/java/com/azure/ai/projects/DeploymentsAsyncClient.java","src/main/java/com/azure/ai/projects/DeploymentsClient.java","src/main/java/com/azure/ai/projects/EvaluationRulesAsyncClient.java","src/main/java/com/azure/ai/projects/EvaluationRulesClient.java","src/main/java/com/azure/ai/projects/EvaluationTaxonomiesAsyncClient.java","src/main/java/com/azure/ai/projects/EvaluationTaxonomiesClient.java","src/main/java/com/azure/ai/projects/EvaluatorsAsyncClient.java","src/main/java/com/azure/ai/projects/EvaluatorsClient.java","src/main/java/com/azure/ai/projects/IndexesAsyncClient.java","src/main/java/com/azure/ai/projects/IndexesClient.java","src/main/java/com/azure/ai/projects/InsightsAsyncClient.java","src/main/java/com/azure/ai/projects/InsightsClient.java","src/main/java/com/azure/ai/projects/RedTeamsAsyncClient.java","src/main/java/com/azure/ai/projects/RedTeamsClient.java","src/main/java/com/azure/ai/projects/SchedulesAsyncClient.java","src/main/java/com/azure/ai/projects/SchedulesClient.java","src/main/java/com/azure/ai/projects/SkillsAsyncClient.java","src/main/java/com/azure/ai/projects/SkillsClient.java","src/main/java/com/azure/ai/projects/implementation/AIProjectClientImpl.java","src/main/java/com/azure/ai/projects/implementation/ConnectionsImpl.java","src/main/java/com/azure/ai/projects/implementation/DatasetsImpl.java","src/main/java/com/azure/ai/projects/implementation/DeploymentsImpl.java","src/main/java/com/azure/ai/projects/implementation/EvaluationRulesImpl.java","src/main/java/com/azure/ai/projects/implementation/EvaluationTaxonomiesImpl.java","src/main/java/com/azure/ai/projects/implementation/EvaluatorsImpl.java","src/main/java/com/azure/ai/projects/implementation/IndexesImpl.java","src/main/java/com/azure/ai/projects/implementation/InsightsImpl.java","src/main/java/com/azure/ai/projects/implementation/JsonMergePatchHelper.java","src/main/java/com/azure/ai/projects/implementation/RedTeamsImpl.java","src/main/java/com/azure/ai/projects/implementation/SchedulesImpl.java","src/main/java/com/azure/ai/projects/implementation/SkillsImpl.java","src/main/java/com/azure/ai/projects/implementation/models/CreateSkillRequest.java","src/main/java/com/azure/ai/projects/implementation/models/UpdateSkillRequest.java","src/main/java/com/azure/ai/projects/implementation/models/package-info.java","src/main/java/com/azure/ai/projects/implementation/package-info.java","src/main/java/com/azure/ai/projects/models/AIProjectIndex.java","src/main/java/com/azure/ai/projects/models/AgentClusterInsightRequest.java","src/main/java/com/azure/ai/projects/models/AgentClusterInsightResult.java","src/main/java/com/azure/ai/projects/models/AgentTaxonomyInput.java","src/main/java/com/azure/ai/projects/models/AgenticIdentityPreviewCredential.java","src/main/java/com/azure/ai/projects/models/ApiKeyCredential.java","src/main/java/com/azure/ai/projects/models/AttackStrategy.java","src/main/java/com/azure/ai/projects/models/AzureAIAgentTarget.java","src/main/java/com/azure/ai/projects/models/AzureAIModelTarget.java","src/main/java/com/azure/ai/projects/models/AzureAISearchIndex.java","src/main/java/com/azure/ai/projects/models/AzureOpenAIModelConfiguration.java","src/main/java/com/azure/ai/projects/models/BaseCredential.java","src/main/java/com/azure/ai/projects/models/BlobReference.java","src/main/java/com/azure/ai/projects/models/BlobReferenceSasCredential.java","src/main/java/com/azure/ai/projects/models/ChartCoordinate.java","src/main/java/com/azure/ai/projects/models/ClusterInsightResult.java","src/main/java/com/azure/ai/projects/models/ClusterTokenUsage.java","src/main/java/com/azure/ai/projects/models/CodeBasedEvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/Connection.java","src/main/java/com/azure/ai/projects/models/ConnectionType.java","src/main/java/com/azure/ai/projects/models/ContinuousEvaluationRuleAction.java","src/main/java/com/azure/ai/projects/models/CosmosDBIndex.java","src/main/java/com/azure/ai/projects/models/CredentialType.java","src/main/java/com/azure/ai/projects/models/CronTrigger.java","src/main/java/com/azure/ai/projects/models/CustomCredential.java","src/main/java/com/azure/ai/projects/models/DailyRecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/DatasetCredential.java","src/main/java/com/azure/ai/projects/models/DatasetType.java","src/main/java/com/azure/ai/projects/models/DatasetVersion.java","src/main/java/com/azure/ai/projects/models/Deployment.java","src/main/java/com/azure/ai/projects/models/DeploymentType.java","src/main/java/com/azure/ai/projects/models/EmbeddingConfiguration.java","src/main/java/com/azure/ai/projects/models/EntraIdCredential.java","src/main/java/com/azure/ai/projects/models/EvaluationComparisonInsightRequest.java","src/main/java/com/azure/ai/projects/models/EvaluationComparisonInsightResult.java","src/main/java/com/azure/ai/projects/models/EvaluationResult.java","src/main/java/com/azure/ai/projects/models/EvaluationResultSample.java","src/main/java/com/azure/ai/projects/models/EvaluationRule.java","src/main/java/com/azure/ai/projects/models/EvaluationRuleAction.java","src/main/java/com/azure/ai/projects/models/EvaluationRuleActionType.java","src/main/java/com/azure/ai/projects/models/EvaluationRuleEventType.java","src/main/java/com/azure/ai/projects/models/EvaluationRuleFilter.java","src/main/java/com/azure/ai/projects/models/EvaluationRunClusterInsightRequest.java","src/main/java/com/azure/ai/projects/models/EvaluationRunClusterInsightResult.java","src/main/java/com/azure/ai/projects/models/EvaluationRunResultCompareItem.java","src/main/java/com/azure/ai/projects/models/EvaluationRunResultComparison.java","src/main/java/com/azure/ai/projects/models/EvaluationRunResultSummary.java","src/main/java/com/azure/ai/projects/models/EvaluationScheduleTask.java","src/main/java/com/azure/ai/projects/models/EvaluationScheduleTaskEvalRun.java","src/main/java/com/azure/ai/projects/models/EvaluationTaxonomy.java","src/main/java/com/azure/ai/projects/models/EvaluationTaxonomyInput.java","src/main/java/com/azure/ai/projects/models/EvaluationTaxonomyInputType.java","src/main/java/com/azure/ai/projects/models/EvaluatorCategory.java","src/main/java/com/azure/ai/projects/models/EvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/EvaluatorDefinitionType.java","src/main/java/com/azure/ai/projects/models/EvaluatorMetric.java","src/main/java/com/azure/ai/projects/models/EvaluatorMetricDirection.java","src/main/java/com/azure/ai/projects/models/EvaluatorMetricType.java","src/main/java/com/azure/ai/projects/models/EvaluatorType.java","src/main/java/com/azure/ai/projects/models/EvaluatorVersion.java","src/main/java/com/azure/ai/projects/models/FieldMapping.java","src/main/java/com/azure/ai/projects/models/FileDatasetVersion.java","src/main/java/com/azure/ai/projects/models/FolderDatasetVersion.java","src/main/java/com/azure/ai/projects/models/FoundryFeaturesOptInKeys.java","src/main/java/com/azure/ai/projects/models/HourlyRecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/HumanEvaluationPreviewRuleAction.java","src/main/java/com/azure/ai/projects/models/IndexType.java","src/main/java/com/azure/ai/projects/models/Insight.java","src/main/java/com/azure/ai/projects/models/InsightCluster.java","src/main/java/com/azure/ai/projects/models/InsightModelConfiguration.java","src/main/java/com/azure/ai/projects/models/InsightRequest.java","src/main/java/com/azure/ai/projects/models/InsightResult.java","src/main/java/com/azure/ai/projects/models/InsightSample.java","src/main/java/com/azure/ai/projects/models/InsightScheduleTask.java","src/main/java/com/azure/ai/projects/models/InsightSummary.java","src/main/java/com/azure/ai/projects/models/InsightType.java","src/main/java/com/azure/ai/projects/models/InsightsMetadata.java","src/main/java/com/azure/ai/projects/models/ListVersionsRequestType.java","src/main/java/com/azure/ai/projects/models/ManagedAzureAISearchIndex.java","src/main/java/com/azure/ai/projects/models/ModelDeployment.java","src/main/java/com/azure/ai/projects/models/ModelDeploymentSku.java","src/main/java/com/azure/ai/projects/models/ModelSamplingParams.java","src/main/java/com/azure/ai/projects/models/MonthlyRecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/NoAuthenticationCredential.java","src/main/java/com/azure/ai/projects/models/OneTimeTrigger.java","src/main/java/com/azure/ai/projects/models/OperationStatus.java","src/main/java/com/azure/ai/projects/models/PendingUploadRequest.java","src/main/java/com/azure/ai/projects/models/PendingUploadResponse.java","src/main/java/com/azure/ai/projects/models/PendingUploadType.java","src/main/java/com/azure/ai/projects/models/PromptBasedEvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/RecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/RecurrenceTrigger.java","src/main/java/com/azure/ai/projects/models/RecurrenceType.java","src/main/java/com/azure/ai/projects/models/RedTeam.java","src/main/java/com/azure/ai/projects/models/RiskCategory.java","src/main/java/com/azure/ai/projects/models/SampleType.java","src/main/java/com/azure/ai/projects/models/SasCredential.java","src/main/java/com/azure/ai/projects/models/Schedule.java","src/main/java/com/azure/ai/projects/models/ScheduleProvisioningStatus.java","src/main/java/com/azure/ai/projects/models/ScheduleRun.java","src/main/java/com/azure/ai/projects/models/ScheduleTask.java","src/main/java/com/azure/ai/projects/models/ScheduleTaskType.java","src/main/java/com/azure/ai/projects/models/SkillDetails.java","src/main/java/com/azure/ai/projects/models/Target.java","src/main/java/com/azure/ai/projects/models/TargetConfig.java","src/main/java/com/azure/ai/projects/models/TaxonomyCategory.java","src/main/java/com/azure/ai/projects/models/TaxonomySubCategory.java","src/main/java/com/azure/ai/projects/models/ToolDescription.java","src/main/java/com/azure/ai/projects/models/TreatmentEffectType.java","src/main/java/com/azure/ai/projects/models/Trigger.java","src/main/java/com/azure/ai/projects/models/TriggerType.java","src/main/java/com/azure/ai/projects/models/WeeklyRecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/package-info.java","src/main/java/com/azure/ai/projects/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Azure.AI.Projects":"v1"},"crossLanguageDefinitions":{"com.azure.ai.projects.AIProjectClientBuilder":"Azure.AI.Projects","com.azure.ai.projects.ConnectionsAsyncClient":"Azure.AI.Projects.Connections","com.azure.ai.projects.ConnectionsAsyncClient.getConnection":"Azure.AI.Projects.Connections.get","com.azure.ai.projects.ConnectionsAsyncClient.getConnectionWithCredentials":"Azure.AI.Projects.Connections.getWithCredentials","com.azure.ai.projects.ConnectionsAsyncClient.getConnectionWithCredentialsWithResponse":"Azure.AI.Projects.Connections.getWithCredentials","com.azure.ai.projects.ConnectionsAsyncClient.getConnectionWithResponse":"Azure.AI.Projects.Connections.get","com.azure.ai.projects.ConnectionsAsyncClient.listConnections":"Azure.AI.Projects.Connections.list","com.azure.ai.projects.ConnectionsClient":"Azure.AI.Projects.Connections","com.azure.ai.projects.ConnectionsClient.getConnection":"Azure.AI.Projects.Connections.get","com.azure.ai.projects.ConnectionsClient.getConnectionWithCredentials":"Azure.AI.Projects.Connections.getWithCredentials","com.azure.ai.projects.ConnectionsClient.getConnectionWithCredentialsWithResponse":"Azure.AI.Projects.Connections.getWithCredentials","com.azure.ai.projects.ConnectionsClient.getConnectionWithResponse":"Azure.AI.Projects.Connections.get","com.azure.ai.projects.ConnectionsClient.listConnections":"Azure.AI.Projects.Connections.list","com.azure.ai.projects.DataGenerationJobsAsyncClient":"Azure.AI.Projects.DataGenerationJobs","com.azure.ai.projects.DataGenerationJobsAsyncClient.cancelGenerationJob":"Azure.AI.Projects.DataGenerationJobs.cancel","com.azure.ai.projects.DataGenerationJobsAsyncClient.cancelGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.cancel","com.azure.ai.projects.DataGenerationJobsAsyncClient.createGenerationJob":"Azure.AI.Projects.DataGenerationJobs.create","com.azure.ai.projects.DataGenerationJobsAsyncClient.createGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.create","com.azure.ai.projects.DataGenerationJobsAsyncClient.deleteGenerationJob":"Azure.AI.Projects.DataGenerationJobs.delete","com.azure.ai.projects.DataGenerationJobsAsyncClient.deleteGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.delete","com.azure.ai.projects.DataGenerationJobsAsyncClient.getGenerationJob":"Azure.AI.Projects.DataGenerationJobs.get","com.azure.ai.projects.DataGenerationJobsAsyncClient.getGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.get","com.azure.ai.projects.DataGenerationJobsAsyncClient.listGenerationJobs":"Azure.AI.Projects.DataGenerationJobs.list","com.azure.ai.projects.DataGenerationJobsClient":"Azure.AI.Projects.DataGenerationJobs","com.azure.ai.projects.DataGenerationJobsClient.cancelGenerationJob":"Azure.AI.Projects.DataGenerationJobs.cancel","com.azure.ai.projects.DataGenerationJobsClient.cancelGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.cancel","com.azure.ai.projects.DataGenerationJobsClient.createGenerationJob":"Azure.AI.Projects.DataGenerationJobs.create","com.azure.ai.projects.DataGenerationJobsClient.createGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.create","com.azure.ai.projects.DataGenerationJobsClient.deleteGenerationJob":"Azure.AI.Projects.DataGenerationJobs.delete","com.azure.ai.projects.DataGenerationJobsClient.deleteGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.delete","com.azure.ai.projects.DataGenerationJobsClient.getGenerationJob":"Azure.AI.Projects.DataGenerationJobs.get","com.azure.ai.projects.DataGenerationJobsClient.getGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.get","com.azure.ai.projects.DataGenerationJobsClient.listGenerationJobs":"Azure.AI.Projects.DataGenerationJobs.list","com.azure.ai.projects.DatasetsAsyncClient":"Azure.AI.Projects.Datasets","com.azure.ai.projects.DatasetsAsyncClient.createOrUpdateDatasetVersion":"Azure.AI.Projects.Datasets.createOrUpdateVersion","com.azure.ai.projects.DatasetsAsyncClient.createOrUpdateDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.createOrUpdateVersion","com.azure.ai.projects.DatasetsAsyncClient.deleteDatasetVersion":"Azure.AI.Projects.Datasets.deleteVersion","com.azure.ai.projects.DatasetsAsyncClient.deleteDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.deleteVersion","com.azure.ai.projects.DatasetsAsyncClient.getCredentials":"Azure.AI.Projects.Datasets.getCredentials","com.azure.ai.projects.DatasetsAsyncClient.getCredentialsWithResponse":"Azure.AI.Projects.Datasets.getCredentials","com.azure.ai.projects.DatasetsAsyncClient.getDatasetVersion":"Azure.AI.Projects.Datasets.getVersion","com.azure.ai.projects.DatasetsAsyncClient.getDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.getVersion","com.azure.ai.projects.DatasetsAsyncClient.listDatasetVersions":"Azure.AI.Projects.Datasets.listVersions","com.azure.ai.projects.DatasetsAsyncClient.listLatestDatasetVersions":"Azure.AI.Projects.Datasets.listLatest","com.azure.ai.projects.DatasetsAsyncClient.pendingUpload":"Azure.AI.Projects.Datasets.startPendingUploadVersion","com.azure.ai.projects.DatasetsAsyncClient.pendingUploadWithResponse":"Azure.AI.Projects.Datasets.startPendingUploadVersion","com.azure.ai.projects.DatasetsClient":"Azure.AI.Projects.Datasets","com.azure.ai.projects.DatasetsClient.createOrUpdateDatasetVersion":"Azure.AI.Projects.Datasets.createOrUpdateVersion","com.azure.ai.projects.DatasetsClient.createOrUpdateDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.createOrUpdateVersion","com.azure.ai.projects.DatasetsClient.deleteDatasetVersion":"Azure.AI.Projects.Datasets.deleteVersion","com.azure.ai.projects.DatasetsClient.deleteDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.deleteVersion","com.azure.ai.projects.DatasetsClient.getCredentials":"Azure.AI.Projects.Datasets.getCredentials","com.azure.ai.projects.DatasetsClient.getCredentialsWithResponse":"Azure.AI.Projects.Datasets.getCredentials","com.azure.ai.projects.DatasetsClient.getDatasetVersion":"Azure.AI.Projects.Datasets.getVersion","com.azure.ai.projects.DatasetsClient.getDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.getVersion","com.azure.ai.projects.DatasetsClient.listDatasetVersions":"Azure.AI.Projects.Datasets.listVersions","com.azure.ai.projects.DatasetsClient.listLatestDatasetVersions":"Azure.AI.Projects.Datasets.listLatest","com.azure.ai.projects.DatasetsClient.pendingUpload":"Azure.AI.Projects.Datasets.startPendingUploadVersion","com.azure.ai.projects.DatasetsClient.pendingUploadWithResponse":"Azure.AI.Projects.Datasets.startPendingUploadVersion","com.azure.ai.projects.DeploymentsAsyncClient":"Azure.AI.Projects.Deployments","com.azure.ai.projects.DeploymentsAsyncClient.getDeployment":"Azure.AI.Projects.Deployments.get","com.azure.ai.projects.DeploymentsAsyncClient.getDeploymentWithResponse":"Azure.AI.Projects.Deployments.get","com.azure.ai.projects.DeploymentsAsyncClient.listDeployments":"Azure.AI.Projects.Deployments.list","com.azure.ai.projects.DeploymentsClient":"Azure.AI.Projects.Deployments","com.azure.ai.projects.DeploymentsClient.getDeployment":"Azure.AI.Projects.Deployments.get","com.azure.ai.projects.DeploymentsClient.getDeploymentWithResponse":"Azure.AI.Projects.Deployments.get","com.azure.ai.projects.DeploymentsClient.listDeployments":"Azure.AI.Projects.Deployments.list","com.azure.ai.projects.EvaluationRulesAsyncClient":"Azure.AI.Projects.EvaluationRules","com.azure.ai.projects.EvaluationRulesAsyncClient.createOrUpdateEvaluationRule":"Azure.AI.Projects.EvaluationRules.createOrUpdate","com.azure.ai.projects.EvaluationRulesAsyncClient.createOrUpdateEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.createOrUpdate","com.azure.ai.projects.EvaluationRulesAsyncClient.deleteEvaluationRule":"Azure.AI.Projects.EvaluationRules.delete","com.azure.ai.projects.EvaluationRulesAsyncClient.deleteEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.delete","com.azure.ai.projects.EvaluationRulesAsyncClient.getEvaluationRule":"Azure.AI.Projects.EvaluationRules.get","com.azure.ai.projects.EvaluationRulesAsyncClient.getEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.get","com.azure.ai.projects.EvaluationRulesAsyncClient.listEvaluationRules":"Azure.AI.Projects.EvaluationRules.list","com.azure.ai.projects.EvaluationRulesClient":"Azure.AI.Projects.EvaluationRules","com.azure.ai.projects.EvaluationRulesClient.createOrUpdateEvaluationRule":"Azure.AI.Projects.EvaluationRules.createOrUpdate","com.azure.ai.projects.EvaluationRulesClient.createOrUpdateEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.createOrUpdate","com.azure.ai.projects.EvaluationRulesClient.deleteEvaluationRule":"Azure.AI.Projects.EvaluationRules.delete","com.azure.ai.projects.EvaluationRulesClient.deleteEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.delete","com.azure.ai.projects.EvaluationRulesClient.getEvaluationRule":"Azure.AI.Projects.EvaluationRules.get","com.azure.ai.projects.EvaluationRulesClient.getEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.get","com.azure.ai.projects.EvaluationRulesClient.listEvaluationRules":"Azure.AI.Projects.EvaluationRules.list","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient":"Azure.AI.Projects.EvaluationTaxonomies","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.createEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.create","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.createEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.create","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.deleteEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.delete","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.deleteEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.delete","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.getEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.get","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.getEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.get","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.listEvaluationTaxonomies":"Azure.AI.Projects.EvaluationTaxonomies.list","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.updateEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.update","com.azure.ai.projects.EvaluationTaxonomiesAsyncClient.updateEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.update","com.azure.ai.projects.EvaluationTaxonomiesClient":"Azure.AI.Projects.EvaluationTaxonomies","com.azure.ai.projects.EvaluationTaxonomiesClient.createEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.create","com.azure.ai.projects.EvaluationTaxonomiesClient.createEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.create","com.azure.ai.projects.EvaluationTaxonomiesClient.deleteEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.delete","com.azure.ai.projects.EvaluationTaxonomiesClient.deleteEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.delete","com.azure.ai.projects.EvaluationTaxonomiesClient.getEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.get","com.azure.ai.projects.EvaluationTaxonomiesClient.getEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.get","com.azure.ai.projects.EvaluationTaxonomiesClient.listEvaluationTaxonomies":"Azure.AI.Projects.EvaluationTaxonomies.list","com.azure.ai.projects.EvaluationTaxonomiesClient.updateEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.update","com.azure.ai.projects.EvaluationTaxonomiesClient.updateEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.update","com.azure.ai.projects.EvaluatorGenerationJobsAsyncClient":"Azure.AI.Projects.EvaluatorGenerationJobs","com.azure.ai.projects.EvaluatorGenerationJobsAsyncClient.cancel":"Azure.AI.Projects.EvaluatorGenerationJobs.cancel","com.azure.ai.projects.EvaluatorGenerationJobsAsyncClient.cancelWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.cancel","com.azure.ai.projects.EvaluatorGenerationJobsAsyncClient.create":"Azure.AI.Projects.EvaluatorGenerationJobs.create","com.azure.ai.projects.EvaluatorGenerationJobsAsyncClient.createWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.create","com.azure.ai.projects.EvaluatorGenerationJobsAsyncClient.delete":"Azure.AI.Projects.EvaluatorGenerationJobs.delete","com.azure.ai.projects.EvaluatorGenerationJobsAsyncClient.deleteWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.delete","com.azure.ai.projects.EvaluatorGenerationJobsAsyncClient.get":"Azure.AI.Projects.EvaluatorGenerationJobs.get","com.azure.ai.projects.EvaluatorGenerationJobsAsyncClient.getWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.get","com.azure.ai.projects.EvaluatorGenerationJobsAsyncClient.list":"Azure.AI.Projects.EvaluatorGenerationJobs.list","com.azure.ai.projects.EvaluatorGenerationJobsClient":"Azure.AI.Projects.EvaluatorGenerationJobs","com.azure.ai.projects.EvaluatorGenerationJobsClient.cancel":"Azure.AI.Projects.EvaluatorGenerationJobs.cancel","com.azure.ai.projects.EvaluatorGenerationJobsClient.cancelWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.cancel","com.azure.ai.projects.EvaluatorGenerationJobsClient.create":"Azure.AI.Projects.EvaluatorGenerationJobs.create","com.azure.ai.projects.EvaluatorGenerationJobsClient.createWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.create","com.azure.ai.projects.EvaluatorGenerationJobsClient.delete":"Azure.AI.Projects.EvaluatorGenerationJobs.delete","com.azure.ai.projects.EvaluatorGenerationJobsClient.deleteWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.delete","com.azure.ai.projects.EvaluatorGenerationJobsClient.get":"Azure.AI.Projects.EvaluatorGenerationJobs.get","com.azure.ai.projects.EvaluatorGenerationJobsClient.getWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.get","com.azure.ai.projects.EvaluatorGenerationJobsClient.list":"Azure.AI.Projects.EvaluatorGenerationJobs.list","com.azure.ai.projects.EvaluatorsAsyncClient":"Azure.AI.Projects.Evaluators","com.azure.ai.projects.EvaluatorsAsyncClient.createEvaluatorVersion":"Azure.AI.Projects.Evaluators.createVersion","com.azure.ai.projects.EvaluatorsAsyncClient.createEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.createVersion","com.azure.ai.projects.EvaluatorsAsyncClient.deleteEvaluatorVersion":"Azure.AI.Projects.Evaluators.deleteVersion","com.azure.ai.projects.EvaluatorsAsyncClient.deleteEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.deleteVersion","com.azure.ai.projects.EvaluatorsAsyncClient.getEvaluatorVersion":"Azure.AI.Projects.Evaluators.getVersion","com.azure.ai.projects.EvaluatorsAsyncClient.getEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.getVersion","com.azure.ai.projects.EvaluatorsAsyncClient.listEvaluatorVersions":"Azure.AI.Projects.Evaluators.listVersions","com.azure.ai.projects.EvaluatorsAsyncClient.listLatestEvaluatorVersions":"Azure.AI.Projects.Evaluators.listLatestVersions","com.azure.ai.projects.EvaluatorsAsyncClient.updateEvaluatorVersion":"Azure.AI.Projects.Evaluators.updateVersion","com.azure.ai.projects.EvaluatorsAsyncClient.updateEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.updateVersion","com.azure.ai.projects.EvaluatorsClient":"Azure.AI.Projects.Evaluators","com.azure.ai.projects.EvaluatorsClient.createEvaluatorVersion":"Azure.AI.Projects.Evaluators.createVersion","com.azure.ai.projects.EvaluatorsClient.createEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.createVersion","com.azure.ai.projects.EvaluatorsClient.deleteEvaluatorVersion":"Azure.AI.Projects.Evaluators.deleteVersion","com.azure.ai.projects.EvaluatorsClient.deleteEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.deleteVersion","com.azure.ai.projects.EvaluatorsClient.getEvaluatorVersion":"Azure.AI.Projects.Evaluators.getVersion","com.azure.ai.projects.EvaluatorsClient.getEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.getVersion","com.azure.ai.projects.EvaluatorsClient.listEvaluatorVersions":"Azure.AI.Projects.Evaluators.listVersions","com.azure.ai.projects.EvaluatorsClient.listLatestEvaluatorVersions":"Azure.AI.Projects.Evaluators.listLatestVersions","com.azure.ai.projects.EvaluatorsClient.updateEvaluatorVersion":"Azure.AI.Projects.Evaluators.updateVersion","com.azure.ai.projects.EvaluatorsClient.updateEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.updateVersion","com.azure.ai.projects.IndexesAsyncClient":"Azure.AI.Projects.Indexes","com.azure.ai.projects.IndexesAsyncClient.createOrUpdateIndexVersion":"Azure.AI.Projects.Indexes.createOrUpdateVersion","com.azure.ai.projects.IndexesAsyncClient.createOrUpdateIndexVersionWithResponse":"Azure.AI.Projects.Indexes.createOrUpdateVersion","com.azure.ai.projects.IndexesAsyncClient.deleteIndexVersion":"Azure.AI.Projects.Indexes.deleteVersion","com.azure.ai.projects.IndexesAsyncClient.deleteIndexVersionWithResponse":"Azure.AI.Projects.Indexes.deleteVersion","com.azure.ai.projects.IndexesAsyncClient.getIndexVersion":"Azure.AI.Projects.Indexes.getVersion","com.azure.ai.projects.IndexesAsyncClient.getIndexVersionWithResponse":"Azure.AI.Projects.Indexes.getVersion","com.azure.ai.projects.IndexesAsyncClient.listIndexVersions":"Azure.AI.Projects.Indexes.listVersions","com.azure.ai.projects.IndexesAsyncClient.listLatestIndexVersions":"Azure.AI.Projects.Indexes.listLatest","com.azure.ai.projects.IndexesClient":"Azure.AI.Projects.Indexes","com.azure.ai.projects.IndexesClient.createOrUpdateIndexVersion":"Azure.AI.Projects.Indexes.createOrUpdateVersion","com.azure.ai.projects.IndexesClient.createOrUpdateIndexVersionWithResponse":"Azure.AI.Projects.Indexes.createOrUpdateVersion","com.azure.ai.projects.IndexesClient.deleteIndexVersion":"Azure.AI.Projects.Indexes.deleteVersion","com.azure.ai.projects.IndexesClient.deleteIndexVersionWithResponse":"Azure.AI.Projects.Indexes.deleteVersion","com.azure.ai.projects.IndexesClient.getIndexVersion":"Azure.AI.Projects.Indexes.getVersion","com.azure.ai.projects.IndexesClient.getIndexVersionWithResponse":"Azure.AI.Projects.Indexes.getVersion","com.azure.ai.projects.IndexesClient.listIndexVersions":"Azure.AI.Projects.Indexes.listVersions","com.azure.ai.projects.IndexesClient.listLatestIndexVersions":"Azure.AI.Projects.Indexes.listLatest","com.azure.ai.projects.InsightsAsyncClient":"Azure.AI.Projects.Insights","com.azure.ai.projects.InsightsAsyncClient.generateInsight":"Azure.AI.Projects.Insights.generate","com.azure.ai.projects.InsightsAsyncClient.generateInsightWithResponse":"Azure.AI.Projects.Insights.generate","com.azure.ai.projects.InsightsAsyncClient.getInsight":"Azure.AI.Projects.Insights.get","com.azure.ai.projects.InsightsAsyncClient.getInsightWithResponse":"Azure.AI.Projects.Insights.get","com.azure.ai.projects.InsightsAsyncClient.listInsights":"Azure.AI.Projects.Insights.list","com.azure.ai.projects.InsightsClient":"Azure.AI.Projects.Insights","com.azure.ai.projects.InsightsClient.generateInsight":"Azure.AI.Projects.Insights.generate","com.azure.ai.projects.InsightsClient.generateInsightWithResponse":"Azure.AI.Projects.Insights.generate","com.azure.ai.projects.InsightsClient.getInsight":"Azure.AI.Projects.Insights.get","com.azure.ai.projects.InsightsClient.getInsightWithResponse":"Azure.AI.Projects.Insights.get","com.azure.ai.projects.InsightsClient.listInsights":"Azure.AI.Projects.Insights.list","com.azure.ai.projects.RedTeamsAsyncClient":"Azure.AI.Projects.RedTeams","com.azure.ai.projects.RedTeamsAsyncClient.createRedTeamRun":"Azure.AI.Projects.RedTeams.create","com.azure.ai.projects.RedTeamsAsyncClient.createRedTeamRunWithResponse":"Azure.AI.Projects.RedTeams.create","com.azure.ai.projects.RedTeamsAsyncClient.getRedTeam":"Azure.AI.Projects.RedTeams.get","com.azure.ai.projects.RedTeamsAsyncClient.getRedTeamWithResponse":"Azure.AI.Projects.RedTeams.get","com.azure.ai.projects.RedTeamsAsyncClient.listRedTeams":"Azure.AI.Projects.RedTeams.list","com.azure.ai.projects.RedTeamsClient":"Azure.AI.Projects.RedTeams","com.azure.ai.projects.RedTeamsClient.createRedTeamRun":"Azure.AI.Projects.RedTeams.create","com.azure.ai.projects.RedTeamsClient.createRedTeamRunWithResponse":"Azure.AI.Projects.RedTeams.create","com.azure.ai.projects.RedTeamsClient.getRedTeam":"Azure.AI.Projects.RedTeams.get","com.azure.ai.projects.RedTeamsClient.getRedTeamWithResponse":"Azure.AI.Projects.RedTeams.get","com.azure.ai.projects.RedTeamsClient.listRedTeams":"Azure.AI.Projects.RedTeams.list","com.azure.ai.projects.SchedulesAsyncClient":"Azure.AI.Projects.Schedules","com.azure.ai.projects.SchedulesAsyncClient.createOrUpdateSchedule":"Azure.AI.Projects.Schedules.createOrUpdate","com.azure.ai.projects.SchedulesAsyncClient.createOrUpdateScheduleWithResponse":"Azure.AI.Projects.Schedules.createOrUpdate","com.azure.ai.projects.SchedulesAsyncClient.deleteSchedule":"Azure.AI.Projects.Schedules.delete","com.azure.ai.projects.SchedulesAsyncClient.deleteScheduleWithResponse":"Azure.AI.Projects.Schedules.delete","com.azure.ai.projects.SchedulesAsyncClient.getSchedule":"Azure.AI.Projects.Schedules.get","com.azure.ai.projects.SchedulesAsyncClient.getScheduleRun":"Azure.AI.Projects.Schedules.getRun","com.azure.ai.projects.SchedulesAsyncClient.getScheduleRunWithResponse":"Azure.AI.Projects.Schedules.getRun","com.azure.ai.projects.SchedulesAsyncClient.getScheduleWithResponse":"Azure.AI.Projects.Schedules.get","com.azure.ai.projects.SchedulesAsyncClient.listScheduleRuns":"Azure.AI.Projects.Schedules.listRuns","com.azure.ai.projects.SchedulesAsyncClient.listSchedules":"Azure.AI.Projects.Schedules.list","com.azure.ai.projects.SchedulesClient":"Azure.AI.Projects.Schedules","com.azure.ai.projects.SchedulesClient.createOrUpdateSchedule":"Azure.AI.Projects.Schedules.createOrUpdate","com.azure.ai.projects.SchedulesClient.createOrUpdateScheduleWithResponse":"Azure.AI.Projects.Schedules.createOrUpdate","com.azure.ai.projects.SchedulesClient.deleteSchedule":"Azure.AI.Projects.Schedules.delete","com.azure.ai.projects.SchedulesClient.deleteScheduleWithResponse":"Azure.AI.Projects.Schedules.delete","com.azure.ai.projects.SchedulesClient.getSchedule":"Azure.AI.Projects.Schedules.get","com.azure.ai.projects.SchedulesClient.getScheduleRun":"Azure.AI.Projects.Schedules.getRun","com.azure.ai.projects.SchedulesClient.getScheduleRunWithResponse":"Azure.AI.Projects.Schedules.getRun","com.azure.ai.projects.SchedulesClient.getScheduleWithResponse":"Azure.AI.Projects.Schedules.get","com.azure.ai.projects.SchedulesClient.listScheduleRuns":"Azure.AI.Projects.Schedules.listRuns","com.azure.ai.projects.SchedulesClient.listSchedules":"Azure.AI.Projects.Schedules.list","com.azure.ai.projects.SkillsAsyncClient":"Azure.AI.Projects.Skills","com.azure.ai.projects.SkillsAsyncClient.createSkill":"Azure.AI.Projects.Skills.createSkill","com.azure.ai.projects.SkillsAsyncClient.createSkillFromPackage":"Azure.AI.Projects.Skills.createSkillFromPackage","com.azure.ai.projects.SkillsAsyncClient.createSkillFromPackageWithResponse":"Azure.AI.Projects.Skills.createSkillFromPackage","com.azure.ai.projects.SkillsAsyncClient.createSkillWithResponse":"Azure.AI.Projects.Skills.createSkill","com.azure.ai.projects.SkillsAsyncClient.downloadSkill":"Azure.AI.Projects.Skills.downloadSkill","com.azure.ai.projects.SkillsAsyncClient.downloadSkillWithResponse":"Azure.AI.Projects.Skills.downloadSkill","com.azure.ai.projects.SkillsAsyncClient.getSkill":"Azure.AI.Projects.Skills.getSkill","com.azure.ai.projects.SkillsAsyncClient.getSkillWithResponse":"Azure.AI.Projects.Skills.getSkill","com.azure.ai.projects.SkillsAsyncClient.listSkills":"Azure.AI.Projects.Skills.listSkills","com.azure.ai.projects.SkillsAsyncClient.updateSkill":"Azure.AI.Projects.Skills.updateSkill","com.azure.ai.projects.SkillsAsyncClient.updateSkillWithResponse":"Azure.AI.Projects.Skills.updateSkill","com.azure.ai.projects.SkillsClient":"Azure.AI.Projects.Skills","com.azure.ai.projects.SkillsClient.createSkill":"Azure.AI.Projects.Skills.createSkill","com.azure.ai.projects.SkillsClient.createSkillFromPackage":"Azure.AI.Projects.Skills.createSkillFromPackage","com.azure.ai.projects.SkillsClient.createSkillFromPackageWithResponse":"Azure.AI.Projects.Skills.createSkillFromPackage","com.azure.ai.projects.SkillsClient.createSkillWithResponse":"Azure.AI.Projects.Skills.createSkill","com.azure.ai.projects.SkillsClient.downloadSkill":"Azure.AI.Projects.Skills.downloadSkill","com.azure.ai.projects.SkillsClient.downloadSkillWithResponse":"Azure.AI.Projects.Skills.downloadSkill","com.azure.ai.projects.SkillsClient.getSkill":"Azure.AI.Projects.Skills.getSkill","com.azure.ai.projects.SkillsClient.getSkillWithResponse":"Azure.AI.Projects.Skills.getSkill","com.azure.ai.projects.SkillsClient.listSkills":"Azure.AI.Projects.Skills.listSkills","com.azure.ai.projects.SkillsClient.updateSkill":"Azure.AI.Projects.Skills.updateSkill","com.azure.ai.projects.SkillsClient.updateSkillWithResponse":"Azure.AI.Projects.Skills.updateSkill","com.azure.ai.projects.implementation.models.CreateSkillRequest":"Azure.AI.Projects.createSkill.Request.anonymous","com.azure.ai.projects.implementation.models.UpdateSkillRequest":"Azure.AI.Projects.updateSkill.Request.anonymous","com.azure.ai.projects.models.AIProjectIndex":"Azure.AI.Projects.Index","com.azure.ai.projects.models.AgentClusterInsightRequest":"Azure.AI.Projects.AgentClusterInsightRequest","com.azure.ai.projects.models.AgentClusterInsightResult":"Azure.AI.Projects.AgentClusterInsightResult","com.azure.ai.projects.models.AgentDataGenerationJobSource":"Azure.AI.Projects.AgentDataGenerationJobSource","com.azure.ai.projects.models.AgentEvaluatorGenerationJobSource":"Azure.AI.Projects.AgentEvaluatorGenerationJobSource","com.azure.ai.projects.models.AgentTaxonomyInput":"Azure.AI.Projects.AgentTaxonomyInput","com.azure.ai.projects.models.AgenticIdentityPreviewCredential":"Azure.AI.Projects.AgenticIdentityPreviewCredentials","com.azure.ai.projects.models.ApiError":"OpenAI.Error","com.azure.ai.projects.models.ApiKeyCredential":"Azure.AI.Projects.ApiKeyCredentials","com.azure.ai.projects.models.AttackStrategy":"Azure.AI.Projects.AttackStrategy","com.azure.ai.projects.models.AzureAIAgentTarget":"Azure.AI.Projects.AzureAIAgentTarget","com.azure.ai.projects.models.AzureAIModelTarget":"Azure.AI.Projects.AzureAIModelTarget","com.azure.ai.projects.models.AzureAISearchIndex":"Azure.AI.Projects.AzureAISearchIndex","com.azure.ai.projects.models.AzureOpenAIModelConfiguration":"Azure.AI.Projects.AzureOpenAIModelConfiguration","com.azure.ai.projects.models.BaseCredential":"Azure.AI.Projects.BaseCredentials","com.azure.ai.projects.models.BlobReference":"Azure.AI.Projects.BlobReference","com.azure.ai.projects.models.BlobReferenceSasCredential":"Azure.AI.Projects.SasCredential","com.azure.ai.projects.models.ChartCoordinate":"Azure.AI.Projects.ChartCoordinate","com.azure.ai.projects.models.ClusterInsightResult":"Azure.AI.Projects.ClusterInsightResult","com.azure.ai.projects.models.ClusterTokenUsage":"Azure.AI.Projects.ClusterTokenUsage","com.azure.ai.projects.models.CodeBasedEvaluatorDefinition":"Azure.AI.Projects.CodeBasedEvaluatorDefinition","com.azure.ai.projects.models.Connection":"Azure.AI.Projects.Connection","com.azure.ai.projects.models.ConnectionType":"Azure.AI.Projects.ConnectionType","com.azure.ai.projects.models.ContinuousEvaluationRuleAction":"Azure.AI.Projects.ContinuousEvaluationRuleAction","com.azure.ai.projects.models.CosmosDBIndex":"Azure.AI.Projects.CosmosDBIndex","com.azure.ai.projects.models.CredentialType":"Azure.AI.Projects.CredentialType","com.azure.ai.projects.models.CronTrigger":"Azure.AI.Projects.CronTrigger","com.azure.ai.projects.models.CustomCredential":"Azure.AI.Projects.CustomCredential","com.azure.ai.projects.models.DailyRecurrenceSchedule":"Azure.AI.Projects.DailyRecurrenceSchedule","com.azure.ai.projects.models.DataGenerationJob":"Azure.AI.Projects.DataGenerationJob","com.azure.ai.projects.models.DataGenerationJobInputs":"Azure.AI.Projects.DataGenerationJobInputs","com.azure.ai.projects.models.DataGenerationJobOptions":"Azure.AI.Projects.DataGenerationJobOptions","com.azure.ai.projects.models.DataGenerationJobOutput":"Azure.AI.Projects.DataGenerationJobOutput","com.azure.ai.projects.models.DataGenerationJobOutputType":"Azure.AI.Projects.DataGenerationJobOutputType","com.azure.ai.projects.models.DataGenerationJobResult":"Azure.AI.Projects.DataGenerationJobResult","com.azure.ai.projects.models.DataGenerationJobScenario":"Azure.AI.Projects.DataGenerationJobScenario","com.azure.ai.projects.models.DataGenerationJobSource":"Azure.AI.Projects.DataGenerationJobSource","com.azure.ai.projects.models.DataGenerationJobSourceType":"Azure.AI.Projects.DataGenerationJobSourceType","com.azure.ai.projects.models.DataGenerationJobType":"Azure.AI.Projects.DataGenerationJobType","com.azure.ai.projects.models.DataGenerationModelOptions":"Azure.AI.Projects.DataGenerationModelOptions","com.azure.ai.projects.models.DataGenerationTokenUsage":"Azure.AI.Projects.DataGenerationTokenUsage","com.azure.ai.projects.models.DatasetCredential":"Azure.AI.Projects.AssetCredentialResponse","com.azure.ai.projects.models.DatasetDataGenerationJobOutput":"Azure.AI.Projects.DatasetDataGenerationJobOutput","com.azure.ai.projects.models.DatasetDataGenerationJobSource":"Azure.AI.Projects.DatasetDataGenerationJobSource","com.azure.ai.projects.models.DatasetEvaluatorGenerationJobSource":"Azure.AI.Projects.DatasetEvaluatorGenerationJobSource","com.azure.ai.projects.models.DatasetReference":"Azure.AI.Projects.DatasetReference","com.azure.ai.projects.models.DatasetType":"Azure.AI.Projects.DatasetType","com.azure.ai.projects.models.DatasetVersion":"Azure.AI.Projects.DatasetVersion","com.azure.ai.projects.models.Deployment":"Azure.AI.Projects.Deployment","com.azure.ai.projects.models.DeploymentType":"Azure.AI.Projects.DeploymentType","com.azure.ai.projects.models.EmbeddingConfiguration":"Azure.AI.Projects.EmbeddingConfiguration","com.azure.ai.projects.models.EntraIdCredential":"Azure.AI.Projects.EntraIDCredentials","com.azure.ai.projects.models.EvaluationComparisonInsightRequest":"Azure.AI.Projects.EvaluationComparisonInsightRequest","com.azure.ai.projects.models.EvaluationComparisonInsightResult":"Azure.AI.Projects.EvaluationComparisonInsightResult","com.azure.ai.projects.models.EvaluationResult":"Azure.AI.Projects.EvalResult","com.azure.ai.projects.models.EvaluationResultSample":"Azure.AI.Projects.EvaluationResultSample","com.azure.ai.projects.models.EvaluationRule":"Azure.AI.Projects.EvaluationRule","com.azure.ai.projects.models.EvaluationRuleAction":"Azure.AI.Projects.EvaluationRuleAction","com.azure.ai.projects.models.EvaluationRuleActionType":"Azure.AI.Projects.EvaluationRuleActionType","com.azure.ai.projects.models.EvaluationRuleEventType":"Azure.AI.Projects.EvaluationRuleEventType","com.azure.ai.projects.models.EvaluationRuleFilter":"Azure.AI.Projects.EvaluationRuleFilter","com.azure.ai.projects.models.EvaluationRunClusterInsightRequest":"Azure.AI.Projects.EvaluationRunClusterInsightRequest","com.azure.ai.projects.models.EvaluationRunClusterInsightResult":"Azure.AI.Projects.EvaluationRunClusterInsightResult","com.azure.ai.projects.models.EvaluationRunResultCompareItem":"Azure.AI.Projects.EvalRunResultCompareItem","com.azure.ai.projects.models.EvaluationRunResultComparison":"Azure.AI.Projects.EvalRunResultComparison","com.azure.ai.projects.models.EvaluationRunResultSummary":"Azure.AI.Projects.EvalRunResultSummary","com.azure.ai.projects.models.EvaluationScheduleTask":"Azure.AI.Projects.EvaluationScheduleTask","com.azure.ai.projects.models.EvaluationScheduleTaskEvalRun":"Azure.AI.Projects.EvaluationScheduleTask.evalRun.anonymous","com.azure.ai.projects.models.EvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomy","com.azure.ai.projects.models.EvaluationTaxonomyInput":"Azure.AI.Projects.EvaluationTaxonomyInput","com.azure.ai.projects.models.EvaluationTaxonomyInputType":"Azure.AI.Projects.EvaluationTaxonomyInputType","com.azure.ai.projects.models.EvaluatorCategory":"Azure.AI.Projects.EvaluatorCategory","com.azure.ai.projects.models.EvaluatorDefinition":"Azure.AI.Projects.EvaluatorDefinition","com.azure.ai.projects.models.EvaluatorDefinitionType":"Azure.AI.Projects.EvaluatorDefinitionType","com.azure.ai.projects.models.EvaluatorGenerationArtifacts":"Azure.AI.Projects.EvaluatorGenerationArtifacts","com.azure.ai.projects.models.EvaluatorGenerationInputs":"Azure.AI.Projects.EvaluatorGenerationInputs","com.azure.ai.projects.models.EvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJob","com.azure.ai.projects.models.EvaluatorGenerationJobSource":"Azure.AI.Projects.EvaluatorGenerationJobSource","com.azure.ai.projects.models.EvaluatorGenerationJobSourceType":"Azure.AI.Projects.EvaluatorGenerationJobSourceType","com.azure.ai.projects.models.EvaluatorGenerationTokenUsage":"Azure.AI.Projects.EvaluatorGenerationTokenUsage","com.azure.ai.projects.models.EvaluatorMetric":"Azure.AI.Projects.EvaluatorMetric","com.azure.ai.projects.models.EvaluatorMetricDirection":"Azure.AI.Projects.EvaluatorMetricDirection","com.azure.ai.projects.models.EvaluatorMetricType":"Azure.AI.Projects.EvaluatorMetricType","com.azure.ai.projects.models.EvaluatorType":"Azure.AI.Projects.EvaluatorType","com.azure.ai.projects.models.EvaluatorVersion":"Azure.AI.Projects.EvaluatorVersion","com.azure.ai.projects.models.FieldMapping":"Azure.AI.Projects.FieldMapping","com.azure.ai.projects.models.FileDataGenerationJobOutput":"Azure.AI.Projects.FileDataGenerationJobOutput","com.azure.ai.projects.models.FileDataGenerationJobSource":"Azure.AI.Projects.FileDataGenerationJobSource","com.azure.ai.projects.models.FileDatasetVersion":"Azure.AI.Projects.FileDatasetVersion","com.azure.ai.projects.models.FolderDatasetVersion":"Azure.AI.Projects.FolderDatasetVersion","com.azure.ai.projects.models.FoundryFeaturesOptInKeys":"Azure.AI.Projects.FoundryFeaturesOptInKeys","com.azure.ai.projects.models.HourlyRecurrenceSchedule":"Azure.AI.Projects.HourlyRecurrenceSchedule","com.azure.ai.projects.models.HumanEvaluationPreviewRuleAction":"Azure.AI.Projects.HumanEvaluationPreviewRuleAction","com.azure.ai.projects.models.IndexType":"Azure.AI.Projects.IndexType","com.azure.ai.projects.models.Insight":"Azure.AI.Projects.Insight","com.azure.ai.projects.models.InsightCluster":"Azure.AI.Projects.InsightCluster","com.azure.ai.projects.models.InsightModelConfiguration":"Azure.AI.Projects.InsightModelConfiguration","com.azure.ai.projects.models.InsightRequest":"Azure.AI.Projects.InsightRequest","com.azure.ai.projects.models.InsightResult":"Azure.AI.Projects.InsightResult","com.azure.ai.projects.models.InsightSample":"Azure.AI.Projects.InsightSample","com.azure.ai.projects.models.InsightScheduleTask":"Azure.AI.Projects.InsightScheduleTask","com.azure.ai.projects.models.InsightSummary":"Azure.AI.Projects.InsightSummary","com.azure.ai.projects.models.InsightType":"Azure.AI.Projects.InsightType","com.azure.ai.projects.models.InsightsMetadata":"Azure.AI.Projects.InsightsMetadata","com.azure.ai.projects.models.JobStatus":"Azure.AI.Projects.JobStatus","com.azure.ai.projects.models.ListVersionsRequestType":"Azure.AI.Projects.listVersions.RequestType.anonymous","com.azure.ai.projects.models.ManagedAzureAISearchIndex":"Azure.AI.Projects.ManagedAzureAISearchIndex","com.azure.ai.projects.models.ModelDeployment":"Azure.AI.Projects.ModelDeployment","com.azure.ai.projects.models.ModelDeploymentSku":"Azure.AI.Projects.Sku","com.azure.ai.projects.models.ModelSamplingParams":"Azure.AI.Projects.ModelSamplingParams","com.azure.ai.projects.models.MonthlyRecurrenceSchedule":"Azure.AI.Projects.MonthlyRecurrenceSchedule","com.azure.ai.projects.models.NoAuthenticationCredential":"Azure.AI.Projects.NoAuthenticationCredentials","com.azure.ai.projects.models.OneTimeTrigger":"Azure.AI.Projects.OneTimeTrigger","com.azure.ai.projects.models.OperationStatus":"Azure.Core.Foundations.OperationState","com.azure.ai.projects.models.PendingUploadRequest":"Azure.AI.Projects.PendingUploadRequest","com.azure.ai.projects.models.PendingUploadResponse":"Azure.AI.Projects.PendingUploadResponse","com.azure.ai.projects.models.PendingUploadType":"Azure.AI.Projects.PendingUploadType","com.azure.ai.projects.models.PromptBasedEvaluatorDefinition":"Azure.AI.Projects.PromptBasedEvaluatorDefinition","com.azure.ai.projects.models.PromptDataGenerationJobSource":"Azure.AI.Projects.PromptDataGenerationJobSource","com.azure.ai.projects.models.PromptEvaluatorGenerationJobSource":"Azure.AI.Projects.PromptEvaluatorGenerationJobSource","com.azure.ai.projects.models.RecurrenceSchedule":"Azure.AI.Projects.RecurrenceSchedule","com.azure.ai.projects.models.RecurrenceTrigger":"Azure.AI.Projects.RecurrenceTrigger","com.azure.ai.projects.models.RecurrenceType":"Azure.AI.Projects.RecurrenceType","com.azure.ai.projects.models.RedTeam":"Azure.AI.Projects.RedTeam","com.azure.ai.projects.models.RiskCategory":"Azure.AI.Projects.RiskCategory","com.azure.ai.projects.models.RubricBasedEvaluatorDefinition":"Azure.AI.Projects.RubricBasedEvaluatorDefinition","com.azure.ai.projects.models.RubricCriterion":"Azure.AI.Projects.RubricCriterion","com.azure.ai.projects.models.SampleType":"Azure.AI.Projects.SampleType","com.azure.ai.projects.models.SasCredential":"Azure.AI.Projects.SASCredentials","com.azure.ai.projects.models.Schedule":"Azure.AI.Projects.Schedule","com.azure.ai.projects.models.ScheduleProvisioningStatus":"Azure.AI.Projects.ScheduleProvisioningStatus","com.azure.ai.projects.models.ScheduleRun":"Azure.AI.Projects.ScheduleRun","com.azure.ai.projects.models.ScheduleTask":"Azure.AI.Projects.ScheduleTask","com.azure.ai.projects.models.ScheduleTaskType":"Azure.AI.Projects.ScheduleTaskType","com.azure.ai.projects.models.SimpleQnADataGenerationJobOptions":"Azure.AI.Projects.SimpleQnADataGenerationJobOptions","com.azure.ai.projects.models.SimpleQnAFineTuningQuestionType":"Azure.AI.Projects.SimpleQnAFineTuningQuestionType","com.azure.ai.projects.models.SkillDetails":"Azure.AI.Projects.SkillObject","com.azure.ai.projects.models.Target":"Azure.AI.Projects.Target","com.azure.ai.projects.models.TargetConfig":"Azure.AI.Projects.TargetConfig","com.azure.ai.projects.models.TaxonomyCategory":"Azure.AI.Projects.TaxonomyCategory","com.azure.ai.projects.models.TaxonomySubCategory":"Azure.AI.Projects.TaxonomySubCategory","com.azure.ai.projects.models.ToolDescription":"Azure.AI.Projects.ToolDescription","com.azure.ai.projects.models.ToolUseFineTuningDataGenerationJobOptions":"Azure.AI.Projects.ToolUseFineTuningDataGenerationJobOptions","com.azure.ai.projects.models.TracesDataGenerationJobOptions":"Azure.AI.Projects.TracesDataGenerationJobOptions","com.azure.ai.projects.models.TracesDataGenerationJobSource":"Azure.AI.Projects.TracesDataGenerationJobSource","com.azure.ai.projects.models.TracesEvaluatorGenerationJobSource":"Azure.AI.Projects.TracesEvaluatorGenerationJobSource","com.azure.ai.projects.models.TreatmentEffectType":"Azure.AI.Projects.TreatmentEffectType","com.azure.ai.projects.models.Trigger":"Azure.AI.Projects.Trigger","com.azure.ai.projects.models.TriggerType":"Azure.AI.Projects.TriggerType","com.azure.ai.projects.models.WeeklyRecurrenceSchedule":"Azure.AI.Projects.WeeklyRecurrenceSchedule"},"generatedFiles":["src/main/java/com/azure/ai/projects/AIProjectClientBuilder.java","src/main/java/com/azure/ai/projects/AIProjectsServiceVersion.java","src/main/java/com/azure/ai/projects/ConnectionsAsyncClient.java","src/main/java/com/azure/ai/projects/ConnectionsClient.java","src/main/java/com/azure/ai/projects/DataGenerationJobsAsyncClient.java","src/main/java/com/azure/ai/projects/DataGenerationJobsClient.java","src/main/java/com/azure/ai/projects/DatasetsAsyncClient.java","src/main/java/com/azure/ai/projects/DatasetsClient.java","src/main/java/com/azure/ai/projects/DeploymentsAsyncClient.java","src/main/java/com/azure/ai/projects/DeploymentsClient.java","src/main/java/com/azure/ai/projects/EvaluationRulesAsyncClient.java","src/main/java/com/azure/ai/projects/EvaluationRulesClient.java","src/main/java/com/azure/ai/projects/EvaluationTaxonomiesAsyncClient.java","src/main/java/com/azure/ai/projects/EvaluationTaxonomiesClient.java","src/main/java/com/azure/ai/projects/EvaluatorGenerationJobsAsyncClient.java","src/main/java/com/azure/ai/projects/EvaluatorGenerationJobsClient.java","src/main/java/com/azure/ai/projects/EvaluatorsAsyncClient.java","src/main/java/com/azure/ai/projects/EvaluatorsClient.java","src/main/java/com/azure/ai/projects/IndexesAsyncClient.java","src/main/java/com/azure/ai/projects/IndexesClient.java","src/main/java/com/azure/ai/projects/InsightsAsyncClient.java","src/main/java/com/azure/ai/projects/InsightsClient.java","src/main/java/com/azure/ai/projects/RedTeamsAsyncClient.java","src/main/java/com/azure/ai/projects/RedTeamsClient.java","src/main/java/com/azure/ai/projects/SchedulesAsyncClient.java","src/main/java/com/azure/ai/projects/SchedulesClient.java","src/main/java/com/azure/ai/projects/SkillsAsyncClient.java","src/main/java/com/azure/ai/projects/SkillsClient.java","src/main/java/com/azure/ai/projects/implementation/AIProjectClientImpl.java","src/main/java/com/azure/ai/projects/implementation/ConnectionsImpl.java","src/main/java/com/azure/ai/projects/implementation/DataGenerationJobsImpl.java","src/main/java/com/azure/ai/projects/implementation/DatasetsImpl.java","src/main/java/com/azure/ai/projects/implementation/DeploymentsImpl.java","src/main/java/com/azure/ai/projects/implementation/EvaluationRulesImpl.java","src/main/java/com/azure/ai/projects/implementation/EvaluationTaxonomiesImpl.java","src/main/java/com/azure/ai/projects/implementation/EvaluatorGenerationJobsImpl.java","src/main/java/com/azure/ai/projects/implementation/EvaluatorsImpl.java","src/main/java/com/azure/ai/projects/implementation/IndexesImpl.java","src/main/java/com/azure/ai/projects/implementation/InsightsImpl.java","src/main/java/com/azure/ai/projects/implementation/JsonMergePatchHelper.java","src/main/java/com/azure/ai/projects/implementation/RedTeamsImpl.java","src/main/java/com/azure/ai/projects/implementation/SchedulesImpl.java","src/main/java/com/azure/ai/projects/implementation/SkillsImpl.java","src/main/java/com/azure/ai/projects/implementation/models/CreateSkillRequest.java","src/main/java/com/azure/ai/projects/implementation/models/UpdateSkillRequest.java","src/main/java/com/azure/ai/projects/implementation/models/package-info.java","src/main/java/com/azure/ai/projects/implementation/package-info.java","src/main/java/com/azure/ai/projects/models/AIProjectIndex.java","src/main/java/com/azure/ai/projects/models/AgentClusterInsightRequest.java","src/main/java/com/azure/ai/projects/models/AgentClusterInsightResult.java","src/main/java/com/azure/ai/projects/models/AgentDataGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/AgentEvaluatorGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/AgentTaxonomyInput.java","src/main/java/com/azure/ai/projects/models/AgenticIdentityPreviewCredential.java","src/main/java/com/azure/ai/projects/models/ApiError.java","src/main/java/com/azure/ai/projects/models/ApiKeyCredential.java","src/main/java/com/azure/ai/projects/models/AttackStrategy.java","src/main/java/com/azure/ai/projects/models/AzureAIAgentTarget.java","src/main/java/com/azure/ai/projects/models/AzureAIModelTarget.java","src/main/java/com/azure/ai/projects/models/AzureAISearchIndex.java","src/main/java/com/azure/ai/projects/models/AzureOpenAIModelConfiguration.java","src/main/java/com/azure/ai/projects/models/BaseCredential.java","src/main/java/com/azure/ai/projects/models/BlobReference.java","src/main/java/com/azure/ai/projects/models/BlobReferenceSasCredential.java","src/main/java/com/azure/ai/projects/models/ChartCoordinate.java","src/main/java/com/azure/ai/projects/models/ClusterInsightResult.java","src/main/java/com/azure/ai/projects/models/ClusterTokenUsage.java","src/main/java/com/azure/ai/projects/models/CodeBasedEvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/Connection.java","src/main/java/com/azure/ai/projects/models/ConnectionType.java","src/main/java/com/azure/ai/projects/models/ContinuousEvaluationRuleAction.java","src/main/java/com/azure/ai/projects/models/CosmosDBIndex.java","src/main/java/com/azure/ai/projects/models/CredentialType.java","src/main/java/com/azure/ai/projects/models/CronTrigger.java","src/main/java/com/azure/ai/projects/models/CustomCredential.java","src/main/java/com/azure/ai/projects/models/DailyRecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/DataGenerationJob.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobInputs.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobOptions.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobOutput.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobOutputType.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobResult.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobScenario.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobSourceType.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobType.java","src/main/java/com/azure/ai/projects/models/DataGenerationModelOptions.java","src/main/java/com/azure/ai/projects/models/DataGenerationTokenUsage.java","src/main/java/com/azure/ai/projects/models/DatasetCredential.java","src/main/java/com/azure/ai/projects/models/DatasetDataGenerationJobOutput.java","src/main/java/com/azure/ai/projects/models/DatasetDataGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/DatasetEvaluatorGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/DatasetReference.java","src/main/java/com/azure/ai/projects/models/DatasetType.java","src/main/java/com/azure/ai/projects/models/DatasetVersion.java","src/main/java/com/azure/ai/projects/models/Deployment.java","src/main/java/com/azure/ai/projects/models/DeploymentType.java","src/main/java/com/azure/ai/projects/models/EmbeddingConfiguration.java","src/main/java/com/azure/ai/projects/models/EntraIdCredential.java","src/main/java/com/azure/ai/projects/models/EvaluationComparisonInsightRequest.java","src/main/java/com/azure/ai/projects/models/EvaluationComparisonInsightResult.java","src/main/java/com/azure/ai/projects/models/EvaluationResult.java","src/main/java/com/azure/ai/projects/models/EvaluationResultSample.java","src/main/java/com/azure/ai/projects/models/EvaluationRule.java","src/main/java/com/azure/ai/projects/models/EvaluationRuleAction.java","src/main/java/com/azure/ai/projects/models/EvaluationRuleActionType.java","src/main/java/com/azure/ai/projects/models/EvaluationRuleEventType.java","src/main/java/com/azure/ai/projects/models/EvaluationRuleFilter.java","src/main/java/com/azure/ai/projects/models/EvaluationRunClusterInsightRequest.java","src/main/java/com/azure/ai/projects/models/EvaluationRunClusterInsightResult.java","src/main/java/com/azure/ai/projects/models/EvaluationRunResultCompareItem.java","src/main/java/com/azure/ai/projects/models/EvaluationRunResultComparison.java","src/main/java/com/azure/ai/projects/models/EvaluationRunResultSummary.java","src/main/java/com/azure/ai/projects/models/EvaluationScheduleTask.java","src/main/java/com/azure/ai/projects/models/EvaluationScheduleTaskEvalRun.java","src/main/java/com/azure/ai/projects/models/EvaluationTaxonomy.java","src/main/java/com/azure/ai/projects/models/EvaluationTaxonomyInput.java","src/main/java/com/azure/ai/projects/models/EvaluationTaxonomyInputType.java","src/main/java/com/azure/ai/projects/models/EvaluatorCategory.java","src/main/java/com/azure/ai/projects/models/EvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/EvaluatorDefinitionType.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationArtifacts.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationInputs.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJob.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJobSourceType.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationTokenUsage.java","src/main/java/com/azure/ai/projects/models/EvaluatorMetric.java","src/main/java/com/azure/ai/projects/models/EvaluatorMetricDirection.java","src/main/java/com/azure/ai/projects/models/EvaluatorMetricType.java","src/main/java/com/azure/ai/projects/models/EvaluatorType.java","src/main/java/com/azure/ai/projects/models/EvaluatorVersion.java","src/main/java/com/azure/ai/projects/models/FieldMapping.java","src/main/java/com/azure/ai/projects/models/FileDataGenerationJobOutput.java","src/main/java/com/azure/ai/projects/models/FileDataGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/FileDatasetVersion.java","src/main/java/com/azure/ai/projects/models/FolderDatasetVersion.java","src/main/java/com/azure/ai/projects/models/FoundryFeaturesOptInKeys.java","src/main/java/com/azure/ai/projects/models/HourlyRecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/HumanEvaluationPreviewRuleAction.java","src/main/java/com/azure/ai/projects/models/IndexType.java","src/main/java/com/azure/ai/projects/models/Insight.java","src/main/java/com/azure/ai/projects/models/InsightCluster.java","src/main/java/com/azure/ai/projects/models/InsightModelConfiguration.java","src/main/java/com/azure/ai/projects/models/InsightRequest.java","src/main/java/com/azure/ai/projects/models/InsightResult.java","src/main/java/com/azure/ai/projects/models/InsightSample.java","src/main/java/com/azure/ai/projects/models/InsightScheduleTask.java","src/main/java/com/azure/ai/projects/models/InsightSummary.java","src/main/java/com/azure/ai/projects/models/InsightType.java","src/main/java/com/azure/ai/projects/models/InsightsMetadata.java","src/main/java/com/azure/ai/projects/models/JobStatus.java","src/main/java/com/azure/ai/projects/models/ListVersionsRequestType.java","src/main/java/com/azure/ai/projects/models/ManagedAzureAISearchIndex.java","src/main/java/com/azure/ai/projects/models/ModelDeployment.java","src/main/java/com/azure/ai/projects/models/ModelDeploymentSku.java","src/main/java/com/azure/ai/projects/models/ModelSamplingParams.java","src/main/java/com/azure/ai/projects/models/MonthlyRecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/NoAuthenticationCredential.java","src/main/java/com/azure/ai/projects/models/OneTimeTrigger.java","src/main/java/com/azure/ai/projects/models/OperationStatus.java","src/main/java/com/azure/ai/projects/models/PendingUploadRequest.java","src/main/java/com/azure/ai/projects/models/PendingUploadResponse.java","src/main/java/com/azure/ai/projects/models/PendingUploadType.java","src/main/java/com/azure/ai/projects/models/PromptBasedEvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/PromptDataGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/PromptEvaluatorGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/RecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/RecurrenceTrigger.java","src/main/java/com/azure/ai/projects/models/RecurrenceType.java","src/main/java/com/azure/ai/projects/models/RedTeam.java","src/main/java/com/azure/ai/projects/models/RiskCategory.java","src/main/java/com/azure/ai/projects/models/RubricBasedEvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/RubricCriterion.java","src/main/java/com/azure/ai/projects/models/SampleType.java","src/main/java/com/azure/ai/projects/models/SasCredential.java","src/main/java/com/azure/ai/projects/models/Schedule.java","src/main/java/com/azure/ai/projects/models/ScheduleProvisioningStatus.java","src/main/java/com/azure/ai/projects/models/ScheduleRun.java","src/main/java/com/azure/ai/projects/models/ScheduleTask.java","src/main/java/com/azure/ai/projects/models/ScheduleTaskType.java","src/main/java/com/azure/ai/projects/models/SimpleQnADataGenerationJobOptions.java","src/main/java/com/azure/ai/projects/models/SimpleQnAFineTuningQuestionType.java","src/main/java/com/azure/ai/projects/models/SkillDetails.java","src/main/java/com/azure/ai/projects/models/Target.java","src/main/java/com/azure/ai/projects/models/TargetConfig.java","src/main/java/com/azure/ai/projects/models/TaxonomyCategory.java","src/main/java/com/azure/ai/projects/models/TaxonomySubCategory.java","src/main/java/com/azure/ai/projects/models/ToolDescription.java","src/main/java/com/azure/ai/projects/models/ToolUseFineTuningDataGenerationJobOptions.java","src/main/java/com/azure/ai/projects/models/TracesDataGenerationJobOptions.java","src/main/java/com/azure/ai/projects/models/TracesDataGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/TracesEvaluatorGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/TreatmentEffectType.java","src/main/java/com/azure/ai/projects/models/Trigger.java","src/main/java/com/azure/ai/projects/models/TriggerType.java","src/main/java/com/azure/ai/projects/models/WeeklyRecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/package-info.java","src/main/java/com/azure/ai/projects/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file