MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / get_tools

Method get_tools

camel/toolkits/search_toolkit.py:707–723  ·  view source on GitHub ↗

r"""Returns a list of FunctionTool objects representing the functions in the toolkit. Returns: List[FunctionTool]: A list of FunctionTool objects representing the functions in the toolkit.

(self)

Source from the content-addressed store, hash-verified

705 return [{"error": f"An unexpected error occurred: {e!s}"}]
706
707 def get_tools(self) -> List[FunctionTool]:
708 r"""Returns a list of FunctionTool objects representing the
709 functions in the toolkit.
710
711 Returns:
712 List[FunctionTool]: A list of FunctionTool objects
713 representing the functions in the toolkit.
714 """
715 return [
716 FunctionTool(self.search_wiki),
717 FunctionTool(self.search_linkup),
718 FunctionTool(self.search_google),
719 FunctionTool(self.search_duckduckgo),
720 FunctionTool(self.query_wolfram_alpha),
721 FunctionTool(self.tavily_search),
722 FunctionTool(self.search_brave),
723 ]

Callers

nothing calls this directly

Calls 1

FunctionToolClass · 0.90

Tested by

no test coverage detected