-
Notifications
You must be signed in to change notification settings - Fork 202
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Problem
When a user asks to "automate a trade" (e.g. "set up a DCA for ETH over 7 days"), the agent calls both checkWalletCapabilities AND the trade tool (e.g. createTwap), then also explains what automation means — producing a confusing triple response.
tk ticket: sa-gwnv
Root Cause
The checkWalletCapabilities tool description is too broad — it says to call the tool "when the user asks about automated trading features (TWAP, DCA, stop-loss, scheduled trades)" which competes with the specific trade creation tools for the same intents. The system prompt says to pick a single tool, but the LLM sees both as relevant.
Fix (2 files)
apps/agentic-server/src/tools/checkWalletCapabilities.ts— narrow the tool description to only trigger for capability inquiries, not trade execution requestsapps/agentic-server/src/routes/chat.ts— strengthen<tool-routing>and<tool-ui>sections to disambiguate
Acceptance Criteria
- "Set up a DCA for 100 USDC into ETH" calls only createTwap, not checkWalletCapabilities
- "What can my wallet do?" still calls checkWalletCapabilities
- After successful trade creation, agent responds with one brief sentence
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Backlog