Class CreateAgentOptions
java.lang.Object
com.azure.ai.agents.persistent.models.CreateAgentOptions
Options for createAgent API.
-
Constructor Summary
ConstructorsConstructorDescriptionCreateAgentOptions(String model) Creates an instance of CreateAgentOptions class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: The description of the new agent.Get the instructions property: The system instructions for the new agent to use.Get 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.getModel()Get the model property: The ID of the model to use.getName()Get the name property: The name of the new agent.com.azure.core.util.BinaryDataGet the responseFormat property: The response format of the tool calls used by this agent.Get the temperature property: What sampling temperature to use, between 0 and 2.Get the toolResources property: A set of resources that are used by the agent's tools.getTools()Get the tools property: The collection of tools to enable for the new agent.getTopP()Get 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.setDescription(String description) Set the description property: The description of the new agent.setInstructions(String instructions) Set the instructions property: The system instructions for the new agent to use.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 name property: The name of the new agent.setResponseFormat(com.azure.core.util.BinaryData responseFormat) Set the responseFormat property: The response format of the tool calls used by this agent.setTemperature(Double temperature) Set the temperature property: What sampling temperature to use, between 0 and 2.setToolResources(ToolResources toolResources) Set the toolResources property: A set of resources that are used by the agent's tools.setTools(List<ToolDefinition> tools) Set the tools property: The collection of tools to enable for the new agent.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.
-
Constructor Details
-
CreateAgentOptions
Creates an instance of CreateAgentOptions class.- Parameters:
model- the model value to set.
-
-
Method Details
-
getModel
Get the model property: The ID of the model to use.- Returns:
- the model value.
-
getName
Get the name property: The name of the new agent.- Returns:
- the name value.
-
setName
Set the name property: The name of the new agent.- Parameters:
name- the name value to set.- Returns:
- the CreateAgentOptions object itself.
-
getDescription
Get the description property: The description of the new agent.- Returns:
- the description value.
-
setDescription
Set the description property: The description of the new agent.- Parameters:
description- the description value to set.- Returns:
- the CreateAgentOptions object itself.
-
getInstructions
Get the instructions property: The system instructions for the new agent to use.- Returns:
- the instructions value.
-
setInstructions
Set the instructions property: The system instructions for the new agent to use.- Parameters:
instructions- the instructions value to set.- Returns:
- the CreateAgentOptions object itself.
-
getTools
Get the tools property: The collection of tools to enable for the new agent.- Returns:
- the tools value.
-
setTools
Set the tools property: The collection of tools to enable for the new agent.- Parameters:
tools- the tools value to set.- Returns:
- the CreateAgentOptions object itself.
-
getToolResources
Get the toolResources property: A set of resources that are used by the agent's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.- Returns:
- the toolResources value.
-
setToolResources
Set the toolResources property: A set of resources that are used by the agent's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.- Parameters:
toolResources- the toolResources value to set.- Returns:
- the CreateAgentOptions object itself.
-
getTemperature
Get the temperature property: What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.- Returns:
- the temperature value.
-
setTemperature
Set the temperature property: What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.- Parameters:
temperature- the temperature value to set.- Returns:
- the CreateAgentOptions object itself.
-
getTopP
Get 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. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both.- Returns:
- the topP value.
-
setTopP
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. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both.- Parameters:
topP- the topP value to set.- Returns:
- the CreateAgentOptions object itself.
-
getResponseFormat
public com.azure.core.util.BinaryData getResponseFormat()Get the responseFormat property: The response format of the tool calls used by this agent.- Returns:
- the responseFormat value.
-
setResponseFormat
Set the responseFormat property: The response format of the tool calls used by this agent.- Parameters:
responseFormat- the responseFormat value to set.- Returns:
- the CreateAgentOptions object itself.
-
getMetadata
Get 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. Keys may be up to 64 characters in length and values may be up to 512 characters in length.- Returns:
- the metadata value.
-
setMetadata
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. Keys may be up to 64 characters in length and values may be up to 512 characters in length.- Parameters:
metadata- the metadata value to set.- Returns:
- the CreateAgentOptions object itself.
-