axValidateChatResponseResult
function axValidateChatResponseResult(results:
| readonly AxChatResponseResult[]
| Readonly<AxChatResponseResult>): void;
Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/ai/validate.ts#L190
Validates a chat response result to ensure it meets the required criteria
Parameters
Parameter | Type | Description |
---|---|---|
results | | readonly AxChatResponseResult [] | Readonly <AxChatResponseResult > | The chat response results to validate (single result or array) |
Returns
void
Throws
When validation fails with a descriptive error message