Skip to content

Commit e23ef69

Browse files
committed
removed printing agent arch due to redundancy
1 parent f2d5307 commit e23ef69

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/any_chatbot/agent.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import argparse
32
import random
43
import sqlite3
@@ -53,12 +52,6 @@ def parse_args() -> argparse.Namespace:
5352
default=BASE / "data",
5453
help="Path to data dir where your files are uploaded",
5554
)
56-
p.add_argument(
57-
"--outputs_dir",
58-
type=Path,
59-
default=BASE / "outputs",
60-
help="Path to output dir where image of agent architecture is saved",
61-
)
6255
p.add_argument(
6356
"--database_dir",
6457
type=Path,
@@ -93,14 +86,6 @@ def main() -> None:
9386
agent_executor = create_react_agent(
9487
llm, [retrieve_tool, *sql_tools], prompt=system_message, checkpointer=memory
9588
)
96-
# save architecture graph image
97-
png_bytes = agent_executor.get_graph().draw_mermaid_png()
98-
# ensure the output folder exists
99-
os.makedirs(cfg.outputs_dir, exist_ok=True)
100-
# save to file
101-
with open(cfg.outputs_dir / "graph.png", "wb") as f:
102-
f.write(png_bytes)
103-
print("Created graph.png")
10489

10590
# PROMPT
10691
# specify an ID for the thread

0 commit comments

Comments
 (0)