Module chat

Module chat 

Source
Expand description

Provides chat-related functionality, including ChatMessage, ChatSession, and Role.

§Chat Module

This module provides the data structures for managing chat conversations. It defines the roles in a conversation, the structure of a chat message, and the chat session that holds the conversation history.

Structs§

ChatMessage
Represents a single message in a chat conversation.
ChatSession
Represents a chat session, including the conversation history and metadata.
FunctionCall
Represents a function call to be executed by a tool.
ToolCall
Represents a tool call requested by the assistant.

Enums§

Role
Represents the role of a participant in a chat conversation.