rulvar API reference / @rulvar/core / Settled
Type Alias: Settled<T>
ts
type Settled<T> =
| {
result?: AgentResult<unknown>;
status: "ok";
value: T;
}
| {
error: WireError;
result?: AgentResult<unknown>;
status: "error";
}
| {
result: AgentResult<unknown>;
status: "limit";
}
| {
result?: AgentResult<unknown>;
status: "cancelled";
}
| {
result: AgentResult<unknown>;
status: "skipped";
}
| {
result: EscalatedResult<unknown>;
status: "escalated";
};Defined in: packages/core/src/engine/ctx.ts:229
The discriminated union over AgentStatus carrying the underlying AgentResult where one exists.
Type Parameters
| Type Parameter |
|---|
T |