Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json-viewer's problem #159

Closed
IRISnoir opened this issue Feb 10, 2025 · 4 comments
Closed

Json-viewer's problem #159

IRISnoir opened this issue Feb 10, 2025 · 4 comments

Comments

@IRISnoir
Copy link

IRISnoir commented Feb 10, 2025

Describe the bug

> .agent json-viewer
Call json-viewer _instructions {}
Error: Unable to load agent tools at '/data/data/com.termux/files/home/llm-functions/agents/json-viewer/tools.js'
    at run (/data/data/com.termux/files/home/llm-functions/scripts/run-agent.js:116:11)
    at async main (/data/data/com.termux/files/home/llm-functions/scripts/run-agent.js:17:3)
Error: Tool call exit with 1

To Reproduce

The moment you boot up the agent, the _instructions call gives you the error

Expected behavior

For there to be no errors

Screenshots/Logs

Image

Environment

Linux localhost 4.19.152-perf+ #1 SMP PREEMPT Wed Jun 26 12:51:00 CST 2024 aarch64 Android
aichat 0.27.0
argc 1.20.1
jq-1.7.1
ls (GNU coreutils) 9.5
/data/data/com.termux/files/usr/bin/bash GNU bash, version 5.2.37(1)-release (aarch64-unknown-linux-android)
/data/data/com.termux/files/home/llm-functions/Argcfile.sh: line 538: which: command not found
 v23.6.1
/data/data/com.termux/files/home/llm-functions/Argcfile.sh: line 538: which: command not found
 Python 3.12.9

Additional context

@sigoden
Copy link
Owner

sigoden commented Feb 10, 2025

The llm-functions/agents/json-viewer/tools.js may throw an error. I strongly suspect that you haven't installed the node dependencies.

cd agents/json-viewer
npm install

#160 make it easier to identify tool script error. Please pull the latest git commit and try again.

@IRISnoir
Copy link
Author

IRISnoir commented Feb 11, 2025

Ok, I had definitely forgotten to install npm dependencies but when I did, I get an error from npm. Is it possible for you to resolve this or do I have to get the Termux developers.

Image
Image

@sigoden
Copy link
Owner

sigoden commented Feb 11, 2025

I don’t know why you can’t install node-jq; you’ll need to figure that out on your own.

@sigoden sigoden closed this as completed Feb 11, 2025
@IRISnoir
Copy link
Author

I don’t know why you can’t install node-jq; you’ll need to figure that out on your own.

Hey, apparantly an older version of node-jq (1.5.0) can be installed. So far it's able to run the _instructions good enough. Idk if the older version affects anything inside of the agent's code though. Does it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants