ChatDetails

class oci.generative_ai_agent_runtime.models.ChatDetails(**kwargs)

Bases: object

Chat details.

Methods

__init__(**kwargs) Initializes a new ChatDetails object with values from keyword arguments.

Attributes

session_id Gets the session_id of this ChatDetails.
should_stream Gets the should_stream of this ChatDetails.
user_message [Required] Gets the user_message of this ChatDetails.
__init__(**kwargs)

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

Parameters:
  • user_message (str) – The value to assign to the user_message property of this ChatDetails.
  • should_stream (bool) – The value to assign to the should_stream property of this ChatDetails.
  • session_id (str) – The value to assign to the session_id property of this ChatDetails.
session_id

Gets the session_id of this ChatDetails. Optional sessionId. If not provided, will chat without any prior context.

Returns:The session_id of this ChatDetails.
Return type:str
should_stream

Gets the should_stream of this ChatDetails. Whether to stream the response.

Returns:The should_stream of this ChatDetails.
Return type:bool
user_message

[Required] Gets the user_message of this ChatDetails. The input user message content for the chat.

Returns:The user_message of this ChatDetails.
Return type:str