Skip to main content

Module language_models

Module language_models 

Source
Expand description

Language model base traits.

Structs§

LLMResult
LLM result containing response content and metadata.
StreamChunk
A single streaming chunk emitted by BaseChatModel::stream_chat.
TokenUsage
Token usage statistics.

Enums§

MultimodalError
Errors from multimodal operations.
PredictToolsError
Error from predict_tools.

Traits§

BaseChatModel
Base trait for chat models.
BaseLanguageModel
Base trait for all language models.
MultimodalModel
Multimodal model trait — extends BaseChatModel with audio, speech, and image generation.

Functions§

predict_tools
One-shot tool call: bind_tools + chat in a single entry point.