SummaryTaskAvailableCondition

SummaryTaskAvailableCondition(**data: Any)

Available condition for determining if a summary task should be performed.
This condition checks if:
1. There are no documents left to ingest 2. There are no queries left to run 3. The completed task count is truthy

If all conditions are met, the agent is ready for a summary task.
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

completed_var



documents_var



model_config



queries_var



Instance Methods

is_available

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

Check if all task conditions are met.

Parameters:
NameDescription
agentThe agent with context variables

Type: ConversableAgent
messagesThe conversation history (not used)

Type: list[dict[str, typing.Any]]
Returns:
TypeDescription
boolTrue if all conditions are met (ready for summary), False otherwise