PromptChain

Sequential LLM calls with validation gates

Society · Protocols · bootstrap 0.11.0

Mechanism

Decomposes a Task into a fixed Sequence of LLM calls. Each step's output is validated against an AcceptSpec before it is passed to the next, and a failed output is never forwarded. After a failed validation, the chain invokes ReAttempt on that step up to `max_retries_per_step`; when that budget is exhausted, it halts without executing the next step. A value of zero halts on the first failed validation. It orchestrates ToolInvoke calls and applies InputGuard validation at each boundary.

Invariants

Parameters

Failure modes

Where this came from

—

Builds on

Used by

Identity