Expand description
Shared V4 value types used across all non-chat model traits.
Aligned with Vercel AI SDK SharedV4* types
(reference/ai/packages/provider/src/shared/v4/).
These types are the common currency passed between the user-facing API and
the provider-facing traits (EmbeddingModel, ImageModel, …). They are
deliberately opaque to the core: providers read/write provider-specific
keys inside them.
Re-exports§
pub use crate::types::Warning;
Structs§
- Abort
Signal - A cancellation signal analogous to the Web
AbortSignal. - Aspect
Ratio - Aspect ratio in
{width}:{height}format (e.g."16:9"). - Request
Info - Optional request information for telemetry and debugging.
- Response
Info - Response information for telemetry and debugging.
- Size
- Image/video size in
{width}x{height}format (e.g."1024x1024").
Enums§
- File
Bytes - Either raw bytes or a base64-encoded string.
- File
Data - File data as a tagged discriminated union.
Type Aliases§
- Shared
Headers - Additional HTTP headers sent with a provider request.
- Shared
Provider Metadata - Additional provider-specific metadata (outputs), keyed by provider name.
- Shared
Provider Options - Additional provider-specific options (inputs), keyed by provider name.
- Shared
Provider Reference - A mapping of provider names to provider-specific file identifiers.