Expand description
Function-call dispatcher for POST /api/v1/responses.
Mirrors Python’s [cognee.api.v1.responses.dispatch_function.dispatch_function].
When the OpenAI Responses API returns a function-call item in output, this
module routes it to the in-process pipeline (search / cognify) and returns
a JSON-serialisable result string the handler can fold back into the
response body as a ToolCallOutput.
Structs§
- Component
Handles Dispatcher - Production dispatcher backed by the wired
ComponentHandles. - Tool
Call - A parsed function-call item extracted from the Responses API
outputarray. - Tool
Dispatch Result - Outcome of dispatching one tool call.
Traits§
- Tool
Dispatcher - Trait used to fan out tool calls. Implementations may run real cognee
pipelines or canned stubs (the mocked dispatcher tests use a stub
ToolDispatcher).
Functions§
- default_
tools - Default tools advertised to the upstream OpenAI Responses API.
- dispatch_
one - Dispatch a single tool call to the appropriate handler.
- extract_
tool_ calls - Extract function-call entries from a Responses API
outputarray.