Expand description
Chat completion builders and helpers.
This module provides ergonomic builders for chat completion requests, including helpers for common message patterns and streaming responses.
Structs§
- Chat
Completion Builder - Builder for chat completion requests.
Functions§
- image_
base64_ part - Helper function to create an image content part from base64 data with auto detail.
- image_
base64_ part_ with_ detail - Helper function to create an image content part from base64 data with specified detail level.
- image_
url_ part - Helper function to create an image content part from a URL with auto detail.
- image_
url_ part_ with_ detail - Helper function to create an image content part from a URL with specified detail level.
- system_
user - Helper function to create a system + user message chat completion.
- text_
part - Helper function to create a text content part.
- tool_
function - Helper function to create a function tool.
- tool_
web_ search - Helper function to create a web search tool.
- user_
message - Helper function to create a simple user message chat completion.