CohereToolCallV2

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

Bases: object

A tool call generated by the model.

Attributes

TYPE_FUNCTION A constant which can be used with the type property of a CohereToolCallV2.
function Gets the function of this CohereToolCallV2.
id Gets the id of this CohereToolCallV2.
type Gets the type of this CohereToolCallV2.

Methods

__init__(**kwargs) Initializes a new CohereToolCallV2 object with values from keyword arguments.
TYPE_FUNCTION = 'FUNCTION'

A constant which can be used with the type property of a CohereToolCallV2. This constant has a value of “FUNCTION”

__init__(**kwargs)

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

Parameters:
  • id (str) – The value to assign to the id property of this CohereToolCallV2.
  • type (str) – The value to assign to the type property of this CohereToolCallV2. Allowed values for this property are: “FUNCTION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • function (object) – The value to assign to the function property of this CohereToolCallV2.
function

Gets the function of this CohereToolCallV2. Function of a tool call.

Returns:The function of this CohereToolCallV2.
Return type:object
id

Gets the id of this CohereToolCallV2. Id of the tool call.

Returns:The id of this CohereToolCallV2.
Return type:str
type

Gets the type of this CohereToolCallV2. Type of a tool call.

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

Returns:The type of this CohereToolCallV2.
Return type:str