Skip to content

feat: improve agent instructions for accurate tool selection - #3

Open
ygd58 wants to merge 1 commit into
RitualChain:mainfrom
ygd58:feat/improve-agent-instructions
Open

feat: improve agent instructions for accurate tool selection#3
ygd58 wants to merge 1 commit into
RitualChain:mainfrom
ygd58:feat/improve-agent-instructions

Conversation

@ygd58

@ygd58 ygd58 commented Jul 1, 2026

Copy link
Copy Markdown

Summary

The existing agent instructions were a single vague line:

You are a helpful assistant that can help with market data.

With three tools now available (market, compare, priceHistory), the agent has no guidance on which tool to use for which query type. This leads to wrong tool selection or no tool being called at all.

Changes

  • Replace vague instructions with a detailed MarketMind system prompt
  • Explicitly maps each tool to the query types it handles
  • Adds formatting guidelines ($ for USD, abbreviate large numbers, highlight key stats)
  • Instructs agent to never guess prices from memory — always call a tool
  • Prevents redundant multi-call patterns (e.g. calling market 3x instead of compare once)

- Replace vague one-liner with detailed MarketMind system prompt
- Explicitly maps each tool to the query types it should handle:
  market (single token), compare (multi-token), priceHistory (trends)
- Adds formatting guidelines for numbers and response style
- Prevents agent from guessing prices from memory instead of calling tools
@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown

@ygd58 is attempting to deploy a commit to the 0xBuns Team on Vercel.

A member of the Team first needs to authorize it.

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