Module core

Module core 

Source
Expand description

Core LLM abstractions and types

Defines the fundamental traits and types for the LLM system, providing a provider-agnostic interface for different LLM backends.

Structs§

GenerationParams
LLM generation parameters
LLMCapabilities
Capabilities of an LLM provider
LLMMessage
A message in an LLM conversation
LLMProviderConfig
Configuration for an LLM provider
LLMRequest
Request to an LLM provider
LLMResponse
Response from an LLM provider
ModelInfo
Information about a specific model
ModelPricing
Pricing information for a model
TokenUsage
Token usage information

Enums§

LLMError
Errors that can occur during LLM operations
MessageContent
Content type for messages
MessageRole
Role of a message in a conversation

Traits§

LLMProvider
Core trait for LLM providers

Type Aliases§

LLMResult