validate
Validate an artifact against a declared type using a type-checker agent. Inspects output and reports VALID, PARTIAL, or INVALID with per-criterion results.
Instructions
Validate an artifact against a declared type. Runs a type-checker agent that inspects the artifact and reports VALID/PARTIAL/INVALID with per-criterion results.
Use this after a pipeline step to verify the output matches expectations. If validation fails, you know which agent to blame and can retry.
Args: artifact: Description of what to validate — e.g. the agent's output text, a file path, or a ref {"ref": "run_id/agent_id"}. declared_type: The type to validate against — either a type name (e.g. "mcp-server") or inline natural language description. sandbox: Named sandbox spec or inline JSON for the validator agent. model: Model for the validator (default: sonnet — needs to be good at analysis). timeout: Timeout for the validation agent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| artifact | Yes | ||
| declared_type | Yes | ||
| sandbox | No | ||
| model | No | sonnet | |
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |