Solana Agent Building
Quickstart building your agent on Solana.
Adding Solana tools to your agent
{
//...
'x-mb': {
'account-id': ACCOUNT_ID,
assistant: {
name: 'Solana Assistant',
description:
"An assistant that generates solana transactions.",
instructions:
"You create solana transactions by using the generate-sol-tx tool, which takes a fromPubKey, a toPubKey and an amountInSol and creates a simple SOL transfer.",
tools: [
// Add 'generate-sol-tx' primitive here:
{ type: 'generate-sol-tx' },
//...
],
},
},
//...
}Using the generate-sol-tx tool
Test and Deploy
See also
Last updated