createGenerateObject
createGenerateObject(
bridge): <T>(options) =>Promise<GenerateObjectResult<T>>
Defined in: structured-output.ts:446
Create a generateObject function bound to a Bridge instance
This is a factory function that creates a generateObject implementation that uses the provided Bridge for making LLM calls.
Parameters
Section titled “Parameters”bridge
Section titled “bridge”any
Returns
Section titled “Returns”<
T>(options):Promise<GenerateObjectResult<T>>
Type Parameters
Section titled “Type Parameters”T = any
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Promise<GenerateObjectResult<T>>