Gaykar commited on
Commit
bd7d5d4
·
1 Parent(s): b83afc7

changes done in graph.py

Browse files
Files changed (1) hide show
  1. app/graph.py +0 -16
app/graph.py CHANGED
@@ -16,7 +16,6 @@ from app.nodes.summarise_email_body_node import summarise_email_body_node
16
  from app.nodes.check_token_count_node import *
17
  from psycopg import OperationalError # Or sqlalchemy.exc.OperationalError depending on your driver
18
  from app.tools.email_writing_agent_tools import email_writing_agent_tools
19
- from IPython.display import Image, display
20
  from app.persistance.memory_store_checkpointer_config import memory_store, checkpointer
21
  from langchain_google_community import GmailToolkit
22
  from app.database.connection import pool
@@ -134,21 +133,6 @@ builder.add_edge("store_memory_and_data_node", END)
134
  builder.add_edge("unsafe_emails_node", END)
135
  builder.add_edge("archive_node", END)
136
 
137
-
138
- toolkit = GmailToolkit()
139
  graph=builder.compile(checkpointer=checkpointer, store=memory_store,debug=True)
140
 
141
 
142
-
143
-
144
-
145
-
146
- # try:
147
- # # This creates a PNG and saves it to your project folder
148
- # graph_png = graph.get_graph().draw_mermaid_png()
149
- # with open("graph.png", "wb") as f:
150
- # f.write(graph_png)
151
- # print("--- Graph image saved as 'graph.png' ---")
152
- # except Exception as e:
153
- # # This happens if you don't have the 'pypydot' or 'graphviz' dependencies
154
- # print(f"Could not generate graph image: {e}")
 
16
  from app.nodes.check_token_count_node import *
17
  from psycopg import OperationalError # Or sqlalchemy.exc.OperationalError depending on your driver
18
  from app.tools.email_writing_agent_tools import email_writing_agent_tools
 
19
  from app.persistance.memory_store_checkpointer_config import memory_store, checkpointer
20
  from langchain_google_community import GmailToolkit
21
  from app.database.connection import pool
 
133
  builder.add_edge("unsafe_emails_node", END)
134
  builder.add_edge("archive_node", END)
135
 
 
 
136
  graph=builder.compile(checkpointer=checkpointer, store=memory_store,debug=True)
137
 
138