astra-vision/astra
Jeuner 0d2e826dd3 feat: read full article text via a new read_article tool
Löst die RSS-Beschränkung: Feed-Einträge liefern nur eine kurze
Teaser-Beschreibung, nie den vollen Artikeltext.

- astra/articles.py: lädt eine URL, extrahiert den reinen Fließtext via
  trafilatura (ohne Navigation/Werbung/Boilerplate). Live gegen einen
  echten RP-ONLINE-Artikel verifiziert (1682 Zeichen sauberer Text).
- read_article-Tool in tools.py, gleiches tool_start/tool_result/
  tool_error-Muster wie die anderen beiden Tools. Beschreibung nennt
  explizit den erwarteten Anwendungsfall (Nachfrage zu einer schon
  genannten Schlagzeile) — konsequent nach der zuletzt beschlossenen
  Regel, Tool-Verhalten nur in der FunctionSchema, nie im SYSTEM_PROMPT.

Gemessen: mit drei Tools sinkt read_news weiter auf ca. 15-20%
(vorher mit zwei Tools 20-50%). read_article selbst liegt bei einer
konkreten Nachfrage zu einer schon im Kontext stehenden Schlagzeile
bei ~65% (2/3 in einem Live-Lauf gegen echtes Ollama, echter
Artikeltext erfolgreich extrahiert; der eine Fehlschlag gab ehrlich
zu, den Volltext nicht zu kennen, statt zu erfinden).

NICHT gepusht — auf Anweisung bis auf Weiteres nur lokal.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LVgSHNHdRx3UNTBodFmhRA
2026-09-07 18:26:02 +02:00
..
__init__.py feat: initial commit of astra local voice agent 2026-09-07 13:39:51 +02:00
articles.py feat: read full article text via a new read_article tool 2026-09-07 18:26:02 +02:00
comfyui.py feat: image generation via ComfyUI and PDF/image upload 2026-09-07 15:56:18 +02:00
comfyui_workflow.json feat: image generation via ComfyUI and PDF/image upload 2026-09-07 15:56:18 +02:00
core.py refactor: move tool behavior out of SYSTEM_PROMPT into each tool's own description 2026-09-07 18:01:31 +02:00
documents.py feat: image generation via ComfyUI and PDF/image upload 2026-09-07 15:56:18 +02:00
feeds.py feat: add a local Hilden news topic to read_news 2026-09-07 18:11:19 +02:00
inference.py feat: add voice picker UI and optional Tailnet exposure 2026-09-07 15:15:13 +02:00
prepare.py feat: add voice picker UI and optional Tailnet exposure 2026-09-07 15:15:13 +02:00
rss.py feat: read German news from curated RSS feeds 2026-09-07 17:55:24 +02:00
server.py fix: 400 from Ollama after a tool call, and silent interruptions 2026-09-07 16:29:48 +02:00
services.py feat: image generation via ComfyUI and PDF/image upload 2026-09-07 15:56:18 +02:00
tools.py feat: read full article text via a new read_article tool 2026-09-07 18:26:02 +02:00