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
|
import config
|
||||||
from scripts import ntro
|
from scripts import ntro
|
||||||
|
|
||||||
|
|
||||||
def _add_msg(app, role, content, **kwargs):
|
def _add_msg(app, role, content, **kwargs):
|
||||||
msg = {"role": role, "content": content}
|
msg = {"role": role, "content": content}
|
||||||
msg.update(kwargs)
|
msg.update(kwargs)
|
||||||
@ -15,6 +14,14 @@ def _add_msg(app, role, content, **kwargs):
|
|||||||
)
|
)
|
||||||
|
|
||||||
WELCOME_ART = """
|
WELCOME_ART = """
|
||||||
|
,--. ,--.,------.,--. ,--.,------. ,------. ,--.,--. ,--.
|
||||||
|
| '--' || .---'| ,'.| || .-. \\ | .--. '| || .' /
|
||||||
|
| .--. || `--, | |' ' || | \\ :| '--'.'| || . '
|
||||||
|
| | | || `---.| | ` || '--' /| |\\ \\ | || |\\ \\
|
||||||
|
`--' `--'`------'`--' `--'`-------' `--' '--'`--'`--' '--'
|
||||||
|
|
||||||
|
"""
|
||||||
|
"""
|
||||||
__ __ _______ __ _ ______ ______ ___ ___ _
|
__ __ _______ __ _ ______ ______ ___ ___ _
|
||||||
| | | || || | | || | | _ | | | | | | |
|
| | | || || | | || | | _ | | | | | | |
|
||||||
| |_| || ___|| |_| || _ || | || | | | |_| |
|
| |_| || ___|| |_| || _ || | || | | | |_| |
|
||||||
@ -35,7 +42,6 @@ WELCOME_ART = """
|
|||||||
╚══════════════════════════════════════════╝
|
╚══════════════════════════════════════════╝
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
def log(app, role, text):
|
def log(app, role, text):
|
||||||
app.log.append({
|
app.log.append({
|
||||||
"role": role,
|
"role": role,
|
||||||
@ -169,7 +175,6 @@ def execute_tool(app, tool_call):
|
|||||||
tname = tool_call["function"]["name"]
|
tname = tool_call["function"]["name"]
|
||||||
targs = json.loads(tool_call["function"]["arguments"])
|
targs = json.loads(tool_call["function"]["arguments"])
|
||||||
handler = app.TOOL_HANDLERS.get(tname)
|
handler = app.TOOL_HANDLERS.get(tname)
|
||||||
|
|
||||||
if not handler:
|
if not handler:
|
||||||
result = f"Tool {tname} not found"
|
result = f"Tool {tname} not found"
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user