You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
E4.5: wire real tool-calling through OpenAI provider #27
The real provider (OpenAiProvider, E4) is text-only: it never sends tools in the request body, never parses tool_calls from the response, and flattens the transcript to plain chat messages. The E3 mock exercises ProviderOutput::ToolCall, but with a live provider Tole can never call any tool — which blocks the E8 MVP gate.
Live smoke test (bifrost + glm/glm-5.1) confirmed: model replies "I don't have access to a cora_search tool".
Why
Without tool-calling on the wire, E8 (fix a real GitHub issue end-to-end) is impossible.
Scope
Tool::spec() — per-tool function spec (name, description, parameters schema) with a minimal default
ToolRegistry::specs() — collect into the OpenAI tools array
OpenAiProvider::with_tool_specs() — inject specs; request_body sends tools when non-empty
Flatten intent + tool_result entries to wire format (assistant tool_calls + role: tool messages; intent_id doubles as tool_call_id)
Parse choices[0].message.tool_calls → ProviderOutput::ToolCall (single-path: first call wins, per the state machine)
Activity