Paste in a messy bug description and get a clean, machine-readable report back. TheDocumentation Index
Fetch the complete documentation index at: https://docs.sirenspec.dev/llms.txt
Use this file to discover all available pages before exploring further.
schema guardrail rejects the agent’s output if it doesn’t conform to the declared JSON Schema — so every report has the same shape, every time.
What it demonstrates
schemaguardrail with a requiredconfigblock- Enforcing output contracts without post-processing
enumandmaxLengthconstraints inside the JSON Schema declaration- Combining
injectionandschemaguardrails on a single workflow
Run it
Workflow
docs/cookbook/structured-bug-reporter/workflow.yaml
The
schema guardrail is the only guardrail in SirenSpec that requires a config block. Zero-config guardrails like injection and length can be declared as bare strings. Any guardrail that needs configuration uses the name: + config: object form.How data flows
- The user’s freeform bug description is sent to
reporteras the user message. reporterproduces a JSON object conforming to the declared schema.- The
schemaguardrail validates the output before it is written tooutput.bug_report. If the output is missing a required field or violates a constraint (e.g.severityis not one of the four allowed values), the guardrail raises aGuardrailViolationand the workflow fails.
Graph
Next steps
Guardrails
Full reference for injection, length, PII, schema, and cost-cap guardrails.
Content Moderation Pipeline
Nested workflows with injection and PII guardrails applied in layers.