validate_pipeline_stage
Check sub-agent output for missing or empty required keys to ensure data completeness before passing to the next pipeline stage.
Instructions
M5.7.4 — Validate a sub-agent output before passing to the next pipeline stage.
Treats sub-agent output with the same suspicion as external tool output.
Rejects if any required keys are missing or empty.
Args:
output_json: JSON string of the sub-agent output dict.
required_keys: Comma-separated list of required keys (e.g., "title,summary,agent_slug").Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_json | Yes | ||
| required_keys | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |