aboutsummaryrefslogtreecommitdiffstats
path: root/agents/demo
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-11-30 17:14:21 +0800
committerGitHub <noreply@github.com>2024-11-30 17:14:21 +0800
commitd2a537c3743963bfb6add44731dd3f3f6c785a2e (patch)
treee499f1217135741622995ba253ad34ea9164f358 /agents/demo
parentc4ba6ff379bdce768f6053671309e2e2f4a6fc79 (diff)
downloadllm-functions-docker-d2a537c3743963bfb6add44731dd3f3f6c785a2e.tar.gz
refactor: several improvements (#132)
- js export expression - check args regarding run-agent/run-tool
Diffstat (limited to 'agents/demo')
-rw-r--r--agents/demo/tools.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/agents/demo/tools.js b/agents/demo/tools.js
index a3b141b..ee65097 100644
--- a/agents/demo/tools.js
+++ b/agents/demo/tools.js
@@ -1,7 +1,7 @@
/**
* Get the system info
*/
-exports.get_ipinfo = async function getIpinfo() {
+exports.get_ipinfo = async function () {
const res = await fetch("https://httpbin.org/ip")
return res.json();
}