AgentToolConfig¶
-
class
oci.generative_ai_agent.models.
AgentToolConfig
(**kwargs)¶ Bases:
oci.generative_ai_agent.models.tool_config.ToolConfig
The configuration for Agent as a Tool.
Attributes
TOOL_CONFIG_TYPE_AGENT_TOOL_CONFIG
str(object=’’) -> str TOOL_CONFIG_TYPE_FUNCTION_CALLING_TOOL_CONFIG
str(object=’’) -> str TOOL_CONFIG_TYPE_HTTP_ENDPOINT_TOOL_CONFIG
str(object=’’) -> str TOOL_CONFIG_TYPE_RAG_TOOL_CONFIG
str(object=’’) -> str TOOL_CONFIG_TYPE_SQL_TOOL_CONFIG
str(object=’’) -> str agent_endpoint_id
[Required] Gets the agent_endpoint_id of this AgentToolConfig. tool_config_type
[Required] Gets the tool_config_type of this ToolConfig. Methods
__init__
(**kwargs)Initializes a new AgentToolConfig object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
TOOL_CONFIG_TYPE_AGENT_TOOL_CONFIG
= 'AGENT_TOOL_CONFIG'¶
-
TOOL_CONFIG_TYPE_FUNCTION_CALLING_TOOL_CONFIG
= 'FUNCTION_CALLING_TOOL_CONFIG'¶
-
TOOL_CONFIG_TYPE_HTTP_ENDPOINT_TOOL_CONFIG
= 'HTTP_ENDPOINT_TOOL_CONFIG'¶
-
TOOL_CONFIG_TYPE_RAG_TOOL_CONFIG
= 'RAG_TOOL_CONFIG'¶
-
TOOL_CONFIG_TYPE_SQL_TOOL_CONFIG
= 'SQL_TOOL_CONFIG'¶
-
__init__
(**kwargs)¶ Initializes a new AgentToolConfig object with values from keyword arguments. The default value of the
tool_config_type
attribute of this class isAGENT_TOOL_CONFIG
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - tool_config_type (str) – The value to assign to the tool_config_type property of this AgentToolConfig. Allowed values for this property are: “SQL_TOOL_CONFIG”, “RAG_TOOL_CONFIG”, “FUNCTION_CALLING_TOOL_CONFIG”, “HTTP_ENDPOINT_TOOL_CONFIG”, “AGENT_TOOL_CONFIG”
- agent_endpoint_id (str) – The value to assign to the agent_endpoint_id property of this AgentToolConfig.
-
agent_endpoint_id
¶ [Required] Gets the agent_endpoint_id of this AgentToolConfig. The AgentEndpoint OCID to be used as a tool in this agent.
Returns: The agent_endpoint_id of this AgentToolConfig. Return type: str
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
tool_config_type
¶ [Required] Gets the tool_config_type of this ToolConfig. The type of the Tool config.
Allowed values for this property are: “SQL_TOOL_CONFIG”, “RAG_TOOL_CONFIG”, “FUNCTION_CALLING_TOOL_CONFIG”, “HTTP_ENDPOINT_TOOL_CONFIG”, “AGENT_TOOL_CONFIG”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The tool_config_type of this ToolConfig. Return type: str
-