Mandatedocs
ReferenceSDK

Plans, steps and intents

The zod schemas the model fills and the SDK persists.

All schemas are exported both as zod objects and inferred types: IntentSchema/Intent, RepayIntentSchema/RepayIntent, StepSchema/Step, PlanSchema/Plan, StepKind, CallSchema.

Intent

What the model extracts from the user's message. Everything after it is deterministic.

Prop

Type

RepayIntent

Prop

Type

Step

Prop

Type

Statuses: pending, simulated, awaiting_guardian, executing, done, failed, skipped.

Plan

Prop

Type

projected holds the health factor, liquidation price, borrow APR and WETH price computed at plan time. collateralWeth is the collateral the plan adds (or, for repay plans, withdraws), as an 18-decimal string.

Step kinds

supply_borrow, bridge_burn, bridge_relay, pay, schedule_repayment, repay, mark_repaid. See the table in Plans and steps.

On this page