Module message

Source
Expand description

Module for creating, modifying, and managing messages. This module defines the structures and methods for creating, modifying, and managing messages and their related content. It includes:

  • CreateMessageRequest: Struct for creating a new message with optional file IDs and metadata.
  • ModifyMessageRequest: Struct for modifying an existing message’s metadata.
  • MessageObject: Struct representing a message object with various attributes.
  • Content: Struct for the content of a message.
  • ContentText: Struct for text content within a message, including annotations.
  • ListMessage: Struct for listing multiple messages.
  • MessageFileObject: Struct representing a file object associated with a message.
  • ListMessageFile: Struct for listing multiple message file objects.
  • impl_builder_methods!: Macro for generating builder methods for structs.

Structs§

Content
Represents the content of a message.
ContentText
Represents text content within a message, including annotations.
CreateMessageRequest
Represents a request to create a new message.
ListMessage
Represents a list of messages.
ListMessageFile
Represents a list of message file objects.
MessageFileObject
Represents a file object associated with a message.
MessageObject
Represents a message object with various attributes.
ModifyMessageRequest
Represents a request to modify an existing message’s metadata.