Expand description
Request-side LLM types: CompletionRequest, Message, Content,
ToolSpec, ToolChoice, and JsonSchema.
Structs§
- Completion
Request - Top-level request to an LLM provider.
- Image
Ref - A reference to an image attached to a
Message. - Json
Schema - Wrapper for a response-format JSON Schema.
- Message
- A single turn in a conversation, composed of one or more
Contentparts. - Tool
Call - A tool call emitted by the model inside an assistant
Message. - Tool
Result - The result of executing a tool, fed back to the model as a
Contentblock. - Tool
Spec - Declaration of a tool the model may invoke.
Enums§
- Content
- A single content block within a
Message. - Role
- The participant role for a
Message. - Tool
Choice - Controls whether and how the model calls tools.
Functions§
- humanize_
tool_ name - Derives a human display name from a machine tool
name.