diff --git a/tui/agent.py b/tui/agent.py index 72ccb31..0fd18ac 100644 --- a/tui/agent.py +++ b/tui/agent.py @@ -4,7 +4,6 @@ from datetime import datetime import config from scripts import ntro - def _add_msg(app, role, content, **kwargs): msg = {"role": role, "content": content} msg.update(kwargs) @@ -15,6 +14,14 @@ def _add_msg(app, role, content, **kwargs): ) WELCOME_ART = """ +,--. ,--.,------.,--. ,--.,------. ,------. ,--.,--. ,--. +| '--' || .---'| ,'.| || .-. \\ | .--. '| || .' / +| .--. || `--, | |' ' || | \\ :| '--'.'| || . ' +| | | || `---.| | ` || '--' /| |\\ \\ | || |\\ \\ +`--' `--'`------'`--' `--'`-------' `--' '--'`--'`--' '--' + +""" +""" __ __ _______ __ _ ______ ______ ___ ___ _ | | | || || | | || | | _ | | | | | | | | |_| || ___|| |_| || _ || | || | | | |_| | @@ -35,7 +42,6 @@ WELCOME_ART = """ ╚══════════════════════════════════════════╝ """ - def log(app, role, text): app.log.append({ "role": role, @@ -169,7 +175,6 @@ def execute_tool(app, tool_call): tname = tool_call["function"]["name"] targs = json.loads(tool_call["function"]["arguments"]) handler = app.TOOL_HANDLERS.get(tname) - if not handler: result = f"Tool {tname} not found" else: