Dynamic Tasks
Dynamic Tasks are the core building blocks of the Cyne AI framework, enabling agents to perform specific tasks such as whale tracking, liquidity management, token swapping, and more.
Overview
Action Structure
interface Action {
name: string;
similes: string[];
description: string;
validate: (runtime: IAgentRuntime, message: Memory) => Promise<boolean>;
handler: (
runtime: IAgentRuntime,
message: Memory,
state?: State
) => Promise<void>;
examples: ActionExample[][];
suppressInitialMessage?: boolean;
}Key Components
Built-In Actions in Cyne AI
1. CONTINUE
2. IGNORE
3. TRACK_WHALE
4. EXECUTE_SWAP
5. ANALYZE_RISK
6. GENERATE_REPORT
Creating Custom Actions
Basic Template
Best Practices for Actions
Last updated