Skip to main content

Module request

Module request 

Source
Expand description

Request-side LLM types: CompletionRequest, Message, Content, ToolSpec, ToolChoice, and JsonSchema.

Structs§

CompletionRequest
Top-level request to an LLM provider.
ImageRef
A reference to an image attached to a Message.
JsonSchema
Wrapper for a response-format JSON Schema.
Message
A single turn in a conversation, composed of one or more Content parts.
ToolCall
A tool call emitted by the model inside an assistant Message.
ToolResult
The result of executing a tool, fed back to the model as a Content block.
ToolSpec
Declaration of a tool the model may invoke.

Enums§

Content
A single content block within a Message.
Role
The participant role for a Message.
ToolChoice
Controls whether and how the model calls tools.

Functions§

humanize_tool_name
Derives a human display name from a machine tool name.