document_conditions
autogen.agents.experimental.document_agent.document_conditions.SummaryTaskAvailableCondition
SummaryTaskAvailableCondition
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.
Name | Description |
---|---|
**data | Type: Any |
Class Attributes
completed_var
documents_var
model_config
queries_var
Instance Methods
is_available
Check if all task conditions are met.
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 | True if all conditions are met (ready for summary), False otherwise |