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¶

example_basic_compatibility()

Check basic compatibility between two schemas.

example_compatibility_report()

Generate detailed compatibility report.

example_custom_converter()

Create and register a custom type converter.

example_field_mapping()

Map fields between incompatible schemas.

example_field_validation()

Create complex field validators.

example_langchain_conversion()

Convert between LangChain types.

example_performance_optimization()

Demonstrate performance features.

example_schema_evolution()

Handle schema version migration.

example_schema_merging()

Merge multiple schemas with different strategies.

example_state_schema_compatibility()

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

haive.core.schema.compatibility.examples.example_schema_merging()[source]¶

Merge multiple schemas with different strategies.

Return type:

None

haive.core.schema.compatibility.examples.example_state_schema_compatibility()[source]¶

Check compatibility with Haive StateSchema features.

Return type:

None