Uses of Class
com.azure.ai.openai.assistants.models.CreateRunOptions
Packages that use CreateRunOptions
Package
Description
Package containing the classes for Assistants.
Package containing the data models for Assistants.
-
Uses of CreateRunOptions in com.azure.ai.openai.assistants
Methods in com.azure.ai.openai.assistants with parameters of type CreateRunOptionsModifier and TypeMethodDescriptionAssistantsAsyncClient.createRun
(String threadId, CreateRunOptions createRunOptions) Creates a new run for an assistant thread.AssistantsAsyncClient.createRun
(String threadId, CreateRunOptions createRunOptions, List<RunIncludes> runInclude) Creates a new run for an assistant thread with additional included fields.AssistantsClient.createRun
(String threadId, CreateRunOptions createRunOptions) Creates a new run for an assistant thread.AssistantsClient.createRun
(String threadId, CreateRunOptions createRunOptions, List<RunIncludes> runInclude) Creates a new run for an assistant thread with additional run include parameters.AssistantsAsyncClient.createRunStream
(String threadId, CreateRunOptions createRunOptions) Creates a new run for an assistant thread returning a stream of updates.AssistantsAsyncClient.createRunStream
(String threadId, CreateRunOptions createRunOptions, List<RunIncludes> runInclude) Creates a new run for an assistant thread returning a stream of updates with additional included fields.com.azure.core.util.IterableStream
<StreamUpdate> AssistantsClient.createRunStream
(String threadId, CreateRunOptions createRunOptions) Creates a new run for an assistant thread returning a stream of updates.com.azure.core.util.IterableStream
<StreamUpdate> AssistantsClient.createRunStream
(String threadId, CreateRunOptions createRunOptions, List<RunIncludes> runInclude) Creates a new run for an assistant thread returning a stream of updates with additional run include parameters. -
Uses of CreateRunOptions in com.azure.ai.openai.assistants.models
Methods in com.azure.ai.openai.assistants.models that return CreateRunOptionsModifier and TypeMethodDescriptionstatic CreateRunOptions
CreateRunOptions.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CreateRunOptions from the JsonReader.CreateRunOptions.setAdditionalInstructions
(String additionalInstructions) Set the additionalInstructions property: Additional instructions to append at the end of the instructions for the run.CreateRunOptions.setAdditionalMessages
(List<ThreadMessage> additionalMessages) Set the additionalMessages property: Adds additional messages to the thread before creating the run.CreateRunOptions.setInstructions
(String instructions) Set the instructions property: The overridden system instructions that the assistant should use to run the thread.CreateRunOptions.setMaxCompletionTokens
(Integer maxCompletionTokens) Set the maxCompletionTokens property: The maximum number of completion tokens that may be used over the course of the run.CreateRunOptions.setMaxPromptTokens
(Integer maxPromptTokens) Set the maxPromptTokens property: The maximum number of prompt tokens that may be used over the course of the run.CreateRunOptions.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 name that the assistant should use to run the thread.CreateRunOptions.setParallelToolCalls
(Boolean parallelToolCalls) Set the parallelToolCalls property: Whether to enable parallel function calling during tool use.CreateRunOptions.setResponseFormat
(AssistantsApiResponseFormatOption responseFormat) Set the responseFormat property: Specifies the format that the model must output.CreateRunOptions.setTemperature
(Double temperature) Set the temperature property: What sampling temperature to use, between 0 and 2.CreateRunOptions.setToolChoice
(AssistantsApiToolChoiceOption toolChoice) Set the toolChoice property: Controls whether or not and which tool is called by the model.CreateRunOptions.setTools
(List<ToolDefinition> tools) Set the tools property: The overridden list of enabled tools that 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.CreateRunOptions.setTruncationStrategy
(TruncationObject truncationStrategy) Set the truncationStrategy property: The strategy to use for dropping messages as the context windows moves forward.