wishwakankanamg commited on
Commit
afcd995
Β·
1 Parent(s): e287f80

about to call 3d endpoint from here

Browse files
Files changed (3) hide show
  1. __pycache__/graph.cpython-313.pyc +0 -0
  2. app.log +36 -0
  3. graph.py +3 -2
__pycache__/graph.cpython-313.pyc CHANGED
Binary files a/__pycache__/graph.cpython-313.pyc and b/__pycache__/graph.cpython-313.pyc differ
 
app.log CHANGED
@@ -53300,3 +53300,39 @@ Traceback (most recent call last):
53300
  raise InvalidUpdateError(msg)
53301
  langgraph.errors.InvalidUpdateError: At key 'next_stage': Can receive only one value per step. Use an Annotated key to handle multiple values.
53302
  For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/INVALID_CONCURRENT_GRAPH_UPDATE
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53300
  raise InvalidUpdateError(msg)
53301
  langgraph.errors.InvalidUpdateError: At key 'next_stage': Can receive only one value per step. Use an Annotated key to handle multiple values.
53302
  For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/INVALID_CONCURRENT_GRAPH_UPDATE
53303
+ 2025-06-09 17:24:49:__main__:INFO: Starting the interface
53304
+ 2025-06-09 17:25:10:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53305
+ 2025-06-09 17:25:19:__main__:INFO: Prompt: You are a helpful assistant.
53306
+ 2025-06-09 17:25:32:__main__:INFO: Prompt: You are a helpful assistant.
53307
+ 2025-06-09 17:25:43:__main__:INFO: Prompt: You are a helpful assistant.
53308
+ 2025-06-09 17:25:51:__main__:INFO: Prompt: You are a helpful assistant.
53309
+ 2025-06-09 17:25:53:__main__:ERROR: Exception occurred
53310
+ Traceback (most recent call last):
53311
+ File "C:\myworkspace\huggingface_agents\DIY_agent\dev\DIY_assistant\app.py", line 99, in chat_fn
53312
+ async for stream_mode, chunk in graph.astream(
53313
+ ...<56 lines>...
53314
+ yield output, gr.skip(), gr.skip()
53315
+ File "C:\myworkspace\huggingface_agents\mcp-hackthon\dev\DIY_assistant\env\Lib\site-packages\langgraph\pregel\__init__.py", line 2652, in astream
53316
+ while loop.tick(input_keys=self.input_channels):
53317
+ ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53318
+ File "C:\myworkspace\huggingface_agents\mcp-hackthon\dev\DIY_assistant\env\Lib\site-packages\langgraph\pregel\loop.py", line 493, in tick
53319
+ mv_writes, updated_channels = apply_writes(
53320
+ ~~~~~~~~~~~~^
53321
+ self.checkpoint,
53322
+ ^^^^^^^^^^^^^^^^
53323
+ ...<3 lines>...
53324
+ self.trigger_to_nodes,
53325
+ ^^^^^^^^^^^^^^^^^^^^^^
53326
+ )
53327
+ ^
53328
+ File "C:\myworkspace\huggingface_agents\mcp-hackthon\dev\DIY_assistant\env\Lib\site-packages\langgraph\pregel\algo.py", line 305, in apply_writes
53329
+ if channels[chan].update(vals) and get_next_version is not None:
53330
+ ~~~~~~~~~~~~~~~~~~~~~^^^^^^
53331
+ File "C:\myworkspace\huggingface_agents\mcp-hackthon\dev\DIY_assistant\env\Lib\site-packages\langgraph\channels\last_value.py", line 58, in update
53332
+ raise InvalidUpdateError(msg)
53333
+ langgraph.errors.InvalidUpdateError: At key 'next_stage': Can receive only one value per step. Use an Annotated key to handle multiple values.
53334
+ For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/INVALID_CONCURRENT_GRAPH_UPDATE
53335
+ 2025-06-09 17:26:38:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53336
+ 2025-06-09 17:26:45:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53337
+ 2025-06-09 17:27:38:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53338
+ 2025-06-09 17:28:06:__main__:INFO: Starting the interface
graph.py CHANGED
@@ -276,7 +276,8 @@ def guidance_routing(state: GraphProcessingState) -> str:
276
  return "brainstorming_node"
277
 
278
  elif next_stage == "planning":
279
- return "prompt_planning_node"
 
280
  elif next_stage == "drawing":
281
  return "generate_3d_node"
282
  elif next_stage == "product_searching":
@@ -741,7 +742,7 @@ ACCURATE PROMPT FOR MODEL GENERATING: [Your final single-paragraph prompt here]
741
  }
742
 
743
  async def generate_3d_node(state: GraphProcessingState, config=None):
744
- print("\n--- generate_3d Node (Debug) ---\n")
745
 
746
  # Ensure OpenAI model is available
747
  if not model:
 
276
  return "brainstorming_node"
277
 
278
  elif next_stage == "planning":
279
+ return "generate_3d_node"
280
+ # return "prompt_planning_node"
281
  elif next_stage == "drawing":
282
  return "generate_3d_node"
283
  elif next_stage == "product_searching":
 
742
  }
743
 
744
  async def generate_3d_node(state: GraphProcessingState, config=None):
745
+ print("\n-πŸ˜Άβ€πŸŒ«οΈπŸ˜Άβ€πŸŒ«οΈπŸ˜Άβ€πŸŒ«οΈπŸ˜Άβ€πŸŒ«οΈ-- generate_3d Node (Debug) ---πŸ˜Άβ€πŸŒ«οΈπŸ˜Άβ€πŸŒ«οΈπŸ˜Άβ€πŸŒ«οΈπŸ˜Άβ€πŸŒ«οΈ\n")
746
 
747
  # Ensure OpenAI model is available
748
  if not model: