Repository navigation
Tools dynamic params - #1179
Tools dynamic params#1179
Conversation
WalkthroughThe changes restructure the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
llm_agents/tools_agent/lib/tools_agent.js (1)
13-14: Superfluous trailing commaThere is a trailing comma after
stream: true,insideparams. While legal in modern Node, it is transpiled artefact-only code; removing it in the TypeScript source avoids ESLintcomma-danglewarnings.- stream: true, + stream: truellm_agents/tools_agent/src/tools_agent.ts (1)
9-17: Keep TS source and compiled JS in sync & document the breaking changeThe TypeScript now exposes:
inputs: { messages: ":messages", prompt: ":userInput.text", tools: ":tools", }Good improvement for clarity, but please:
- Add a brief comment above this block explaining why
toolswas moved – future contributors will look here first.- Re-run the build step (
yarn build) after this edit; otherwiselib/may drift. The JS file in this PR is already updated – make sure CI enforces this.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
llm_agents/tools_agent/lib/tools_agent.js(1 hunks)llm_agents/tools_agent/package.json(1 hunks)llm_agents/tools_agent/src/tools_agent.ts(1 hunks)
🔇 Additional comments (2)
llm_agents/tools_agent/package.json (1)
3-3: Confirm public JSON schema change and version bumpI ran ripgrep across the codebase and found no internal references to the old
params.inputs.toolspath, indicating no internal breakage. However, because this alters the package’s public JSON structure, please verify that no downstream consumers rely on the previousparams.inputs.toolslocation.
- If any consumers depend on the old shape, this is a breaking change and warrants a major bump (e.g.
0.2.x→0.3.0).- If not, publishing as
0.2.4(patch bump) is fine.llm_agents/tools_agent/lib/tools_agent.js (1)
10-18:toolsinput relocation may break callersThe
toolsvalue used to live underparams.inputs; it is now surfaced atinputs.tools.
Any code that builds graphs programmatically or introspects the workflow may still expect the old path.
- Double-check all internal agents / helpers for
params.inputs.tools.- Consider providing a deprecation shim for one release cycle.
Summary by CodeRabbit
Refactor
Chores