Skip to content

railpay-agent-tools v0.3.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 20:01
· 9 commits to main since this release

Added

  • 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.