ChatResult¶
- class oci.generative_ai_inference.models.ChatResult(**kwargs)¶
Bases:
objectThe response to the chat conversation.
Methods:
__init__(**kwargs)Initializes a new ChatResult object with values from keyword arguments.
Attributes:
[Required] Gets the chat_response of this ChatResult.
[Required] Gets the model_id of this ChatResult.
[Required] Gets the model_version of this ChatResult.
- __init__(**kwargs)¶
Initializes a new ChatResult object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
model_id (str) – The value to assign to the model_id property of this ChatResult.
model_version (str) – The value to assign to the model_version property of this ChatResult.
chat_response (oci.generative_ai_inference.models.BaseChatResponse) – The value to assign to the chat_response property of this ChatResult.
- property chat_response¶
[Required] Gets the chat_response of this ChatResult.
- Returns
The chat_response of this ChatResult.
- Return type
- property model_id¶
[Required] Gets the model_id of this ChatResult. The OCID of the model that’s used in this inference request.
- Returns
The model_id of this ChatResult.
- Return type
str
- property model_version¶
[Required] Gets the model_version of this ChatResult. The version of the model.
- Returns
The model_version of this ChatResult.
- Return type
str