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§
- Create
Thread Request - Represents a request to create a new thread.
- Message
- Represents a message within a thread.
- Modify
Thread Request - Represents a request to modify an existing thread’s metadata.
- Thread
Object - Represents a thread object with various attributes.