yashwan2003 commited on
Commit
7827851
·
verified ·
1 Parent(s): eafee70

Update langgraph_code.py

Browse files
Files changed (1) hide show
  1. langgraph_code.py +2 -1
langgraph_code.py CHANGED
@@ -196,7 +196,7 @@ def analyze_query(state: AgentState) -> AgentState:
196
 
197
  Current date: {datetime.now()}
198
 
199
- Database schema:
200
  - movies(id: int, name: str)
201
  - theatres(id: int, name: str)
202
  - showtimes(id: int, movie_id: int, theatre_id: int, showtime: timestamp, price: int)
@@ -216,6 +216,7 @@ Important instructions:
216
  - **Do not hardcode** resolved values into later steps — always use the variable name (e.g., use `corrected_theatre_name`).
217
  - While fetching the show times please also show the theatre names
218
  - correct the entities names like theatre, movie before quering in sql db
 
219
 
220
  Examples of when to use tools:
221
  - "Show me theatres playing Avatar" → Use movie_entity_correction, then query_database
 
196
 
197
  Current date: {datetime.now()}
198
 
199
+ Database schema(SQLite):
200
  - movies(id: int, name: str)
201
  - theatres(id: int, name: str)
202
  - showtimes(id: int, movie_id: int, theatre_id: int, showtime: timestamp, price: int)
 
216
  - **Do not hardcode** resolved values into later steps — always use the variable name (e.g., use `corrected_theatre_name`).
217
  - While fetching the show times please also show the theatre names
218
  - correct the entities names like theatre, movie before quering in sql db
219
+ - always keep in mind about the current date while showing movie details because no one wants to book ticket before current time
220
 
221
  Examples of when to use tools:
222
  - "Show me theatres playing Avatar" → Use movie_entity_correction, then query_database