haive.core.schema.exampleΒΆ

from typing import Any. Haive Schema System Examples.

This file demonstrates comprehensive usage of the Haive Schema System, including state creation, dynamic composition, reducers, and real-world patterns.

FunctionsΒΆ

example_basic_state_creation()

Example 1: Basic state creation patterns.

example_dynamic_composition()

Example 2: Dynamic schema composition.

example_engine_io_tracking()

Example 5: Engine I/O tracking for complex workflows.

example_parent_child_sharing()

Example 4: Parent-child graph state sharing.

example_real_world_agent_state()

Example 8: Real-world agent state pattern.

example_reducer_behavior()

Example 3: Understanding reducer behavior.

example_schema_merging()

Example 7: Merging schemas from multiple sources.

example_schema_visualization()

Example 10: Schema visualization and introspection.

example_serialization_patterns()

Example 9: Serialization and persistence patterns.

example_validation_and_custom_methods()

Example 6: Validation and custom methods.

main()

Run all examples.

Module ContentsΒΆ

haive.core.schema.example.example_basic_state_creation()ΒΆ

Example 1: Basic state creation patterns.

Return type:

None

haive.core.schema.example.example_dynamic_composition()ΒΆ

Example 2: Dynamic schema composition.

Return type:

None

haive.core.schema.example.example_engine_io_tracking()ΒΆ

Example 5: Engine I/O tracking for complex workflows.

Return type:

None

haive.core.schema.example.example_parent_child_sharing()ΒΆ

Example 4: Parent-child graph state sharing.

Return type:

None

haive.core.schema.example.example_real_world_agent_state()ΒΆ

Example 8: Real-world agent state pattern.

Return type:

None

haive.core.schema.example.example_reducer_behavior()ΒΆ

Example 3: Understanding reducer behavior.

Return type:

None

haive.core.schema.example.example_schema_merging()ΒΆ

Example 7: Merging schemas from multiple sources.

Return type:

None

haive.core.schema.example.example_schema_visualization()ΒΆ

Example 10: Schema visualization and introspection.

Return type:

None

haive.core.schema.example.example_serialization_patterns()ΒΆ

Example 9: Serialization and persistence patterns.

Return type:

None

haive.core.schema.example.example_validation_and_custom_methods()ΒΆ

Example 6: Validation and custom methods.

Return type:

Any

haive.core.schema.example.main()ΒΆ

Run all examples.

Return type:

None