StringContextCondition
autogen.agentchat.group.context_condition.StringContextCondition #
Bases: ContextCondition
Simple string-based context condition.
This condition checks if a named context variable exists and is truthy.
evaluate #
Check if the named context variable is truthy.
PARAMETER | DESCRIPTION |
---|---|
context_variables | The context variables to check against TYPE: |
RETURNS | DESCRIPTION |
---|---|
bool | True if the variable exists and is truthy, False otherwise |