summaryrefslogtreecommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2026-05-18 14:50:51 -0400
committerBen Sima <ben@bensima.com>2026-05-18 14:50:51 -0400
commit818b4fbc76b9ef28c68186ab9f382fda922ac31b (patch)
treec31539a7e8ca1a8367c15ee9925ec9160b400291 /shell.nix
parent02f93a674d42dd3e57672238284b68f17d102594 (diff)
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
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix
index 6bacce2..fcc0bd7 100644
--- a/shell.nix
+++ b/shell.nix
@@ -5,6 +5,8 @@ pkgs.mkShell {
(pkgs.python3.withPackages (ps: [
ps.zulip
ps.yfinance
+ ps.openai
+ ps.requests
]))
];