Expand description
Completion request, response streaming, and error types.
Structs§
- Completion
Request - A request to stream one completion from a model.
- Final
Response - Payload of
StreamChunk::Final. - Tool
Definition - Definition of one tool the model may call.
- Usage
- Token usage reported by a provider for one completion.
Enums§
- Completion
Error - Error invoking a completion model.
- Error
Class - Provider-declared classification of a completion error, telling callers how to react. Classification is the provider’s job — it knows its own failure modes — so the agent runtime never has to parse error message strings.
- Stream
Chunk - One streamed item of a completion response.
- Tool
Call Delta Content - The content of a
StreamChunk::ToolCallDelta.
Type Aliases§
- Model
Stream - The streaming response returned by a model invocation.