Skip to main content

Module types

Module types 

Source
Expand description

Compatibility re-export of canonical wire types from echo_core::llm::types.

Structs§

ChatCompletionChunk
A single chunk from an SSE streaming response
ChatCompletionRequest
OpenAI /chat/completions request body
ChatCompletionResponse
OpenAI chat completion response
Choice
Candidate response
ChunkChoice
Streaming candidate response
DeltaFunctionCall
Incremental fragment of a streaming function call
DeltaMessage
Incremental message body in a streaming response
DeltaToolCall
Incremental fragment of a streaming tool call
FunctionCall
Function information for a tool call
FunctionSpec
Function declaration for a tool
ImageUrl
Image URL or Base64 data
JsonSchemaSpec
JSON Schema spec for structured output
Message
Conversation message
ToolCall
A single tool call initiated by the LLM
ToolDefinition
Tool definition sent to the LLM
Usage
Token usage statistics

Enums§

ContentPart
A single component of message content (multimodal)
MessageContent
Message content: compatible with both plain text and multimodal parts forms.
ResponseFormat
Response format control