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/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/validate.ts#L493

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