Skip to content

Give ToolCall its wire form, so a call without arguments is sent as {} - #33

Merged
MarcelloDuarte merged 1 commit into
mainfrom
developing-next-version
Nov 16, 2026
Merged

MarcelloDuarte merged 1 commit into
mainfrom
developing-next-version

Conversation

@MarcelloDuarte

Copy link
Copy Markdown
Contributor
  • ToolCall::argumentsAsJson() and argumentsAsObject()
  • No arguments encode as {}, never as []
  • Providers re-send tool calls through them

@MarcelloDuarte MarcelloDuarte changed the title Give ToolCall its wire form, so no arguments are sent as an object Give ToolCall its wire form, so a call without arguments is sent as {} Nov 16, 2026
@MarcelloDuarte
MarcelloDuarte merged commit 7bddd7b into main Nov 16, 2026
6 checks passed
@MarcelloDuarte
MarcelloDuarte deleted the developing-next-version branch November 16, 2026 20:30
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