Action System
Overview
Tools are the fundamental building blocks of DeFAI operations in edwin. They represent standardized operations that AI agents can execute across different protocols and chains. Each tool is designed to be atomic, predictable, and composable, enabling AI agents to build complex DeFAI strategies.
Tool Types
edwin supports a comprehensive set of DeFAI tools through various plugins:
Lending & Borrowing (Aave)
supply
: Supply assets to Aave protocolwithdraw
: Withdraw supplied assets from Aave
Trading & Liquidity (Uniswap)
swap
: Swap tokens on UniswapaddLiquidity
: Add liquidity to Uniswap poolsremoveLiquidity
: Remove liquidity from Uniswap pools
Staking & Yield (Lido)
stake
: Stake ETH on Lidounstake
: Unstake stETH from Lido
Tool Lifecycle
Each tool follows a simple execution pattern:
Tool Composition
Tools can be composed together to create sophisticated DeFAI strategies:
Through the tool system, AI agents can create, execute, and compose DeFAI operations while maintaining predictability and safety across different protocols and chains.
Last updated