Skip to main content
Use these APIs when a tool execution continues asynchronously after submission.

Option 1: Await one action result

Use sdk.awaitAction when you want a single promise-based result tied to a chat.

Option 2: Subscribe to status transitions

Use sdk.subscribeToToolStatus for UI progress updates.

Option 3: Use AsyncToolChecker directly

For lower-level control, use AsyncToolChecker.

Descriptor fields

  • toolName: action key (swap, bridge, defiSupply, defiWithdraw)
  • protocol: provider key (lifi, aave, …)
  • For awaitAction: args
  • For subscribeToToolStatus / AsyncToolChecker.check: descriptor

Polling config units

interval, retryThreshold, and maxDuration are seconds.