ElizaAPIFunctionsGeneratetrueorfalse

@elizaos/core v0.1.7-alpha.1 / generateTrueOrFalse

Function: generateTrueOrFalse()

generateTrueOrFalse(opts): Promise<boolean>

Sends a message to the model and parses the response as a boolean value

Parameters

• opts

The options for the generateText request

• opts.runtime: IAgentRuntime

• opts.context: string = ""

The context to evaluate for the boolean response

• opts.modelClass: string

Returns

Promise<boolean>

Promise resolving to a boolean value parsed from the model’s response

Defined in

packages/core/src/generation.ts:710