Function: generateShouldRespond()
generateShouldRespond(
opts
):Promise
<"RESPOND"
|"IGNORE"
|"STOP"
|null
>
Sends a message to the model to determine if it should respond to the given context.
Parameters
• opts
The options for the generateText request
• opts.context: string
The context to evaluate for response
• opts.modelClass: string
• opts.runtime: IAgentRuntime
Returns
Promise
<"RESPOND"
| "IGNORE"
| "STOP"
| null
>
Promise resolving to "RESPOND", "IGNORE", "STOP" or null