available_condition
autogen.agentchat.group.available_condition.AvailableCondition
AvailableCondition
Protocol for determining if a condition is available to be evaluated.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError
][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.self
is explicitly positional-only to allow self
as a field name.
Name | Description |
---|---|
**data | Type: Any |
Class Attributes
model_config
Instance Methods
is_available
Determine if the condition should be considered for evaluation.
Name | Description |
---|---|
agent | The agent evaluating the condition Type: ConversableAgent |
messages | The conversation history Type: list[dict[str, typing.Any]] |
Type | Description |
---|---|
bool | True if the condition should be evaluated, False otherwise |