refactor: several improvements (#132)

- js export expression
- check args regarding run-agent/run-tool
This commit is contained in:
sigoden authored and GitHub committed 2024-11-30 17:14:21 +08:00
1 parent c4ba6ff379
commit d2a537c374
11 files changed
+52 -24

No files matched your search

+1 -1
View File
@@ -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();
}