Module chat

Source
Expand description

Chat-based interactions with language models (e.g. ChatGPT style)

Structs§

ChatMessage
A single message in a chat conversation.
ChatMessageBuilder
Builder for ChatMessage
FunctionTool
Represents a function definition for a tool.
ParameterProperty
Represents a parameter in a function tool
ParametersSchema
Represents the parameters schema for a function tool
StructuredOutputFormat
Defines rules for structured output responses based on OpenAI’s structured output requirements. Individual providers may have additional requirements or restrictions, but these should be handled by each provider’s backend implementation.
Tool
Represents a tool that can be used in chat

Enums§

ChatRole
Role of a participant in a chat conversation.
ImageMime
The supported MIME type of an image.
MessageType
The type of a message in a chat conversation.
ReasoningEffort
The type of reasoning effort for a message in a chat conversation.
ToolChoice
Tool choice determines how the LLM uses available tools. The behavior is standardized across different LLM providers.

Traits§

ChatProvider
Trait for providers that support chat-style interactions.
ChatResponse