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
railpay-agent-tools/openai: openaiChatTools() and openaiResponsesTools() for the tools of Chat Completions and the Responses API, and the dispatchers runOpenAIChatToolCalls(toolkit, message.tool_calls) and runOpenAIResponsesToolCalls(toolkit, response.output), which return the role: "tool" messages or function_call_output items to send back.
The dispatchers run only RailPay's calls, one after another, and skip other tools. Arguments that are not valid JSON get an invalid_input result.
Plain objects that type-check as the openai SDK types, so openai is not a dependency. Tested with openai 7.62.0.
Example examples/openai.ts (Responses API tool loop) and an OpenAI quick start in the README.
Fixed
The generic quick start in the README now type-checks.