summaryrefslogtreecommitdiff
path: root/client.py
diff options
context:
space:
mode:
authorbatsumaru <>2026-09-11 17:39:50 +0900
committerbatsumaru <>2026-09-11 17:39:50 +0900
commitd0bbd8aeea139ca4bf4ed37020c71c60a65f0a95 (patch)
treea369d961de87df23359ad2e8931a04b5cbe6d40a /client.py
parentc90a0f8ae6ad5d6e07927cd0dc53b345a77494ae (diff)
Added weather, file system, and memory
Diffstat (limited to 'client.py')
-rw-r--r--client.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/client.py b/client.py
index 8d6829d..0cbd91c 100644
--- a/client.py
+++ b/client.py
@@ -1,7 +1,14 @@
from agent import Agent
from identity import load_agent_identity, load_user_profile
from llm import LLM
-from tools import CalculatorTool, HelloTool, ToolRegistry
+from tools import (
+ CalculatorTool,
+ FileSystemListTool,
+ FileSystemReadTool,
+ HelloTool,
+ ToolRegistry,
+ WeatherTool,
+)
llm = LLM(
"http://localhost:8080/v1/chat/completions",
@@ -13,6 +20,9 @@ user_profile = load_user_profile("user.toml")
tools = ToolRegistry()
tools.register(HelloTool())
tools.register(CalculatorTool())
+tools.register(WeatherTool())
+tools.register(FileSystemListTool())
+tools.register(FileSystemReadTool())
agent = Agent(
llm,
@@ -26,6 +36,6 @@ while True:
if user_input.lower() in {"exit", "quit"}:
break
-
+
answer = agent.chat(user_input)
print(f"Agent: {answer}")