Skip to content

railpay-agent-tools v0.4.0

Choose a tag to compare

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

Added

  • railpay-agent-tools/anthropic: anthropicTools() for the tools of the Messages API, and runAnthropicToolUses(toolkit, message.content), which returns the tool_result blocks for RailPay's tool_use blocks, with is_error: true on refusals.
  • The dispatcher skips other tools, server tools and toolset members such as the browser tools, and works with both client.messages and client.beta.messages.
  • Plain objects that type-check as the @anthropic-ai/sdk types, so the SDK is not a dependency. Tested with @anthropic-ai/sdk 1.12.0.
  • Example examples/anthropic.ts (Claude tool loop with server-side refusal fallbacks) and an Anthropic quick start in the README.