FunctionCallingToolConfig¶
- class oci.generative_ai_agent.models.FunctionCallingToolConfig(**kwargs)¶
Bases:
ToolConfigThe configuration for Function calling Tool.
Attributes:
A constant which can be used with the tool_config_type property of a ToolConfig.
A constant which can be used with the tool_config_type property of a ToolConfig.
A constant which can be used with the tool_config_type property of a ToolConfig.
A constant which can be used with the tool_config_type property of a ToolConfig.
A constant which can be used with the tool_config_type property of a ToolConfig.
[Required] Gets the function of this FunctionCallingToolConfig.
[Required] Gets the tool_config_type of this ToolConfig.
Methods:
__init__(**kwargs)Initializes a new FunctionCallingToolConfig 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'¶
A constant which can be used with the tool_config_type property of a ToolConfig. This constant has a value of “AGENT_TOOL_CONFIG”
- TOOL_CONFIG_TYPE_FUNCTION_CALLING_TOOL_CONFIG = 'FUNCTION_CALLING_TOOL_CONFIG'¶
A constant which can be used with the tool_config_type property of a ToolConfig. This constant has a value of “FUNCTION_CALLING_TOOL_CONFIG”
- TOOL_CONFIG_TYPE_HTTP_ENDPOINT_TOOL_CONFIG = 'HTTP_ENDPOINT_TOOL_CONFIG'¶
A constant which can be used with the tool_config_type property of a ToolConfig. This constant has a value of “HTTP_ENDPOINT_TOOL_CONFIG”
- TOOL_CONFIG_TYPE_RAG_TOOL_CONFIG = 'RAG_TOOL_CONFIG'¶
A constant which can be used with the tool_config_type property of a ToolConfig. This constant has a value of “RAG_TOOL_CONFIG”
- TOOL_CONFIG_TYPE_SQL_TOOL_CONFIG = 'SQL_TOOL_CONFIG'¶
A constant which can be used with the tool_config_type property of a ToolConfig. This constant has a value of “SQL_TOOL_CONFIG”
- __init__(**kwargs)¶
Initializes a new FunctionCallingToolConfig object with values from keyword arguments. The default value of the
tool_config_typeattribute of this class isFUNCTION_CALLING_TOOL_CONFIGand 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 FunctionCallingToolConfig. Allowed values for this property are: “SQL_TOOL_CONFIG”, “RAG_TOOL_CONFIG”, “FUNCTION_CALLING_TOOL_CONFIG”, “HTTP_ENDPOINT_TOOL_CONFIG”, “AGENT_TOOL_CONFIG”
function (oci.generative_ai_agent.models.Function) – The value to assign to the function property of this FunctionCallingToolConfig.
- property function¶
[Required] Gets the function of this FunctionCallingToolConfig.
- Returns
The function of this FunctionCallingToolConfig.
- Return type
- 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.
- property 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