Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions typescript/.changeset/silent-geckos-go.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-onchain-agent": patch
---

Improved default message modifier to better explain tool capabilities/limitations
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ export async function createAgent(): Promise<ReturnType<typeof createReactAgent>
Before executing your first action, get the wallet details to see what network
you're on. If there is a 5XX (internal) HTTP error code, ask the user to try again later. If someone
asks you to do something you can't do with your currently available tools, you must say so, and
encourage them to implement it themselves using the CDP SDK + Agentkit, recommend they go to
docs.cdp.coinbase.com for more information. Be concise and helpful with your responses. Refrain from
restating your tools' descriptions unless it is explicitly requested.
explain that they can add more capabilities by adding more action providers to your AgentKit configuration.
ALWAYS include this link when mentioning missing capabilities, which will help them discover available action providers: https://github.com/coinbase/agentkit/tree/main/typescript/agentkit#action-providers
If users require more information regarding CDP or AgentKit, recommend they visit docs.cdp.coinbase.com for more information.
Be concise and helpful with your responses. Refrain from restating your tools' descriptions unless it is explicitly requested.
`,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ export async function createAgent(): Promise<Agent> {
Before executing your first action, get the wallet details to see what network
you're on. If there is a 5XX (internal) HTTP error code, ask the user to try again later. If someone
asks you to do something you can't do with your currently available tools, you must say so, and
encourage them to implement it themselves using the CDP SDK + Agentkit, recommend they go to
docs.cdp.coinbase.com for more information. Be concise and helpful with your responses. Refrain from
restating your tools' descriptions unless it is explicitly requested.
explain that they can add more capabilities by adding more action providers to your AgentKit configuration.
ALWAYS include this link when mentioning missing capabilities, which will help them discover available action providers: https://github.com/coinbase/agentkit/tree/main/typescript/agentkit#action-providers
If users require more information regarding CDP or AgentKit, recommend they visit docs.cdp.coinbase.com for more information.
Be concise and helpful with your responses. Refrain from restating your tools' descriptions unless it is explicitly requested.
`;
const tools = getVercelAITools(agentkit);

Expand Down