Skip to content

Commit

Permalink
[Fix] search type (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harold-lkk committed Sep 16, 2023
1 parent d9ec190 commit f050692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lagent/actions/google_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __call__(self, query: str) -> ActionReturn:
ActionReturn: The action return.
"""

tool_return = ActionReturn(url=None, args=None)
tool_return = ActionReturn(url=None, args=None, type=self.name)
status_code, response = self._search(
query, search_type=self.search_type, k=self.k)
# convert search results to ToolReturn format
Expand Down

0 comments on commit f050692

Please sign in to comment.