Skip to main content

Module llm

Module llm 

Source
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.
ChatRequest
Unified chat request format.
ChatResponse
Unified non-streaming response format.
ChatStream
Streaming response wrapper.
LlmConfig
LLM Provider configuration (protocol-agnostic, vendor-agnostic).
ProtocolParseError
Error returned when parsing an invalid protocol string.
ProviderInfo
Provider information.
RawRequest
Raw HTTP request.
ReasoningConfig
Reasoning/thinking configuration, unifying reasoning/thinking parameters across vendors.
StreamState
Stream parsing state for adapter-internal incremental assembly.
ToolCall
Tool call.
UsageInfo
Token usage information for an LLM call.

Enums§

CallMode
Call mode.
FinishReason
Finish reason.
HttpMethod
Protocol
Wire protocol type.
ReasoningEffort
Reasoning intensity/depth enumeration.
ResponseFormat
Response format configuration.
StreamChunk
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.