"""
tbc — Token Budget Contracts for Multi-Agent LLM Orchestration
─────────────────────────────────────────────────────────────────────────────
US Provisional Patent Application 64/081,925
Inventor: Swaranshu Borgaonkar
Filed: June 3, 2026

Patent-pending implementation of the TBC protocol.
Three patentable elements:
  1. TokenBudgetContract schema
  2. Priority-weighted dynamic reallocation algorithm
  3. Adaptive Confidence-Gated Retrieval (CGR)
─────────────────────────────────────────────────────────────────────────────
"""

from tbc.models import (
    TokenBudgetContract,
    Priority,
    ConfidenceMethod,
    InvocationResult,
    AbstainSignal,
    PipelineBudget,
    LedgerEntry,
)
from tbc.orchestrator import TBCOrchestrator, LLMClient
from tbc.ledger import BudgetLedger
from tbc.confidence import ConfidenceScorer, CGRCalibrationRecord
from tbc.token_utils import count_tokens, count_messages_tokens, ContextCompressor

__version__ = "1.0.0"
__author__  = "Swaranshu Borgaonkar"
__patent__  = "US Provisional 64/081,925"

__all__ = [
    "TokenBudgetContract",
    "Priority",
    "ConfidenceMethod",
    "InvocationResult",
    "AbstainSignal",
    "PipelineBudget",
    "LedgerEntry",
    "TBCOrchestrator",
    "LLMClient",
    "BudgetLedger",
    "ConfidenceScorer",
    "CGRCalibrationRecord",
    "count_tokens",
    "count_messages_tokens",
    "ContextCompressor",
]
