@ai16z/eliza v1.0.0 / generateObjectV2
Function: generateObjectV2()
generateObjectV2(
options
):Promise
<GenerateObjectResult
<unknown
>>
Generates structured objects from a prompt using specified AI models and configuration options.
Parameters
• options: GenerationOptions
Configuration options for generating objects.
Returns
Promise
<GenerateObjectResult
<unknown
>>
- A promise that resolves to an array of generated objects.
Throws
- Throws an error if the provider is unsupported or if generation fails.