filter
Validates refs against a declared type and returns only those that match. Uses parallel processing to filter out invalid results.
Instructions
Filter refs by type validation — keep only results that match the declared type.
Runs validate on each ref in parallel. Returns only refs with VALID verdict. This is the type-gated composition primitive: ensures only correct results flow downstream.
Args: refs: JSON array of ref objects: [{"ref": "run_id/agent_id"}, ...]. declared_type: Type name or description to validate against. model: Model for the validator agents (default: sonnet). timeout: Timeout per validation (default: 120).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refs | Yes | ||
| declared_type | Yes | ||
| model | No | sonnet | |
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |