"""AgentDbg: local-first agent debugging (trace, record_llm_call, record_tool_call, record_state)."""

from agentdbg.exceptions import AgentDbgGuardrailExceeded, AgentDbgLoopAbort
from agentdbg.tracing import (
    has_active_run,
    record_llm_call,
    record_state,
    record_tool_call,
    trace,
    traced_run,
)

try:
    from agentdbg._version import version as __version__
except ImportError:
    # No version file was venerated; use dev default
    __version__ = "0.0.0dev+default"

__all__ = [
    "AgentDbgGuardrailExceeded",
    "AgentDbgLoopAbort",
    "trace",
    "traced_run",
    "has_active_run",
    "record_llm_call",
    "record_tool_call",
    "record_state",
    "__version__",
]
