Expand description
Chat-based interactions with language models (e.g. ChatGPT style)
Structs§
- Chat
Message - A single message in a chat conversation.
- Chat
Message Builder - Builder for ChatMessage
- Function
Tool - Represents a function definition for a tool.
- Parameter
Property - Represents a parameter in a function tool
- Parameters
Schema - Represents the parameters schema for a function tool
- Structured
Output Format - 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§
- Chat
Role - Role of a participant in a chat conversation.
- Image
Mime - The supported MIME type of an image.
- Message
Type - The type of a message in a chat conversation.
- Reasoning
Effort - The type of reasoning effort for a message in a chat conversation.
- Tool
Choice - Tool choice determines how the LLM uses available tools. The behavior is standardized across different LLM providers.
Traits§
- Chat
Provider - Trait for providers that support chat-style interactions.
- Chat
Response