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 1: Basic state creation patterns. |
|
Example 2: Dynamic schema composition. |
|
Example 5: Engine I/O tracking for complex workflows. |
|
Example 4: Parent-child graph state sharing. |
|
Example 8: Real-world agent state pattern. |
|
Example 3: Understanding reducer behavior. |
|
Example 7: Merging schemas from multiple sources. |
|
Example 10: Schema visualization and introspection. |
|
Example 9: Serialization and persistence patterns. |
|
Example 6: Validation and custom methods. |
|
|
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