Skip to main content

Module models

Module models 

Source

Re-exports§

pub use tool_call::FunctionCall;
pub use tool_call::ToolCall;
pub use tools::Tool;
pub use tools::ToolFunction;
pub use tools::ToolRegistry;

Modules§

tool_call
Tool call parsing and conversion to AgentAction
tools
Ollama Tools API support for native function calling

Structs§

BackendConfig
Backend connection configuration
ChatMessage
Represents a chat message
ModelConfig
Unified model configuration
ModelFactory
Model factory - creates model instances
ModelResponse
Response from a model
OllamaOptions
Ollama-specific options (extracted from backend_options)
TokenUsage
Token usage statistics
UserFacingError
User-facing error information with actionable suggestions

Enums§

BackendError
Backend-specific errors
ConfigError
Configuration errors
ErrorCategory
Error categories for visual differentiation
MessageRole
ModelError
Top-level error type for all model operations

Traits§

Model
Core trait that all model adapters implement

Type Aliases§

Result
Result type alias for model operations
StreamCallback
Stream callback type for real-time response streaming