Skip to content

Reference

Complete API reference for CT Toolkit.

  • TheseusWrapper

    The main entry point. Wraps any LLM client with identity protection.

    TheseusWrapper

  • WrapperConfig

    All configuration options with types, defaults, and examples.

    WrapperConfig

  • Policy & Capability Metadata

    Role-based policy resolution, capability registry, and standardized metadata surfaces.

    Policy & Capability Metadata

  • ConstitutionalKernel

    Loading, merging, validating, and updating kernels programmatically.

    ConstitutionalKernel

  • Divergence Engine

    DivergenceEngine, DivergenceResult, DivergenceTier, ElasticityScheduler.

    Divergence Engine

  • Context Compression Guard

    Manages context window usage and applies compression strategies.

    Context Compression Guard

  • Provenance Log

    Recording, verifying, exporting, and rolling back the HMAC hash chain.

    ProvenanceLog

  • Compatibility Matrix

    Which template + kernel combinations are Native, Compatible, or Conflicting.

    Compatibility Matrix

  • Kernels & Templates

    YAML specification for creating custom kernels and identity templates.

    Kernels & Templates

  • Exceptions

    Full exception hierarchy with usage examples.

    Exceptions