Skip to main content

Module vlm

Module vlm 

Source

Structsยง

AccumulatedToolCall ๐Ÿ”’
FnCall
FnDef ๐Ÿ”’
Message
One message in an OpenAI Chat Completions conversation. Spec: https://platform.openai.com/docs/api-reference/chat/create#chat/create-messages
ToolCall
ToolDef
VlmClient
Direct HTTP client for an OpenAI-compatible chat-completions endpoint. Cheap to clone โ€” async_openai::Client wraps a reqwest::Client (an Arc<...> internally). No mutex needed when sharing across tasks.

Enumsยง

VlmStreamItem
Item yielded by the chat completion stream. planner.rs matches 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 ๐Ÿ”’