Bring in desk from news
The plugin contract, the model task and the tools roledesk imports, copied rather than reached through an editable install of news, which also exposes a package named pipeline. news stays the source of truth for desk. Refreshed from news/desk at a275c38a1aa0fe80a7ec7dd5781ecccf683f71c6 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9d666d0937
commit
248ea1636d
36 files changed
+8393
No files matched your search
@@ -0,0 +1,20 @@
|
||||
"""Reusable machinery with no opinion about news.
|
||||
|
||||
A tool is something a pipeline stage picks up and puts down: it takes plain
|
||||
inputs, returns plain outputs, and knows nothing about subscriptions, feeds,
|
||||
or what a job is for. That is the test for whether a module belongs here —
|
||||
if it would make sense in a different application, it is a tool.
|
||||
|
||||
agent.py who answers when something needs a model: the Claude API
|
||||
with a key, the `claude` CLI on a subscription, or nobody
|
||||
embedding.py text in, vector out
|
||||
framing.py will this page load inside an iframe?
|
||||
http.py one shared HTTP client per call chain
|
||||
marks.py what kind of thing is this, if not an article?
|
||||
video/ a recording, read as text with timings on it
|
||||
walls.py was that the article, or the page shown instead of it?
|
||||
|
||||
Nothing is imported here on purpose. `video` pulls in httpx and the caption
|
||||
parsers, `embedding` a sentence-transformer, `agent` an SDK; each is paid for
|
||||
by the caller that wants it and by nobody else.
|
||||
"""
|
||||
Reference in new issue
Block a user