Skip to main content

Module model

Module model 

Source
Expand description

Model traits and types

This module defines the core model abstraction:

  • Model trait for model metadata (name, token limits)
  • Provider-specific traits (BedrockModel, AnthropicModel) for API IDs

Models are simple structs that implement these traits. All API interaction goes through the provider (e.g., BedrockProvider).

Structs§

ModelRequest
Request parameters for model completion
ModelResponse
Response from a model completion

Enums§

InferenceProfile
Cross-region inference profile configuration for Bedrock

Traits§

AnthropicModel
Trait for models available via Anthropic’s direct API
BedrockModel
Trait for models available on AWS Bedrock
Model
Core model metadata trait