"""念念对话层 — Session、Pipeline、ingest_gate。"""

from niannian.chat.ingest_gate import IngestDecision, ingest_gate
from niannian.chat.intents import IntentResult, classify_intent
from niannian.chat.pipeline import ChatPipeline, TurnResult
from niannian.chat.session import Session, SessionNotFoundError, SessionStore, Turn, TurnInProgressError
from niannian.chat.stream import format_sse_event, sse_delta, sse_done, sse_error, sse_trace

__all__ = [
    "ChatPipeline",
    "TurnResult",
    "Session",
    "SessionStore",
    "Turn",
    "SessionNotFoundError",
    "TurnInProgressError",
    "classify_intent",
    "IntentResult",
    "ingest_gate",
    "IngestDecision",
    "format_sse_event",
    "sse_delta",
    "sse_done",
    "sse_error",
    "sse_trace",
]
