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