haive.core.schema.compatibility.examplesΒΆ
from typing import Any. Examples demonstrating the schema compatibility module.
This file shows various use cases and patterns for using the schema compatibility system in the Haive framework.
FunctionsΒΆ
Check basic compatibility between two schemas. |
|
Generate detailed compatibility report. |
|
Create and register a custom type converter. |
|
Map fields between incompatible schemas. |
|
Create complex field validators. |
|
Convert between LangChain types. |
|
Demonstrate performance features. |
|
Handle schema version migration. |
|
Merge multiple schemas with different strategies. |
|
Check compatibility with Haive StateSchema features. |
Module ContentsΒΆ
- haive.core.schema.compatibility.examples.example_basic_compatibility()[source]ΒΆ
Check basic compatibility between two schemas.
- Return type:
None
- haive.core.schema.compatibility.examples.example_compatibility_report()[source]ΒΆ
Generate detailed compatibility report.
- Return type:
None
- haive.core.schema.compatibility.examples.example_custom_converter()[source]ΒΆ
Create and register a custom type converter.
- Return type:
Any
- haive.core.schema.compatibility.examples.example_field_mapping()[source]ΒΆ
Map fields between incompatible schemas.
- Return type:
None
- haive.core.schema.compatibility.examples.example_field_validation()[source]ΒΆ
Create complex field validators.
- Return type:
Any
- haive.core.schema.compatibility.examples.example_langchain_conversion()[source]ΒΆ
Convert between LangChain types.
- Return type:
None
- haive.core.schema.compatibility.examples.example_performance_optimization()[source]ΒΆ
Demonstrate performance features.
- Return type:
None
- haive.core.schema.compatibility.examples.example_schema_evolution()[source]ΒΆ
Handle schema version migration.
- Return type:
Any