Skip to main content

Module model

Module model 

Source
Expand description

LLM trait, request/response types, and caching configuration.

Structs§

CitationMetadata
Citation metadata emitted by model providers for source attribution.
CitationSource
One citation source with optional offsets.
ContextCacheConfig
Configuration for automatic prompt caching lifecycle management.
GenerateContentConfig
Configuration for LLM content generation.
LlmRequest
A request to an LLM provider.
LlmResponse
A response from an LLM provider.
UsageMetadata
Token usage statistics from an LLM response.

Enums§

FinishReason
Reason the model stopped generating content.

Traits§

CacheCapable
Trait for LLM providers that support prompt caching.
Llm
The core trait for all LLM providers.

Type Aliases§

LlmResponseStream
A pinned, boxed stream of LlmResponse results from a model.