aboutsummaryrefslogtreecommitdiffstats
path: root/agents/demo/tools.py
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-07-09 21:17:12 +0800
committerGitHub <noreply@github.com>2024-07-09 21:17:12 +0800
commit02e335c99526fe52dee0d0a016aee6bf62d874c2 (patch)
tree48d347d9d1652cfa62ec778de65509952534b8ff /agents/demo/tools.py
parent0dbdc9e7109b77895743a6d8d11b83caf906e726 (diff)
downloadllm-functions-docker-02e335c99526fe52dee0d0a016aee6bf62d874c2.tar.gz
refactor: demo tools/agents (#67)
Diffstat (limited to 'agents/demo/tools.py')
-rw-r--r--agents/demo/tools.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/agents/demo/tools.py b/agents/demo/tools.py
new file mode 100644
index 0000000..5f1a4fc
--- /dev/null
+++ b/agents/demo/tools.py
@@ -0,0 +1,12 @@
+import os
+import platform
+
+def get_sysinfo():
+ """
+ Get the system info
+ """
+ return "\n".join([
+ f"OS: {platform.system()}",
+ f"Arch: {platform.machine()}",
+ f"User: {os.environ.get('USER')}"
+ ]) \ No newline at end of file