Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public Mono<Response<BinaryData>> deleteAssistantWithResponse(String assistantId
/**
* Creates a new assistant.
*
* @param body Body parameter.
* @param assistantCreationOptions The request details to use when creating a new assistant.
* @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.
Expand All @@ -283,10 +283,11 @@ public Mono<Response<BinaryData>> deleteAssistantWithResponse(String assistantId
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Assistant> createAssistant(AssistantCreationOptions body) {
public Mono<Assistant> createAssistant(AssistantCreationOptions assistantCreationOptions) {
// Generated convenience method for createAssistantWithResponse
RequestOptions requestOptions = new RequestOptions();
return createAssistantWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono)
return createAssistantWithResponse(BinaryData.fromObject(assistantCreationOptions), requestOptions)
.flatMap(FluxUtil::toMono)
.map(protocolMethodData -> protocolMethodData.toObject(Assistant.class));
}

Expand Down Expand Up @@ -1464,7 +1465,7 @@ public Mono<Assistant> getAssistant(String assistantId) {
/**
* Creates a new thread. Threads contain messages and can be run by assistants.
*
* @param body Body parameter.
* @param assistantThreadCreationOptions The details used to create a new assistant thread.
* @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.
Expand All @@ -1475,10 +1476,11 @@ public Mono<Assistant> getAssistant(String assistantId) {
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<AssistantThread> createThread(AssistantThreadCreationOptions body) {
public Mono<AssistantThread> createThread(AssistantThreadCreationOptions assistantThreadCreationOptions) {
// Generated convenience method for createThreadWithResponse
RequestOptions requestOptions = new RequestOptions();
return createThreadWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono)
return createThreadWithResponse(BinaryData.fromObject(assistantThreadCreationOptions), requestOptions)
.flatMap(FluxUtil::toMono)
.map(protocolMethodData -> protocolMethodData.toObject(AssistantThread.class));
}

Expand Down Expand Up @@ -1724,7 +1726,7 @@ public Mono<ThreadRun> cancelRun(String threadId, String runId) {
/**
* Creates a new assistant thread and immediately starts a run using that new thread.
*
* @param body Body parameter.
* @param createAndRunThreadOptions The details used when creating and immediately running a new assistant thread.
* @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.
Expand All @@ -1736,10 +1738,11 @@ public Mono<ThreadRun> cancelRun(String threadId, String runId) {
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<ThreadRun> createThreadAndRun(CreateAndRunThreadOptions body) {
public Mono<ThreadRun> createThreadAndRun(CreateAndRunThreadOptions createAndRunThreadOptions) {
// Generated convenience method for createThreadAndRunWithResponse
RequestOptions requestOptions = new RequestOptions();
return createThreadAndRunWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono)
return createThreadAndRunWithResponse(BinaryData.fromObject(createAndRunThreadOptions), requestOptions)
.flatMap(FluxUtil::toMono)
.map(protocolMethodData -> protocolMethodData.toObject(ThreadRun.class));
}

Expand Down Expand Up @@ -2232,7 +2235,7 @@ public Mono<Response<BinaryData>> getFileWithResponse(String fileId, RequestOpti
* Modifies an existing assistant.
*
* @param assistantId The ID of the assistant to modify.
* @param body Body parameter.
* @param updateAssistantOptions The request details to use when modifying an existing assistant.
* @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.
Expand All @@ -2243,10 +2246,10 @@ public Mono<Response<BinaryData>> getFileWithResponse(String fileId, RequestOpti
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Assistant> updateAssistant(String assistantId, UpdateAssistantOptions body) {
public Mono<Assistant> updateAssistant(String assistantId, UpdateAssistantOptions updateAssistantOptions) {
// Generated convenience method for updateAssistantWithResponse
RequestOptions requestOptions = new RequestOptions();
return updateAssistantWithResponse(assistantId, BinaryData.fromObject(body), requestOptions)
return updateAssistantWithResponse(assistantId, BinaryData.fromObject(updateAssistantOptions), requestOptions)
.flatMap(FluxUtil::toMono)
.map(protocolMethodData -> protocolMethodData.toObject(Assistant.class));
}
Expand Down Expand Up @@ -2308,7 +2311,7 @@ public Mono<ThreadMessage> updateMessage(String threadId, String messageId) {
* Creates a new run for an assistant thread.
*
* @param threadId The ID of the thread to run.
* @param createRunOptions The details for the run to create.
* @param createRunOptions The details used when creating a new run of an assistant thread.
* @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.
Expand Down Expand Up @@ -3266,7 +3269,7 @@ public Mono<Response<BinaryData>> listVectorStoreFileBatchFilesWithResponse(Stri
* Modifies an existing thread.
*
* @param threadId The ID of the thread to modify.
* @param body Body parameter.
* @param updateAssistantThreadOptions The details used to update an existing assistant thread.
* @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.
Expand All @@ -3277,10 +3280,12 @@ public Mono<Response<BinaryData>> listVectorStoreFileBatchFilesWithResponse(Stri
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<AssistantThread> updateThread(String threadId, UpdateAssistantThreadOptions body) {
public Mono<AssistantThread> updateThread(String threadId,
UpdateAssistantThreadOptions updateAssistantThreadOptions) {
// Generated convenience method for updateThreadWithResponse
RequestOptions requestOptions = new RequestOptions();
return updateThreadWithResponse(threadId, BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono)
return updateThreadWithResponse(threadId, BinaryData.fromObject(updateAssistantThreadOptions), requestOptions)
.flatMap(FluxUtil::toMono)
.map(protocolMethodData -> protocolMethodData.toObject(AssistantThread.class));
}

Expand Down Expand Up @@ -3373,7 +3378,7 @@ public Mono<PageableList<VectorStore>> listVectorStores() {
/**
* Creates a vector store.
*
* @param body Body parameter.
* @param vectorStoreOptions Request object for creating a vector store.
* @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.
Expand All @@ -3385,10 +3390,11 @@ public Mono<PageableList<VectorStore>> listVectorStores() {
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<VectorStore> createVectorStore(VectorStoreOptions body) {
public Mono<VectorStore> createVectorStore(VectorStoreOptions vectorStoreOptions) {
// Generated convenience method for createVectorStoreWithResponse
RequestOptions requestOptions = new RequestOptions();
return createVectorStoreWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono)
return createVectorStoreWithResponse(BinaryData.fromObject(vectorStoreOptions), requestOptions)
.flatMap(FluxUtil::toMono)
.map(protocolMethodData -> protocolMethodData.toObject(VectorStore.class));
}

Expand Down Expand Up @@ -3418,7 +3424,7 @@ public Mono<VectorStore> getVectorStore(String vectorStoreId) {
* The ID of the vector store to modify.
*
* @param vectorStoreId The ID of the vector store to modify.
* @param body Body parameter.
* @param vectorStoreUpdateOptions Request object for updating a vector store.
* @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.
Expand All @@ -3430,11 +3436,12 @@ public Mono<VectorStore> getVectorStore(String vectorStoreId) {
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<VectorStore> modifyVectorStore(String vectorStoreId, VectorStoreUpdateOptions body) {
public Mono<VectorStore> modifyVectorStore(String vectorStoreId,
VectorStoreUpdateOptions vectorStoreUpdateOptions) {
// Generated convenience method for modifyVectorStoreWithResponse
RequestOptions requestOptions = new RequestOptions();
return modifyVectorStoreWithResponse(vectorStoreId, BinaryData.fromObject(body), requestOptions)
.flatMap(FluxUtil::toMono)
return modifyVectorStoreWithResponse(vectorStoreId, BinaryData.fromObject(vectorStoreUpdateOptions),
requestOptions).flatMap(FluxUtil::toMono)
.map(protocolMethodData -> protocolMethodData.toObject(VectorStore.class));
}

Expand Down
Loading