Update agents/search_agent.py
Browse files- agents/search_agent.py +2 -2
agents/search_agent.py
CHANGED
|
@@ -95,8 +95,8 @@ class SearchAgent(Assistant):
|
|
| 95 |
content=tool_result,
|
| 96 |
)
|
| 97 |
messages.append(fn_msg)
|
| 98 |
-
response.append(fn_msg)
|
| 99 |
-
yield response
|
| 100 |
used_any_tool = True
|
| 101 |
if not used_any_tool:
|
| 102 |
logger.info(f'{self.name} not used any tool, skip out')
|
|
|
|
| 95 |
content=tool_result,
|
| 96 |
)
|
| 97 |
messages.append(fn_msg)
|
| 98 |
+
# response.append(fn_msg)
|
| 99 |
+
# yield response
|
| 100 |
used_any_tool = True
|
| 101 |
if not used_any_tool:
|
| 102 |
logger.info(f'{self.name} not used any tool, skip out')
|