Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
car-builder
Natural-language → validated car-workflow manifest builder
for the Common Agent Runtime.
Describe what you want in plain English; the builder prompts a model to emit a
workflow manifest, validates it with the runtime verifier
(car_workflow::verify_workflow) instead of trusting the model, and feeds the
concrete validation errors back for a bounded number of repair attempts.
Design: generation is injected
build_workflow is generic over an async generate(prompt) -> text closure, so
this crate has no inference dependency. The CLI / server / FFI wire the real
car-inference engine; tests inject a fake generator. The reusable,
deterministic part — prompt → parse → verify → repair-loop — is unit-tested
without a model.
use ;
# async
What it guarantees
- The returned workflow (when
valid) passesverify_workflow: reachable stages, no dangling edge/compensation references, approval gates with a non-emptyoutput_key, and proposal stages that passcar-verify. When a catalog of tools is supplied, it also references only known tool names. Semantic findings — edge-condition keys and state dependencies that no stage produces — are returned as non-blockingwarnings(and fed back as repair hints); they don't flipvalid, since they can false-positive on keys produced at runtime. - Output parsing tolerates markdown fences, preamble, and trailing commas via
car_ir::json_extract, and surfaces serde's error (e.g. the missing field) back to the repair loop. - On failure after
max_attempts, the last parseable-but-invalid workflow and the remaining issues are returned for inspection.
CLI
The CLI generates, validates, prints a summary, and (unless --yes) offers an
approve / revise / no loop before saving to ~/.car/workflows/<id>.json.