CohereThinkingV2¶
- class oci.generative_ai_inference.models.CohereThinkingV2(**kwargs)¶
Bases:
objectConfiguration for reasoning features.
Attributes:
A constant which can be used with the type property of a CohereThinkingV2.
A constant which can be used with the type property of a CohereThinkingV2.
Gets the token_budget of this CohereThinkingV2.
[Required] Gets the type of this CohereThinkingV2.
Methods:
__init__(**kwargs)Initializes a new CohereThinkingV2 object with values from keyword arguments.
- TYPE_DISABLED = 'DISABLED'¶
A constant which can be used with the type property of a CohereThinkingV2. This constant has a value of “DISABLED”
- TYPE_ENABLED = 'ENABLED'¶
A constant which can be used with the type property of a CohereThinkingV2. This constant has a value of “ENABLED”
- __init__(**kwargs)¶
Initializes a new CohereThinkingV2 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 CohereThinkingV2. Allowed values for this property are: “ENABLED”, “DISABLED”
token_budget (int) – The value to assign to the token_budget property of this CohereThinkingV2.
- property token_budget¶
Gets the token_budget of this CohereThinkingV2. The maximum number of tokens the model can use for thinking, which must be set to a positive integer. The model will stop thinking if it reaches the thinking token budget and will proceed with the response.
- Returns
The token_budget of this CohereThinkingV2.
- Return type
int
- property type¶
[Required] Gets the type of this CohereThinkingV2. Reasoning is enabled by default for models that support it, but can be turned off by setting type = disbaled.
Allowed values for this property are: “ENABLED”, “DISABLED”
- Returns
The type of this CohereThinkingV2.
- Return type
str