Message

class oci.generative_ai_inference.models.Message(**kwargs)

Bases: object

An message that represents a single dialogue of chat

Methods

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

Attributes

content [Required] Gets the content of this Message.
role [Required] Gets the role of this Message.
__init__(**kwargs)

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

Parameters:
content

[Required] Gets the content of this Message. Contents of the chat message.

Returns:The content of this Message.
Return type:list[oci.generative_ai_inference.models.ChatContent]
role

[Required] Gets the role of this Message. Indicates who is giving the current message.

Returns:The role of this Message.
Return type:str