diff options
| author | batsumaru <> | 2026-09-15 15:13:34 +0900 |
|---|---|---|
| committer | batsumaru <> | 2026-09-15 15:13:34 +0900 |
| commit | 1a67c5edb6fa6165e99cc25ed380303ed817af09 (patch) | |
| tree | d2eab77e7275a559bfd639fd80b15321b5e514f3 /client.py | |
| parent | 5629cabbb38c7d91e66a419ba7cb3a93a9a988a1 (diff) | |
Cleaned up project tree
Diffstat (limited to 'client.py')
| -rw-r--r-- | client.py | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/client.py b/client.py deleted file mode 100644 index d91d79d..0000000 --- a/client.py +++ /dev/null @@ -1,65 +0,0 @@ -from agent import Agent -from identity import load_agent_identity, load_user_profile -from llm import LLM -from tools import ( - CalculatorTool, - FileSystemListTool, - FileSystemReadTool, - ToolRegistry, - WeatherTool, -) - -llm = LLM( - "http://localhost:8080/v1/chat/completions", -) - -agent_identity = load_agent_identity("agent.toml") -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, - agent_identity, - user_profile, - tools, -) - -while True: - user_input = input("You: ") - - if user_input.lower() in {"exit", "quit"}: - break - - match user_input: - case "/end": - agent.end_task() - print("[task ended]") - continue - - case "/task": - print(f"\n[memory: {agent.working_memory}]\n") - continue - - case "/pause": - agent.pause_task() - print("[task paused]") - continue - - case "/resume": - agent.resume_task() - print("[task resumed]") - continue - - case "/complete": - agent.complete_task() - print("[task completed]") - continue - - answer = agent.chat(user_input) - print(f"Agent: {answer}") |
