Expand description
Core types: traits, messages, requests, responses, and errors
§Core Types
Self-contained type definitions for the CLI LLM runners library. These types mirror the LLM provider contract without requiring any external platform dependency.
Structs§
- Chat
Message - A single message in a chat conversation
- Chat
Request - Configuration for a chat completion request
- Chat
Response - Response from a chat completion
- Image
Part - An image attached to a chat message
- LlmCapabilities
- LLM provider capability flags using bitflags for efficient storage
- Runner
Error - Error type for CLI LLM runner operations
- Stream
Chunk - A chunk of a streaming response
- Token
Usage - Token usage statistics
- Tool
Call Request - A tool call requested by the assistant
- Tool
Definition - Definition of a tool that can be called by the model
Enums§
- Error
Kind - Categories of errors produced by CLI runners
- Message
Role - Role of a message in the conversation
- Response
Format - Controls the response format from the model
- Tool
Choice - Controls which tools the model may call
Traits§
- LlmProvider
- LLM provider trait for chat completion
Type Aliases§
- Chat
Stream - Stream type for chat completion responses