File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -87,19 +87,13 @@ def execute(self, state: dict) -> dict:
87
87
if self .verbose :
88
88
print (f"Search Query: { search_query } " )
89
89
90
+ answer = search_on_web (
91
+ query = search_query , max_results = self .max_results )
90
92
91
- << << << < HEAD
92
- answer = search_on_web (
93
- query = search_query , max_results = self .max_results )
94
- == == == =
93
+ if len (answer ) == 0 :
94
+ # raise an exception if no answer is found
95
+ raise ValueError ("Zero results found for the search query." )
95
96
96
- answer = search_on_web (query = search_query , max_results = self .max_results )
97
- >> >> >> > 532 adb639d58640bc89e8b162903b2ed97be9853
98
-
99
- if len (answer ) == 0 :
100
- # raise an exception if no answer is found
101
- raise ValueError ("Zero results found for the search query." )
102
-
103
- # Update the state with the generated answer
104
- state .update ({self .output [0 ]: answer })
105
- return state
97
+ # Update the state with the generated answer
98
+ state .update ({self .output [0 ]: answer })
99
+ return state
You can’t perform that action at this time.
0 commit comments