Skip to main content

Function: generateTextArray()

generateTextArray(opts): Promise<string[]>

Send a message to the model and parse the response as a string array

Parameters

opts

The options for the generateText request

opts.context: string

The context/prompt to send to the model

opts.modelClass: string

opts.runtime: IAgentRuntime

Returns

Promise<string[]>

Promise resolving to an array of strings parsed from the model's response

Defined in

packages/core/src/generation.ts:492