Phase 7: Od user query k AI odpovědi (Claude SDK Agent + 14 Tools)
"Jaká je sankce za porušení GDPR?"
/help, /h - Zobrazit nápovědu/model, /m - Seznam modelů nebo přepnutí (haiku, sonnet, gpt-5-mini, gpt-5-nano)/stats, /s - Statistiky tool execution & cost tracking/config, /c - Zobrazit aktuální konfiguraci/clear, /reset - Vymazat konverzaci (reset)/exit, /quit, /q - Ukončit agentasrc/agent/cli.py, run_cli.sh
/model command)
search (unified hybrid search) s num_expands=1expand_contextfiltered_search s search_method="bm25_only" (BM25 keyword)src/agent/agent_core.py
search) s parametry. Tool provede retrieval pomocí Phase 5 komponent (Hybrid Search + Reranker + KG).
search tool):
💰 This message: $0.0042
Input (new): 1,234 tokens ($0.0012)
Input (cached): 8,456 tokens ($0.0008) — 90% savings!
Output: 567 tokens ($0.0022)
💵 Session total: $0.0156 (4 messages)
src/cost_tracker.py
num_expands=0: Fast (~200ms, 1 query)num_expands=1: Balanced (~500ms, 2 queries, +10-15% recall)num_expands=2: Better (~800ms, 3 queries, +15-25% recall)