haive.core.common.structures.tree_leaf.generics¶
Generic type definitions for tree structures.
Provides TypeVars with proper bounds and defaults for maximum flexibility.
Classes¶
Default content type with just a name/value. |
|
Default result type with status and data. |
|
Content type for planning trees. |
|
Content type for task trees. |
Module Contents¶
- class haive.core.common.structures.tree_leaf.generics.DefaultContent(/, **data)[source]¶
Bases:
pydantic.BaseModelDefault content type with just a name/value.
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 haive.core.common.structures.tree_leaf.generics.DefaultResult(/, **data)[source]¶
Bases:
pydantic.BaseModelDefault result type with status and data.
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 haive.core.common.structures.tree_leaf.generics.PlanContent(/, **data)[source]¶
Bases:
pydantic.BaseModelContent type for planning trees.
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 haive.core.common.structures.tree_leaf.generics.TaskContent(/, **data)[source]¶
Bases:
pydantic.BaseModelContent type for task trees.
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)