Expand description
Types shared by every model interface: identifiers, provider options and metadata, warnings, headers, media types, file data and serde helpers.
Structs§
- Approval
Id - Identifier of a tool approval request.
- Audio
Format - Audio encoding and sample rate.
- BatchId
- Identifier of a provider batch job.
- Headers
- Request or response headers.
- Invalid
Header - Error returned when a header name or value is invalid.
- Media
Type - An IANA media type such as
image/png, or a top-level type such asimage. - ModelId
- Model identifier as understood by the provider, for example
gpt-5. - PartId
- Identifier of a text, reasoning or tool-input part within a stream.
- Provider
Id - Provider identifier, for example
openai.responsesoranthropic.messages. - Tool
Call Id - Identifier of a tool call, assigned by the provider.
- Tool
Name - Name of a tool as exposed to the model.
Enums§
- File
Data - The payload of a file: inline bytes, a URL, a provider reference or an inline text document.
- Warning
- A non-fatal warning produced while preparing or executing a call.
Type Aliases§
- Provider
Metadata - Provider-specific response metadata, grouped by provider key.
- Provider
Options - Provider-specific request options, grouped by provider key.
- Provider
Reference - Provider-side resource identifiers, keyed by provider name.