axValidateChatResponseResult Generated TypeScript API reference. typescript api api/reference build/apidocs/Function.axValidateChatResponseResult.md function axValidateChatResponseResult

axValidateChatResponseResult

TypeScript
function axValidateChatResponseResult(results: 
  | readonly AxChatResponseResult[]
  | Readonly<AxChatResponseResult>): void;

Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/validate.ts#L523

Validates a chat response result to ensure it meets the required criteria

Parameters

ParameterTypeDescription
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

Docs