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