Function: generateObject()
generateObject<
T>(opts):Promise<GenerateObjectResult<output<T>>>
Defined in: packages/agentos/src/api/generateObject.ts:313
Generates a structured object by forcing the LLM to produce JSON matching a Zod schema.
Combines schema-aware prompt engineering with optional provider-native JSON mode and automatic retry-with-feedback to reliably extract typed data from unstructured text.