Skip to content

feat: agent.addToolOutput for client-side tools - #443

Draft
robelest wants to merge 5 commits into
mainfrom
feat/add-tool-output
Draft

robelest wants to merge 5 commits into
mainfrom
feat/add-tool-output

Conversation

@robelest

Copy link
Copy Markdown
Collaborator

For #231.

agent.addToolOutput saves a client-side tool's result next to its call, mirroring the AI SDK's addToolOutput. createTool now accepts a tool without execute.

  • Reuses respondToToolCallApprovals through a new outputs arg.
  • An approval decision after a result is now "already handled".
  • Fixes a mixed step where an approved sibling of a client-side call never ran.

Saves a client tool's result through the approval path: same lookup
window, same already-handled check, same placement on the call's order.
createTool now accepts a tool without execute.
… saved calls once and continue after the last
@robelest
robelest requested a review from ianmacartney October 31, 2026 01:25
@pkg-pr-new

pkg-pr-new Bot commented Oct 31, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@convex-dev/agent@443

commit: adaf76d

@ianmacartney

Copy link
Copy Markdown
Member

When you're ready for a review, go ahead and take it out of draft mode. i think that'll enable Cubic to review it and put it on my radar

This branch has not been deployed

No deployments
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.

2 participants