GenAiModelLlmSelection¶
- class oci.generative_ai.models.GenAiModelLlmSelection(**kwargs)¶
Bases:
LlmSelectionLLM selection with specific Gen AI model.
Attributes:
A constant which can be used with the llm_selection_type property of a LlmSelection.
[Required] Gets the llm_selection_type of this LlmSelection.
[Required] Gets the model_id of this GenAiModelLlmSelection.
Methods:
__init__(**kwargs)Initializes a new GenAiModelLlmSelection 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.
- LLM_SELECTION_TYPE_GEN_AI_MODEL = 'GEN_AI_MODEL'¶
A constant which can be used with the llm_selection_type property of a LlmSelection. This constant has a value of “GEN_AI_MODEL”
- __init__(**kwargs)¶
Initializes a new GenAiModelLlmSelection object with values from keyword arguments. The default value of the
llm_selection_typeattribute of this class isGEN_AI_MODELand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
llm_selection_type (str) – The value to assign to the llm_selection_type property of this GenAiModelLlmSelection. Allowed values for this property are: “GEN_AI_MODEL”
model_id (str) – The value to assign to the model_id property of this GenAiModelLlmSelection.
- 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.
- property llm_selection_type¶
[Required] Gets the llm_selection_type of this LlmSelection. The type of LLM selection.
Allowed values for this property are: “GEN_AI_MODEL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The llm_selection_type of this LlmSelection.
- Return type
str
- property model_id¶
[Required] Gets the model_id of this GenAiModelLlmSelection. The id of the GenAI model
- Returns
The model_id of this GenAiModelLlmSelection.
- Return type
str