group
autogen.agentchat.group.ExpressionContextCondition
ExpressionContextCondition
Complex expression-based context condition.
This condition evaluates a ContextExpression against the context variables.
Initialize with an expression as a positional parameter.
Name | Description |
---|---|
expression | Type: ContextExpression |
**data | Type: Any |
Class Attributes
expression
model_config
Instance Methods
evaluate
Evaluate the expression against the context variables.
Name | Description |
---|---|
context_variables | The context variables to evaluate against Type: ContextVariables |
Type | Description |
---|---|
bool | Boolean result of the expression evaluation |