Expand description
Core LLM request/response types. Core types for the LLM client module.
Structs§
- Chat
Message - A single message in a chat conversation.
- LLMRequest
- A chat completion request to an LLM provider.
- LLMRequest
Builder - Builder for constructing
LLMRequestinstances with a fluent API. - LLMResponse
- A chat completion response from an LLM provider.
- Model
Config - Configuration for a specific LLM model and provider.
- Token
Usage - Token usage statistics from an LLM response.
Enums§
- Content
Part - A single content part in a multimodal chat message.
- Message
Role - Role of a message sender in a chat conversation.
- Response
Format - Desired output format for the LLM response.
- Stream
Event - A single event in an LLM streaming response.
Type Aliases§
- LLMStream
- Type alias for a boxed streaming response.