Structsยง
- Accumulated
Tool ๐Call - FnCall
- FnDef ๐
- Message
- One message in an OpenAI Chat Completions conversation. Spec: https://platform.openai.com/docs/api-reference/chat/create#chat/create-messages
- Tool
Call - ToolDef
- VlmClient
- Direct HTTP client for an OpenAI-compatible chat-completions endpoint.
Cheap to clone โ
async_openai::Clientwraps areqwest::Client(anArc<...>internally). No mutex needed when sharing across tasks.
Enumsยง
- VlmStream
Item - Item yielded by the chat completion stream.
planner.rsmatches on this enum to drive token streaming, tool dispatch, and finish handling.
Constantsยง
- MAX_
OPEN_ ๐RETRIES
Functionsยง
- build_
openai_ ๐messages - build_
openai_ ๐tools - open_
retry_ ๐delay - process_
stream_ ๐line