group
autogen.agentchat.group.StringAvailableCondition
StringAvailableCondition
String-based available condition.
This condition checks if a named context variable exists and is truthy.
Initialize with a context variable name as a positional parameter.
Name | Description |
---|---|
context_variable | Type: str |
**data | Type: Any |
Class Attributes
context_variable
model_config
Instance Methods
is_available
Check if the named context variable is truthy.
Name | Description |
---|---|
agent | The agent with context variables Type: ConversableAgent |
messages | The conversation history (not used) Type: list[dict[str, typing.Any]] |
Type | Description |
---|---|
bool | True if the variable exists and is truthy, False otherwise |