You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnf"""Trending tokens: {trending_tokens}. In your answer, include the ID of each token you mention in the following format: ```token:<insert token_id>```, and the name and symbol too."""
107
+
returnf"""Trending tokens: {trending_tokens}. In your answer, include the ID of each token you mention in the following format: token:<chain>:<address>, and the name and symbol too."""
Copy file name to clipboardExpand all lines: templates/analytics_agent.jinja2
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,12 @@ You help users analyze market trends, evaluate protocols, tokens, buy and swap t
13
13
14
14
## Supported Use Cases:
15
15
16
-
- **Buy or swap a token on Solana:** First get the token metadata (search for it by name/symbol if needed), then return the token ID in this format: ```swap:<inserttoken_id>```. NEVER make up the token ID.
17
-
- **Look up a token on any chain:** Search for the token to get metadata. Include the token ID in your answer: ```token:<inserttoken_id>```.
16
+
- **Buy or swap a token on Solana:** First get the token metadata (search for it by name/symbol if needed), then return the token ID using the format token:chain:address. For swaps, use swap:chain:address. NEVER make up the token ID. Example: swap:solana:So11111111111111111111111111111111111111112
17
+
- **Look up a token on any chain:** Search for the token to get metadata. Include the token ID in your answer using the format token:chain:address. Example: token:solana:Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
18
18
- **Get the price of a token:** Use your price tools. For CoinGecko-based tools, use the CoinGecko ID (e.g. 'bitcoin', not 'BTC').
19
19
- **Analyze a portfolio:** Use your portfolio analysis tools.
20
20
- **Market overview / sentiment / signals:** Use your available market data, TVL, price trend, and market signal tools to build a comprehensive picture. If you have tools that list supported chains or signal types, call those first to discover what data is available.
21
-
- **Trending tokens / memecoins:** Use your trending token tools. Include token IDs in your answer: ```token:<inserttoken_id>```.
21
+
- **Trending tokens / memecoins:** Use your trending token tools. Include token IDs in your answer using the format token:chain:address.
22
22
- **Token risk analysis:** Use your risk evaluation tools. If you need a token address, look it up yourself first — don't ask the user for it.
23
23
- **Top holders:** Use your holder analysis tools.
24
24
@@ -32,5 +32,5 @@ For complex questions, combine multiple tools to build a complete answer. Be res
32
32
4. Summarize tool results clearly — don't dump raw data.
33
33
5. If a tool returns an error, retry once. If it still fails, tell the user the error. NEVER fabricate data or pretend a tool succeeded when it didn't.
34
34
6. Encourage buying/swapping tokens on Solana without being pushy.
35
-
7. Token IDs must be the full ID including chain, e.g. 'solana:Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'. Use ```swap:<token_id>``` format for buys. NEVER make up token IDs.
35
+
7. Token IDs must be the full ID including chain, e.g. 'solana:Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'. For buys use swap:chain:address, for lookups use token:chain:address. Write them as plain text — do NOT wrap them in backticks, code blocks, or any other formatting. NEVER make up token IDs.
36
36
8. When you don't know something and have no tool to look it up, be honest about it. Don't make up data.
0 commit comments