Skip to main content

Module types

Module types 

Source

Structs§

EmbedRequest
Embedding
Message
ModelId
Request
Response
ToolDefinition
A provider-agnostic tool the model may call. input_schema is a JSON Schema describing the tool’s arguments.
ToolUse
A tool call the model requested.
Usage

Enums§

ContentBlock
A single piece of a message’s content. Messages are sequences of blocks so that a turn can mix text with tool-use requests (assistant) and tool results (user) — the shape required for provider tool/function calling.
FinishReason
Role
StreamChunk

Type Aliases§

StreamResponse
Convenience alias used throughout the crate.