Skip to main content

Module models

Module models 

Source

Re-exports§

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

Modules§

tool_call
tools

Structs§

BackendConfig
Backend connection configuration
ChatMessage
Represents a chat message
LazyProjectContext
A lazily-loaded project context that loads files on demand
ModelCapabilities
Model capabilities (what the model/backend supports)
ModelConfig
Unified model configuration
ModelFactory
Factory for creating model instances
ModelResponse
Response from a model
ProjectContext
Represents the context of the current project
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

Functions§

get_priority_files
Priority files to load first for better UX

Type Aliases§

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