StringAvailableCondition
autogen.agentchat.group.available_condition.StringAvailableCondition #
Bases: AvailableCondition
String-based available condition.
This condition checks if a named context variable exists and is truthy.
is_available #
Check if the named context variable is truthy.
PARAMETER | DESCRIPTION |
---|---|
agent | The agent with context variables TYPE: |
messages | The conversation history (not used) |
RETURNS | DESCRIPTION |
---|---|
bool | True if the variable exists and is truthy, False otherwise |