From 818b4fbc76b9ef28c68186ab9f382fda922ac31b Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 18 May 2026 14:50:51 -0400 Subject: feat(slopbot): add LLM @mention with agentic Kagi tool calling (t-937) - Detect @**slop** mentions via MENTION_RE regex - Agentic loop (MAX_ITER=5): LLM decides when to call kagi_search - Routing: Parasail primary (model discovery), Ollama qwen2.5:3b fallback - kagi_search tool: hits Kagi API, returns top-3 snippet results - Tickers appended to LLM reply when @mention includes $TICKER - Logging: mention detected, tool calls, Kagi result count, backend used, response - shell.nix: added openai + requests packages - requirements.txt: openai>=1.0.0, requests>=2.28.0 --- .envrc | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .envrc (limited to '.envrc') diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..6c7f168 --- /dev/null +++ b/.envrc @@ -0,0 +1,2 @@ +export PARASAIL_API_KEY="psk-parasailzmJ0-Yj3t3mofugwBetQifS0r" +export KAGI_API_KEY="9Iyt2Wy_ZQFJzkFPL7t6AbvlrnlY8uTBcxC8fhqakqk.MxMiJl0SPTbtjRuZmaSTGi8LQBvq8dajYN29qdOtJ8Y" -- cgit v1.2.3