agents.planning.plan_and_execute.v2.models¶
Models for Plan and Execute Agent v2.
Classes¶
Action to take - either respond or create new plan. |
|
Result of executing a step. |
|
A plan containing steps to execute. |
|
Final response to user. |
|
A step in the plan. |
Module Contents¶
- class agents.planning.plan_and_execute.v2.models.Act(/, **data)¶
Bases:
pydantic.BaseModel
Action to take - either respond or create new plan.
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.planning.plan_and_execute.v2.models.ExecutionResult(/, **data)¶
Bases:
pydantic.BaseModel
Result of executing a step.
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.planning.plan_and_execute.v2.models.Plan(/, **data)¶
Bases:
pydantic.BaseModel
A plan containing steps to execute.
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)
- update_status()¶
Update plan status based on step completion.
- Return type:
None
- class agents.planning.plan_and_execute.v2.models.Response(/, **data)¶
Bases:
pydantic.BaseModel
Final response to user.
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.planning.plan_and_execute.v2.models.Step(/, **data)¶
Bases:
pydantic.BaseModel
A step in the plan.
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)