Skip to content

feat(compose): support tool name and argument aliases in ToolsNode#931

Merged
shentongmartin merged 4 commits intoalpha/09from
feat/tool_alias_v3
Apr 8, 2026
Merged

feat(compose): support tool name and argument aliases in ToolsNode#931
shentongmartin merged 4 commits intoalpha/09from
feat/tool_alias_v3

Conversation

@JonXSnow
Copy link
Copy Markdown
Contributor

@JonXSnow JonXSnow commented Apr 3, 2026

Add ToolAliasConfig to allow configuring name aliases (multiple names resolving to the same tool) and argument aliases (remapping LLM-generated parameter keys to canonical keys) for ToolsNode.

  • NameAliases: resolve alternative tool names during dispatch
  • ArgumentAliases: remap top-level JSON keys before ToolArgumentsHandler
  • Validate alias conflicts and non-existent tool references at init time

@JonXSnow JonXSnow changed the base branch from main to alpha/09 April 3, 2026 03:11
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 3, 2026

Codecov Report

❌ Patch coverage is 90.78947% with 14 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (alpha/09@92ae043). Learn more about missing BASE report.

Files with missing lines Patch % Lines
compose/tool_node.go 90.78% 9 Missing and 5 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             alpha/09     #931   +/-   ##
===========================================
  Coverage            ?   81.84%           
===========================================
  Files               ?      158           
  Lines               ?    19109           
  Branches            ?        0           
===========================================
  Hits                ?    15639           
  Misses              ?     2332           
  Partials            ?     1138           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JonXSnow JonXSnow force-pushed the feat/tool_alias_v3 branch 2 times, most recently from ed82f32 to 8a9fa92 Compare April 7, 2026 06:31
@JonXSnow JonXSnow force-pushed the feat/tool_alias_v3 branch 4 times, most recently from 0c68dd5 to 176047a Compare April 7, 2026 11:16
Comment thread compose/tool_alias_test.go Outdated
Comment thread compose/tool_node.go Outdated
Comment thread compose/tool_node_test.go Outdated
Comment thread compose/tool_node.go
Comment thread compose/tool_node.go Outdated
@JonXSnow JonXSnow force-pushed the feat/tool_alias_v3 branch from 176047a to ad62fd1 Compare April 7, 2026 13:00
Add ToolAliasConfig to allow configuring name aliases (multiple names
resolving to the same tool) and argument aliases (remapping LLM-generated
parameter keys to canonical keys) for ToolsNode.

- NameAliases: resolve alternative tool names during dispatch
- ArgumentAliases: remap top-level JSON keys before ToolArgumentsHandler
- Validate alias conflicts and non-existent tool references at init time
@JonXSnow JonXSnow force-pushed the feat/tool_alias_v3 branch from ad62fd1 to 706095e Compare April 8, 2026 06:02
@shentongmartin shentongmartin merged commit cc27086 into alpha/09 Apr 8, 2026
16 checks passed
@shentongmartin shentongmartin deleted the feat/tool_alias_v3 branch April 8, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants