Expand description
LLM provider integration.
This module re-exports types from llm-trait and provides agent-base
specific type conversions.
Structs§
- Capabilities
- Provider capability description.
- Chat
Request - Unified chat request format.
- Chat
Response - Unified non-streaming response format.
- Chat
Stream - Streaming response wrapper.
- LlmConfig
- LLM Provider configuration (protocol-agnostic, vendor-agnostic).
- Protocol
Parse Error - Error returned when parsing an invalid protocol string.
- Provider
Info - Provider information.
- RawRequest
- Raw HTTP request.
- Reasoning
Config - Reasoning/thinking configuration, unifying reasoning/thinking parameters across vendors.
- Stream
State - Stream parsing state for adapter-internal incremental assembly.
- Tool
Call - Tool call.
- Usage
Info - Token usage information for an LLM call.
Enums§
- Call
Mode - Call mode.
- Finish
Reason - Finish reason.
- Http
Method - Protocol
- Wire protocol type.
- Reasoning
Effort - Reasoning intensity/depth enumeration.
- Response
Format - Response format configuration.
- Stream
Chunk - Streaming response chunk.
Traits§
- LlmProvider
- LLM Provider unified interface.
- RawAdapter
- Low-level adapter trait.
Functions§
- extract_
tool_ calls - Extract tool call information from a Value.
- parse_
finish_ reason - Parse finish reason string to FinishReason enum.