Skip to content

fix(responses): support tool namespace; bump to 1.0.14 (dima-2026080600118044658) - #26

Merged
mackong merged 2 commits into
mainfrom
develop
Aug 6, 2026
Merged

fix(responses): support tool namespace; bump to 1.0.14 (dima-2026080600118044658)#26
mackong merged 2 commits into
mainfrom
develop

Conversation

@mackong

@mackong mackong commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds support for the type: "namespace" tool in the responses protocol by flattening each namespace into individual type: "function" tools named <namespace>.<tool> (e.g. agents.spawn_agent), so downstream providers that don't understand the namespace tool type receive plain function tools.

Changes

  • New shared helper expandNamespaceTools() in src/responses/utils.ts
  • Applied in all three Responses converters:
    • ResponsesToChatCompletionConverter (forward convertTools + response-echo path)
    • ResponsesToMessagesConverter (convertTools)
    • ResponsesToGeminiConverter (convertTools)
  • Non-namespace tools pass through untouched; original order preserved; no-op when no namespace present
  • Bump version 1.0.131.0.14

Tests

  • 3 new tests (CC / messages / gemini) asserting the exact issue example expands to agents.spawn_agent
  • Full suite: 557/557 passing; tsc --noEmit clean

mackong added 2 commits August 6, 2026 19:37
…080600118044658)

Flatten Responses `type: "namespace"` tools into individual `type: "function"`
tools named `<namespace>.<tool>` (e.g. agents.spawn_agent) so downstream
chat-completions / messages / gemini providers, which do not understand the
namespace tool type, receive plain function tools.
@mackong
mackong merged commit ba79184 into main Aug 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant