From 168d482b032561a7ce620c17d9fb65342da6f001 Mon Sep 17 00:00:00 2001 From: goulustis Date: Thu, 15 Jan 2026 17:41:43 +0800 Subject: [PATCH] remove shit --- lang_agent/graphs/vision_routing.py | 37 ++++++++++++++++------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/lang_agent/graphs/vision_routing.py b/lang_agent/graphs/vision_routing.py index bf58a84..33d4e0e 100644 --- a/lang_agent/graphs/vision_routing.py +++ b/lang_agent/graphs/vision_routing.py @@ -146,7 +146,10 @@ class VisionRoutingGraph(GraphBase): base_url=self.config.base_url, temperature=0, tags=["vision_llm"], - enable_search=True # Enable thinking for better vision analysis + # reasoning={ + # "effort": "medium", # Can be "low", "medium", or "high" + # "summary": "auto", # Can be "auto", "concise", or "detailed" + # } ) self.memory = MemorySaver() @@ -347,27 +350,27 @@ if __name__ == "__main__": graph = VisionRoutingGraph(config) # Test with a conversation request - # print("\n=== Test 1: Conversation (no photo needed) ===") - # nargs = { - # "messages": [ - # SystemMessage("You are a helpful assistant"), - # HumanMessage("Hello, how are you today?") - # ] - # }, {"configurable": {"thread_id": "1"}} - - # result = graph.invoke(*nargs) - # print(f"Result: {result}") - - # Test with a photo request - print("\n=== Test 2: Photo request ===") + print("\n=== Test 1: Conversation (no photo needed) ===") nargs = { "messages": [ SystemMessage("You are a helpful assistant"), - HumanMessage("Take a photo and tell me what you see") + HumanMessage("Hello, how are you today?") ] - }, {"configurable": {"thread_id": "2"}} + }, {"configurable": {"thread_id": "1"}} result = graph.invoke(*nargs) - print(f"\033[32mResult: {result}\033[0m") + print(f"Result: {result}") + + # Test with a photo request + # print("\n=== Test 2: Photo request ===") + # nargs = { + # "messages": [ + # SystemMessage("You are a helpful assistant"), + # HumanMessage("Take a photo and tell me what you see") + # ] + # }, {"configurable": {"thread_id": "2"}} + + # result = graph.invoke(*nargs) + # print(f"\033[32mResult: {result}\033[0m") # print(f"Result: {result}")