GenericToolOutput

class oci.generative_ai_agent_runtime.models.GenericToolOutput(**kwargs)

Bases: oci.generative_ai_agent_runtime.models.tool_output.ToolOutput

Specifies an output format for tools that return freeform or unstructured JSON content.

Attributes

TOOL_OUTPUT_TYPE_GENERIC_TOOL_OUTPUT str(object=’’) -> str
TOOL_OUTPUT_TYPE_RAG_TOOL_OUTPUT str(object=’’) -> str
TOOL_OUTPUT_TYPE_SQL_TOOL_OUTPUT str(object=’’) -> str
output [Required] Gets the output of this GenericToolOutput.
tool_id [Required] Gets the tool_id of this ToolOutput.
tool_name Gets the tool_name of this ToolOutput.
tool_output_type [Required] Gets the tool_output_type of this ToolOutput.

Methods

__init__(**kwargs) Initializes a new GenericToolOutput 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_OUTPUT_TYPE_GENERIC_TOOL_OUTPUT = 'GENERIC_TOOL_OUTPUT'
TOOL_OUTPUT_TYPE_RAG_TOOL_OUTPUT = 'RAG_TOOL_OUTPUT'
TOOL_OUTPUT_TYPE_SQL_TOOL_OUTPUT = 'SQL_TOOL_OUTPUT'
__init__(**kwargs)

Initializes a new GenericToolOutput object with values from keyword arguments. The default value of the tool_output_type attribute of this class is GENERIC_TOOL_OUTPUT and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • tool_id (str) – The value to assign to the tool_id property of this GenericToolOutput.
  • tool_name (str) – The value to assign to the tool_name property of this GenericToolOutput.
  • tool_output_type (str) – The value to assign to the tool_output_type property of this GenericToolOutput. Allowed values for this property are: “GENERIC_TOOL_OUTPUT”, “SQL_TOOL_OUTPUT”, “RAG_TOOL_OUTPUT”
  • output (object) – The value to assign to the output property of this GenericToolOutput.
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.

output

[Required] Gets the output of this GenericToolOutput. Specifies the freeform JSON object containing the tool’s output.

Returns:The output of this GenericToolOutput.
Return type:object
tool_id

[Required] Gets the tool_id of this ToolOutput. Specifies the unique OCID of the tool.

Returns:The tool_id of this ToolOutput.
Return type:str
tool_name

Gets the tool_name of this ToolOutput. Specifies the display name of the tool.

Returns:The tool_name of this ToolOutput.
Return type:str
tool_output_type

[Required] Gets the tool_output_type of this ToolOutput. Specifies the type of tool output (e.g., GENERIC_TOOL_OUTPUT, SQL_TOOL_OUTPUT).

Allowed values for this property are: “GENERIC_TOOL_OUTPUT”, “SQL_TOOL_OUTPUT”, “RAG_TOOL_OUTPUT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The tool_output_type of this ToolOutput.
Return type:str