CohereToolV2¶
- class oci.generative_ai_inference.models.CohereToolV2(**kwargs)¶
Bases:
objectA definition of tool (function).
Attributes:
A constant which can be used with the type property of a CohereToolV2.
[Required] Gets the function of this CohereToolV2.
[Required] Gets the type of this CohereToolV2.
Methods:
__init__(**kwargs)Initializes a new CohereToolV2 object with values from keyword arguments.
- TYPE_FUNCTION = 'FUNCTION'¶
A constant which can be used with the type property of a CohereToolV2. This constant has a value of “FUNCTION”
- __init__(**kwargs)¶
Initializes a new CohereToolV2 object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
type (str) – The value to assign to the type property of this CohereToolV2. Allowed values for this property are: “FUNCTION”
function (oci.generative_ai_inference.models.Function) – The value to assign to the function property of this CohereToolV2.
- property function¶
[Required] Gets the function of this CohereToolV2.
- Returns
The function of this CohereToolV2.
- Return type
- property type¶
[Required] Gets the type of this CohereToolV2. 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.
Allowed values for this property are: “FUNCTION”
- Returns
The type of this CohereToolV2.
- Return type
str