LLM Conditions#

This module provides LLM-based conditions.

class LLMCondition(**data)[source]#

Bases: BaseCondition, BaseLLMScriptFunction

LLM-based condition. Uses prompt to produce result from model and evaluates the result using given method.

method: BaseMethod#

Method that takes model’s output and returns boolean.

history: int#

Number of dialogue turns aside from the current one to keep in history. -1 for full history.

async call(ctx)[source]#

Implement this to create a custom function.

Return type:

bool