diff --git a/typescript/.changeset/silent-geckos-go.md b/typescript/.changeset/silent-geckos-go.md new file mode 100644 index 000000000..5f5400dd5 --- /dev/null +++ b/typescript/.changeset/silent-geckos-go.md @@ -0,0 +1,5 @@ +--- +"create-onchain-agent": patch +--- + +Improved default message modifier to better explain tool capabilities/limitations diff --git a/typescript/create-onchain-agent/templates/next/app/api/agent/framework/langchain/create-agent.ts b/typescript/create-onchain-agent/templates/next/app/api/agent/framework/langchain/create-agent.ts index 4807e065d..75cdfdc2f 100644 --- a/typescript/create-onchain-agent/templates/next/app/api/agent/framework/langchain/create-agent.ts +++ b/typescript/create-onchain-agent/templates/next/app/api/agent/framework/langchain/create-agent.ts @@ -67,9 +67,10 @@ export async function createAgent(): Promise 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. `, }); diff --git a/typescript/create-onchain-agent/templates/next/app/api/agent/framework/vercel-ai-sdk/create-agent.ts b/typescript/create-onchain-agent/templates/next/app/api/agent/framework/vercel-ai-sdk/create-agent.ts index 381a3b32f..9a6c89416 100644 --- a/typescript/create-onchain-agent/templates/next/app/api/agent/framework/vercel-ai-sdk/create-agent.ts +++ b/typescript/create-onchain-agent/templates/next/app/api/agent/framework/vercel-ai-sdk/create-agent.ts @@ -64,9 +64,10 @@ export async function createAgent(): Promise { 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);