get_wallet_details
- Get details about the Wallet, like the addressnative_transfer
- Transfer native asset between addressesget_balance
- Get the balance of the native asset
Adding Action Provider Groupings
Adding an existing action provider to your agent is a two-step process:- Import the action provider to your file
- Add the action provider to your AgentKit instance
Creating an Action Provider
Action providers define the actions that an agent can take. They are created by subclassing theActionProvider
abstract class.
Adding Actions to an Action Provider
Actions are defined as instance methods on the action provider class with the Steps to create an actionAdding Actions to your Action Provider that use a Wallet ProviderActions that use a wallet provider can be defined as instance methods on the action provider class with the Adding an Action Provider to your AgentKit instance
@CreateAction
decorator. Actions can use a wallet provider or not and always return a Promise that resolves to a string.Required Typescript Compiler OptionsCreating actions with the @CreateAction decorator requires the following compilerOptions to be included in your project’s tsconfig.json.- Define the action schema. Action schemas are defined using the zod library.
- Define the action implementation.
@CreateAction
decorator that have a WalletProvider
as the first parameter.