Modules§
Structs§
- Function
Call - Function
Definition - Image
Url - Image URL/data struct used by
ContentPart::ImageUrl. - LlmResponse
- Message
- A single message in the LLM conversation history.
- Null
LlmProvider - No-op LLM provider for unit tests.
- Tool
Call - Tool
Definition - Usage
- Token usage statistics returned by the LLM API after a completion.
Used for cost tracking and context window management.
The API populates this only when
stream_options.include_usageis set totrue.
Enums§
- Content
Part - A single part of a message’s content.
- Role
Traits§
Functions§
- image_
to_ content_ part - Load an image file from disk and return a
ContentPart::ImageUrlcarrying a base64 data URI (data:<mime>;base64,<encoded>).