agents.research.perplexity.pro_search.tasks.modelsΒΆ
Pydantic models for recursive conditional planning with tree-based task decomposition. Supports dynamic planning, parallel execution, and adaptive replanning.
ClassesΒΆ
Execution plan for a set of tasks. |
|
State for recursive planning workflow. |
|
Strategy configuration for the planning process. |
|
Analysis for replanning decision. |
|
Result of decomposing a high-level task. |
|
Dependency relationship between tasks. |
|
Metadata for task tracking and optimization. |
|
Individual task node in the planning tree. |
|
Priority levels for tasks. |
|
Resource requirements for a task. |
|
Status of a task in the planning tree. |
Module ContentsΒΆ
- class agents.research.perplexity.pro_search.tasks.models.ExecutionPlan(/, **data)ΒΆ
Bases:
pydantic.BaseModel
Execution plan for a set of tasks.
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:
data (Any)
- calculate_resource_requirements()ΒΆ
Calculate total resource requirements.
- Return type:
- class agents.research.perplexity.pro_search.tasks.models.PlanningState(/, **data)ΒΆ
Bases:
pydantic.BaseModel
State for recursive planning workflow.
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:
data (Any)
- add_task(task, parent_id=None)ΒΆ
Add a task to the tree.
- update_task_status(task_id, status, result=None)ΒΆ
Update task status and handle state transitions.
- Parameters:
task_id (str)
status (TaskStatus)
- Return type:
None
- class agents.research.perplexity.pro_search.tasks.models.PlanningStrategy(/, **data)ΒΆ
Bases:
pydantic.BaseModel
Strategy configuration for the planning process.
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:
data (Any)
- validate_strategy_coherence()ΒΆ
Ensure strategy settings are coherent.
- Return type:
- class agents.research.perplexity.pro_search.tasks.models.ReplanningAnalysis(/, **data)ΒΆ
Bases:
pydantic.BaseModel
Analysis for replanning decision.
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:
data (Any)
- class agents.research.perplexity.pro_search.tasks.models.TaskDecomposition(/, **data)ΒΆ
Bases:
pydantic.BaseModel
Result of decomposing a high-level 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:
data (Any)
- calculate_critical_path()ΒΆ
Calculate critical path if not provided.
- Return type:
- class agents.research.perplexity.pro_search.tasks.models.TaskDependency(/, **data)ΒΆ
Bases:
pydantic.BaseModel
Dependency relationship between tasks.
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:
data (Any)
- class agents.research.perplexity.pro_search.tasks.models.TaskMetadata(/, **data)ΒΆ
Bases:
pydantic.BaseModel
Metadata for task tracking and optimization.
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:
data (Any)
- class agents.research.perplexity.pro_search.tasks.models.TaskNode(/, **data)ΒΆ
Bases:
pydantic.BaseModel
Individual task node in the planning tree.
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:
data (Any)
- can_start(completed_tasks)ΒΆ
Check if all dependencies are satisfied.
- classmethod validate_children_for_type(v, info)ΒΆ
Validate children based on task type.
- Return type:
Any
- class agents.research.perplexity.pro_search.tasks.models.TaskPriorityΒΆ
-
Priority levels for tasks.
Initialize self. See help(type(self)) for accurate signature.
- class agents.research.perplexity.pro_search.tasks.models.TaskResource(/, **data)ΒΆ
Bases:
pydantic.BaseModel
Resource requirements for a 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:
data (Any)