chunk-your-tools 2.0.3

MCP tool schema decomposition and recomposition
Documentation
"""Python SDK for chunk-your-tools (Rust-backed tool schema decomposition)."""

from chunk_your_tools import policies as policies
from chunk_your_tools.build import (
    CatalogIndex,
    NativeCatalogIndex,
    anthropic_tool_to_catalog_entry,
    anthropic_tools_to_catalog_entries,
    build_catalog_from_tools,
    build_catalog_index,
    catalog_index_tool_schema_metadata,
    catalog_tool_count,
    prepare_tool_entry,
    truncate_description,
)
from chunk_your_tools.catalog_io import CatalogBuilder, write_catalog_index
from chunk_your_tools.paths import (
    builder_memory_only,
    catalog_prefix,
    collect_enums,
    configure_path_constants,
    decomposed_prefix,
    decomposed_root,
    default_catalog_dir,
    json_ext,
    md_ext,
    write_catalog_prune,
)
from chunk_your_tools.policies import (
    PolicyContext,
    apply_tool_kind,
    scoring_policy_context,
)
from chunk_your_tools.retrieve import (
    DecomposedCatalog,
    chunk_survivor_key,
    load_catalog,
    removed_chunks,
    resolve_build_catalog,
    retrieve_catalog_tool_count,
    retrieve_core,
    retrieve_tools,
)
from chunk_your_tools.runtime_defaults import (
    configure_runtime_defaults,
    decomposed_score,
    default_mcp_policy,
    default_system_policy,
    empty_optional_fallback_k,
    enum_score,
    rerank_score,
)
from chunk_your_tools.survivors import (
    recompose_tools_from_names,
    resolve_survivors_from_names,
)
from chunk_your_tools.version import get_version

__all__ = [
    "CatalogBuilder",
    "CatalogIndex",
    "DecomposedCatalog",
    "NativeCatalogIndex",
    "PolicyContext",
    "anthropic_tool_to_catalog_entry",
    "anthropic_tools_to_catalog_entries",
    "apply_tool_kind",
    "build_catalog_from_tools",
    "build_catalog_index",
    "builder_memory_only",
    "catalog_index_tool_schema_metadata",
    "catalog_prefix",
    "catalog_tool_count",
    "chunk_survivor_key",
    "collect_enums",
    "configure_path_constants",
    "configure_runtime_defaults",
    "decomposed_prefix",
    "decomposed_root",
    "decomposed_score",
    "default_catalog_dir",
    "default_mcp_policy",
    "default_system_policy",
    "empty_optional_fallback_k",
    "enum_score",
    "get_version",
    "json_ext",
    "load_catalog",
    "md_ext",
    "policies",
    "prepare_tool_entry",
    "recompose_tools_from_names",
    "removed_chunks",
    "rerank_score",
    "resolve_build_catalog",
    "resolve_survivors_from_names",
    "retrieve_catalog_tool_count",
    "retrieve_core",
    "retrieve_tools",
    "scoring_policy_context",
    "truncate_description",
    "write_catalog_index",
    "write_catalog_prune",
]