diff options
| author | sigoden <sigoden@gmail.com> | 2024-11-14 21:54:44 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-14 21:54:44 +0800 |
| commit | 1b96d4ee4cadf05163d653373423a615723240aa (patch) | |
| tree | b528d9e7791a2ed1ca8ce36098eec7c160200613 /tools/search_arxiv.sh | |
| parent | afbd03f963b08419a3835c9473d757bf936c8b92 (diff) | |
| download | llm-functions-docker-1b96d4ee4cadf05163d653373423a615723240aa.tar.gz | |
feat: add `LLM_OUTPUT=/dev/stdout` to all tools/agents bashscripts (#123)
Diffstat (limited to 'tools/search_arxiv.sh')
| -rwxr-xr-x | tools/search_arxiv.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/search_arxiv.sh b/tools/search_arxiv.sh index 2aa7966..1a7f279 100755 --- a/tools/search_arxiv.sh +++ b/tools/search_arxiv.sh @@ -3,9 +3,11 @@ set -e # @describe Search arXiv for a query and return the top papers. -# @env ARXIV_MAX_RESULTS=3 The max results to return. # @option --query! The query to search for. +# @env ARXIV_MAX_RESULTS=3 The max results to return. +# @env LLM_OUTPUT=/dev/stdout The output path + main() { encoded_query="$(jq -nr --arg q "$argc_query" '$q|@uri')" url="http://export.arxiv.org/api/query?search_query=all:$encoded_query&max_results=$ARXIV_MAX_RESULTS" |
