From d2a537c3743963bfb6add44731dd3f3f6c785a2e Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 30 Nov 2024 17:14:21 +0800 Subject: refactor: several improvements (#132) - js export expression - check args regarding run-agent/run-tool --- agents/demo/tools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'agents/demo/tools.js') 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(); } -- cgit v1.2.3