solana-agent-kit v1.3.7
solana-agent-kit / Action

Interface: Action

Defined in: types/index.ts:125 Main Action interface inspired by ELIZA This interface makes it easier to implement actions across different frameworks

Properties

name

name: string
Defined in: types/index.ts:129 Unique name of the action

similes

similes: string[]
Defined in: types/index.ts:134 Alternative names/phrases that can trigger this action

description

description: string
Defined in: types/index.ts:139 Detailed description of what the action does

examples

examples: ActionExample[][]
Defined in: types/index.ts:145 Array of example inputs and outputs for the action Each inner array represents a group of related examples

schema

schema: ZodType
Defined in: types/index.ts:150 Zod schema for input validation

handler

handler: Handler
Defined in: types/index.ts:155 Function that executes the action