AvailableCondition

AvailableCondition(**data: Any)

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.

Parameters:
NameDescription
**dataType: Any

Class Attributes

model_config



Instance Methods

is_available

is_available(
    self,
    agent: ConversableAgent,
    messages: list[dict[str, Any]]
) -> bool

Determine if the condition should be considered for evaluation.

Parameters:
NameDescription
agentThe agent evaluating the condition

Type: ConversableAgent
messagesThe conversation history

Type: list[dict[str, typing.Any]]
Returns:
TypeDescription
boolTrue if the condition should be evaluated, False otherwise