Skip to main content
The runtime passes AgentContext to run and unwind; agents never instantiate it. It exposes sessionId, walletAddress, resolved settings, trigger, fixed allocation, and the SDK resources. trigger.kind is schedule, manual, price, resolution, allocation (deposit or withdraw), position or fill. Price-trigger values are decimal strings; venue triggers identify the Hyperliquid coin or Polymarket outcome token. Methods return data or throw structured errors. Holdings, settings, wallet transactions, allocation scope, and the execution model describe the individual contracts.