RunState
type RunState = | { status: "running";} | { candidate: unknown; status: "completed";} | { status: "suspended";} | { status: "cancelled";} | { limit: LimitReason; status: "limited";} | { error: RunFailure; status: "failed";};Defined in: agents/src/types.ts:889
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ status: "running";}Type Literal
Section titled “Type Literal”{ candidate: unknown; status: "completed";}Saves the original result input, not a validator’s potentially non-JSON return value. After a handoff this is the active target’s candidate, validated only by that target.
Type Literal
Section titled “Type Literal”{ status: "suspended";}Type Literal
Section titled “Type Literal”{ status: "cancelled";}Type Literal
Section titled “Type Literal”{ limit: LimitReason; status: "limited";}Type Literal
Section titled “Type Literal”{ error: RunFailure; status: "failed";}