haive.core.common.structures.tree_leaf.generics¶

Generic type definitions for tree structures.

Provides TypeVars with proper bounds and defaults for maximum flexibility.

Classes¶

DefaultContent

Default content type with just a name/value.

DefaultResult

Default result type with status and data.

PlanContent

Content type for planning trees.

TaskContent

Content type for task trees.

Module Contents¶

class haive.core.common.structures.tree_leaf.generics.DefaultContent(/, **data)[source]¶

Bases: pydantic.BaseModel

Default 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.BaseModel

Default 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.BaseModel

Content 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.BaseModel

Content 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)