New ASCII Art
This commit is contained in:
parent
76d68c0fea
commit
e26a026e0c
11
tui/agent.py
11
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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user