diff options
Diffstat (limited to 'agents/demo/tools.js')
| -rw-r--r-- | agents/demo/tools.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/agents/demo/tools.js b/agents/demo/tools.js index 6a5c071..a3b141b 100644 --- a/agents/demo/tools.js +++ b/agents/demo/tools.js @@ -1,8 +1,7 @@ -const os = require("node:os"); /** * Get the system info */ -exports.get_sysinfo = function getSysinfo() { - return `OS: ${os.type()} -Arch: ${os.arch()}` +exports.get_ipinfo = async function getIpinfo() { + const res = await fetch("https://httpbin.org/ip") + return res.json(); } |
