record_test_result
Record whether actual test execution passed or failed for a given request, providing a strong signal for context optimization.
Instructions
Record that tests RAN and either passed or failed for a request.
This is a STRONG signal — distinct from record_outcome which is the agent's self-report. Call this when actual test execution produced a real pass/fail outcome.
Args: request_id: the trace_id from the optimize_context call passed: True if all tests passed, False if any failed suite: optional name of the test suite (e.g. "pytest", "cargo test") details: optional short summary of what was tested
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| suite | No | ||
| passed | Yes | ||
| details | No | ||
| request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |