sigoden / llm-functions

Easily create LLM tools and agents using Bash/JavaScript/Python, also a library of commonly used LLM tools and agents.
MIT License
166 stars 22 forks source link

LLM_AGENT_CACHE_DIR not documented nor default fallback #54

Closed einarpersson closed 3 months ago

einarpersson commented 3 months ago

Describe the bug

LLM_AGENT_CACHE_DIR is not documented here and does not seem to have a default / fallback value.

To Reproduce

todo-sh>> add todo make a lasagne
Call todo-sh add_todo {"desc":"make a lasagne"}
No such file or directory (os error 2)

Expected behavior I expected it to just work, since I am following the README here

Environment

❯ aichat --version
aichat 0.19.0

Additional context

sigoden commented 3 months ago

The LLM_AGENT_CACHE_DIR is not provide by aichat. It comes from llm-function run-agent

https://github.com/sigoden/llm-functions/blob/970ed06d2b5759e8d17aeed55fbfde591fb0ff84/scripts/run-tool.sh#L26-L33 https://github.com/sigoden/llm-functions/blob/970ed06d2b5759e8d17aeed55fbfde591fb0ff84/scripts/run-tool.py#L49-L53 https://github.com/sigoden/llm-functions/blob/970ed06d2b5759e8d17aeed55fbfde591fb0ff84/scripts/run-tool.js#L48-L53

sigoden commented 3 months ago

If you want to test agent, please try the argc command:

argc run@agent todo-sh 

https://github.com/sigoden/llm-functions/assets/4012553/7019835e-7f7b-4775-8d7c-bb03b9a259b9