"""agentic - a small, readable, testable agent toolkit.

Written for the "Agentic AI, End to End" course. Every module is short enough to
read in one sitting, stdlib-only, and exercised by tests that run offline with no
API key:

    python3 -m unittest discover -s tests -t .

Layout:
    model.py      the model boundary, FakeModel, a thin real adapter
    tools.py      tool schemas, validation, authorization, dispatch
    loop.py       the agent loop with budgets and named stop reasons
    memory.py     history windows, summarization, a durable fact store
    trace.py      nested spans, token and cost accounting, redaction
    evals.py      golden tasks, outcome and trajectory scoring, a judge
    guard.py      injection defense, allowlists, confirmation gates
    retrieval.py  embeddings, a tiny vector store, BM25, hybrid fusion
"""

from .model import (
    Completion,
    FakeModel,
    HTTPModel,
    Message,
    Model,
    ToolCall,
    echo_json,
    estimate_tokens,
    reset_call_ids,
    tool_call,
    tool_calls,
)
from .tools import (
    FatalToolError,
    Param,
    Registry,
    Tool,
    ToolConfigError,
    ToolError,
    ToolResult,
    tool,
)
from .loop import Agent, Budget, Run, Step, Stop
from .trace import NullTracer, Span, Tracer

__all__ = [
    "Agent",
    "Budget",
    "Completion",
    "FakeModel",
    "FatalToolError",
    "HTTPModel",
    "Message",
    "Model",
    "NullTracer",
    "Param",
    "Registry",
    "Run",
    "Span",
    "Step",
    "Stop",
    "Tool",
    "ToolCall",
    "ToolConfigError",
    "ToolError",
    "ToolResult",
    "Tracer",
    "echo_json",
    "estimate_tokens",
    "reset_call_ids",
    "tool",
    "tool_call",
    "tool_calls",
]

__version__ = "0.1.0"