Uses of Class
com.azure.ai.agents.persistent.models.CreateThreadAndRunOptions
Packages that use CreateThreadAndRunOptions
Package
Description
Package containing the classes for Agents.
Package containing the data models for Agents.
-
Uses of CreateThreadAndRunOptions in com.azure.ai.agents.persistent
Methods in com.azure.ai.agents.persistent with parameters of type CreateThreadAndRunOptionsModifier and TypeMethodDescriptionPersistentAgentsAdministrationAsyncClient.createThreadAndRun(CreateThreadAndRunOptions options) Creates a new agent thread and immediately starts a run using that new thread.PersistentAgentsAdministrationClient.createThreadAndRun(CreateThreadAndRunOptions options) Creates a new agent thread and immediately starts a run using that new thread. -
Uses of CreateThreadAndRunOptions in com.azure.ai.agents.persistent.models
Methods in com.azure.ai.agents.persistent.models that return CreateThreadAndRunOptionsModifier and TypeMethodDescriptionCreateThreadAndRunOptions.setInstructions(String instructions) Set the instructions property: The overridden system instructions the agent should use to run the thread.CreateThreadAndRunOptions.setMaxCompletionTokens(Integer maxCompletionTokens) Set the maxCompletionTokens property: The maximum number of completion tokens that may be used over the course of the run.CreateThreadAndRunOptions.setMaxPromptTokens(Integer maxPromptTokens) Set the maxPromptTokens property: The maximum number of prompt tokens that may be used over the course of the run.CreateThreadAndRunOptions.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 agent should use to run the thread.CreateThreadAndRunOptions.setParallelToolCalls(Boolean parallelToolCalls) Set the parallelToolCalls property: If `true` functions will run in parallel during tool use.CreateThreadAndRunOptions.setResponseFormat(com.azure.core.util.BinaryData responseFormat) Set the responseFormat property: Specifies the format that the model must output.Set the stream property: If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message.CreateThreadAndRunOptions.setTemperature(Double temperature) Set the temperature property: What sampling temperature to use, between 0 and 2.CreateThreadAndRunOptions.setThread(PersistentAgentThreadCreationOptions thread) Set the thread property: The details used to create the new thread.CreateThreadAndRunOptions.setToolChoice(com.azure.core.util.BinaryData toolChoice) Set the toolChoice property: Controls whether or not and which tool is called by the model.CreateThreadAndRunOptions.setToolResources(ToolResources toolResources) Set the toolResources property: Override the tools the agent can use for this run.CreateThreadAndRunOptions.setTools(List<ToolDefinition> tools) Set the tools property: The overridden list of enabled tools the agent 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.CreateThreadAndRunOptions.setTruncationStrategy(TruncationObject truncationStrategy) Set the truncationStrategy property: The strategy to use for dropping messages as the context windows moves forward.