Skip to main content

Module types

Module types 

Source

Structs§

ChatRequest
A chat completion request.
ChatResponse
A chat completion response.
Message
A single message in the conversation.
Tool
A tool definition that the model can call.
ToolResult
Result of a tool invocation, sent back to the model.
ToolUse
A tool invocation returned by the model.
Usage
Token usage information.

Enums§

ContentPart
A part of message content.
ImageSource
Source data for an image.
Role
Role of a message participant.
StopReason
Reason why the model stopped generating.
StreamEvent
An event from a streaming chat response.
ToolChoice
Strategy for tool selection.