Function: validateReasonerOutput()
ts
function validateReasonerOutput(
schema: Schema,
args: Record<string, EncodableValue>,
): string | true;Defined in: src/batteries/orchestration/reason.ts:101
Validate captured tool arguments against the decoded schema, returning a discriminated result rather than throwing.
Parameters
| Parameter | Type | Description |
|---|---|---|
schema | Schema | The decoded output schema |
args | Record<string, EncodableValue> | The captured tool arguments to validate |
Returns
string | true
true if validation succeeds, or the validation error message if it fails