Uses of Class
com.azure.ai.openai.assistants.models.CreateAndRunThreadOptions
Packages that use CreateAndRunThreadOptions
Package
Description
Package containing the classes for Assistants.
Package containing the data models for Assistants.
-
Uses of CreateAndRunThreadOptions in com.azure.ai.openai.assistants
Methods in com.azure.ai.openai.assistants with parameters of type CreateAndRunThreadOptionsModifier and TypeMethodDescriptionAssistantsAsyncClient.createThreadAndRun
(CreateAndRunThreadOptions createAndRunThreadOptions) Creates a new assistant thread and immediately starts a run using that new thread.AssistantsClient.createThreadAndRun
(CreateAndRunThreadOptions createAndRunThreadOptions) Creates a new assistant thread and immediately starts a run using that new thread.AssistantsAsyncClient.createThreadAndRunStream
(CreateAndRunThreadOptions createAndRunThreadOptions) Creates a new assistant thread and immediately starts a run using that new thread.com.azure.core.util.IterableStream
<StreamUpdate> AssistantsClient.createThreadAndRunStream
(CreateAndRunThreadOptions createAndRunThreadOptions) Creates a new assistant thread and immediately starts a run using that new thread. -
Uses of CreateAndRunThreadOptions in com.azure.ai.openai.assistants.models
Methods in com.azure.ai.openai.assistants.models that return CreateAndRunThreadOptionsModifier and TypeMethodDescriptionstatic CreateAndRunThreadOptions
CreateAndRunThreadOptions.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CreateAndRunThreadOptions from the JsonReader.CreateAndRunThreadOptions.setInstructions
(String instructions) Set the instructions property: The overridden system instructions the assistant should use to run the thread.CreateAndRunThreadOptions.setMaxCompletionTokens
(Integer maxCompletionTokens) Set the maxCompletionTokens property: The maximum number of completion tokens that may be used over the course of the run.CreateAndRunThreadOptions.setMaxPromptTokens
(Integer maxPromptTokens) Set the maxPromptTokens property: The maximum number of prompt tokens that may be used over the course of the run.CreateAndRunThreadOptions.setMetadata
(Map<String, String> metadata) Set the metadata property: A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format.Set the model property: The overridden model that the assistant should use to run the thread.CreateAndRunThreadOptions.setParallelToolCalls
(Boolean parallelToolCalls) Set the parallelToolCalls property: Whether to enable parallel function calling during tool use.CreateAndRunThreadOptions.setResponseFormat
(AssistantsApiResponseFormatOption responseFormat) Set the responseFormat property: Specifies the format that the model must output.CreateAndRunThreadOptions.setTemperature
(Double temperature) Set the temperature property: What sampling temperature to use, between 0 and 2.CreateAndRunThreadOptions.setThread
(AssistantThreadCreationOptions thread) Set the thread property: The details used to create the new thread.CreateAndRunThreadOptions.setToolChoice
(AssistantsApiToolChoiceOption toolChoice) Set the toolChoice property: Controls whether or not and which tool is called by the model.CreateAndRunThreadOptions.setToolResources
(UpdateToolResourcesOptions toolResources) Set the toolResources property: Override the tools the assistant can use for this run.CreateAndRunThreadOptions.setTools
(List<ToolDefinition> tools) Set the tools property: The overridden list of enabled tools the assistant should use to run the thread.Set the topP property: An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.CreateAndRunThreadOptions.setTruncationStrategy
(TruncationObject truncationStrategy) Set the truncationStrategy property: The strategy to use for dropping messages as the context windows moves forward.