Module thread

Source
Expand description

Module for creating and managing threads. This module defines the structures and methods for creating and modifying threads, as well as the message format used within threads. It includes:

  • CreateThreadRequest: Struct for creating a new thread with optional messages and metadata.
  • ThreadObject: Struct representing a thread object with various attributes.
  • Message: Struct for messages within a thread, including role, content, and optional metadata.
  • ModifyThreadRequest: Struct for modifying an existing thread’s metadata.
  • impl_builder_methods!: Macro for generating builder methods for structs.

Structs§

CreateThreadRequest
Represents a request to create a new thread.
Message
Represents a message within a thread.
ModifyThreadRequest
Represents a request to modify an existing thread’s metadata.
ThreadObject
Represents a thread object with various attributes.