group
autogen.agentchat.group.ExpressionAvailableCondition
ExpressionAvailableCondition
Expression-based available 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
is_available
Evaluate the expression against the context variables.
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 | Boolean result of the expression evaluation |