-
Notifications
You must be signed in to change notification settings - Fork 202
Open
Labels
Description
Problem
Users want to say "TWAP into the top gainer" or "DCA into a trending token" but the agent doesn't chain market data tools with trade execution. All building blocks exist (getTopGainersLosers, getTrendingTokens, createTwap) but the system prompt says "Each trade type is an independent workflow," discouraging chaining.
tk ticket: sa-wofz
Fix
Add a <compound-intents> section to the system prompt (~20-30 lines) that teaches the LLM to:
- Detect compound intent ("TWAP into a top gainer")
- Fetch market data first
- Present options to user
- Confirm parameters
- Execute createTwap
Constraint: TWAP only works on Ethereum/Gnosis/Arbitrum (CoW Protocol) — prompt must guide chain availability verification.
Key Files
apps/agentic-server/src/routes/chat.ts— system promptapps/agentic-server/src/tools/twap/createTwap.tsapps/agentic-server/src/tools/getTopGainersLosers.tsapps/agentic-server/src/tools/getTrendingTokens.ts
Acceptance Criteria
- LLM correctly chains getTopGainersLosers → user selection → createTwap
- LLM verifies token is on a CoW-supported chain before attempting TWAP
- Works for both "top gainers" and "trending tokens" data sources
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Backlog