CohereTool

class oci.generative_ai_inference.models.CohereTool(**kwargs)

Bases: object

A definition of tool (function).

Methods

__init__(**kwargs) Initializes a new CohereTool object with values from keyword arguments.

Attributes

description [Required] Gets the description of this CohereTool.
name [Required] Gets the name of this CohereTool.
parameter_definitions Gets the parameter_definitions of this CohereTool.
__init__(**kwargs)

Initializes a new CohereTool object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • name (str) – The value to assign to the name property of this CohereTool.
  • description (str) – The value to assign to the description property of this CohereTool.
  • parameter_definitions (dict(str, CohereParameterDefinition)) – The value to assign to the parameter_definitions property of this CohereTool.
description

[Required] Gets the description of this CohereTool. The description of what the tool does, the model uses the description to choose when and how to call the function.

Returns:The description of this CohereTool.
Return type:str
name

[Required] Gets the name of this CohereTool. The name of the tool to be called. Valid names contain only the characters a-z, A-Z, 0-9, _ and must not begin with a digit.

Returns:The name of this CohereTool.
Return type:str
parameter_definitions

Gets the parameter_definitions of this CohereTool. The input parameters of the tool.

Returns:The parameter_definitions of this CohereTool.
Return type:dict(str, CohereParameterDefinition)