Function: extractStructured()
extractStructured<T>(params): Promise<Result<T, AiError>>
Defined in: src/server/ai/index.ts:20
Extract structured data from input, validated against params.schema. Tries OpenAI, then falls
back to Anthropic on a retryable failure. Returns Err<AiError> rather than throwing.
Type Parameters
T
Parameters
params
ExtractParams<T>
Returns
Promise<Result<T, AiError>>