dsh-tool-arxiv
开发工具 活跃维护

dsh-tool-arxiv

bigstyle777/dsh-tool-arxiv

仅返回arXiv预印本论文摘要内容,内置token长度上限控制避免长文本溢出,轻量化设计易接入各类AI代理工作流,检索结果简洁无冗余,适配下游分析需求。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
None
开源协议
17 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:bigstyle777/dsh-tool-arxiv
git clone https://github.com/bigstyle777/dsh-tool-arxiv.git
git clone git@github.com:bigstyle777/dsh-tool-arxiv.git
README.md main

dsh-tool-arxiv

An arXiv preprint search tool for
DeepSeek Harness —
scaffolded with dshp.

Adds an arxiv_search tool to your agent: search by topic or arXiv ID and get
structured results (title, authors, arxiv_id, abstract, abs_url, pdf_url,
submit_date). Abstracts only — PDF bodies are never fetched, keeping token
usage bounded.

Install

dsh plugin --profile my add dsh-tool-arxiv
dsh --profile my --dump-config   # see the layer land
dsh --profile my                 # boot

Tool signature

Parameter Required Description
query yes Keywords (any language) or a bare arXiv ID such as 2608.16889
category no arXiv category filter, e.g. cs.AI; omit for all fields
max_results no Number of papers, default 5, capped at 20
sort_by no submittedDate (default) or relevance

Results carry the standing caveat: arXiv preprints are not peer-reviewed.

Configuration

Optional cordis.yml overrides:

- id: tool-arxiv
  config:
    timeoutMs: 15000

Library use

The core is dependency-light and exported for reuse:

import { searchArxiv, buildApiUrl, renderPapers } from 'dsh-tool-arxiv'
const papers = await searchArxiv({ query: 'LLM agent', category: 'cs.AI', maxResults: 5 })

Develop

pnpm install && pnpm build
npx dshp verify          # boot-free composition check
npx dshp dev             # live dev overlay (needs dsh)

License

MIT