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

Method get_tools

camel/toolkits/github_toolkit.py:301–318  ·  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

299 raise ValueError("PRs with multiple files aren't supported yet.")
300
301 def get_tools(self) -> List[FunctionTool]:
302 r"""Returns a list of FunctionTool objects representing the functions
303 in the toolkit.
304
305 Returns:
306 List[FunctionTool]: A list of FunctionTool objects representing
307 the functions in the toolkit.
308 """
309 return [
310 FunctionTool(self.create_pull_request),
311 FunctionTool(self.get_issue_list),
312 FunctionTool(self.get_issue_content),
313 FunctionTool(self.get_pull_request_list),
314 FunctionTool(self.get_pull_request_code),
315 FunctionTool(self.get_pull_request_comments),
316 FunctionTool(self.get_all_file_paths),
317 FunctionTool(self.retrieve_file_content),
318 ]

Callers

nothing calls this directly

Calls 1

FunctionToolClass · 0.90

Tested by

no test coverage detected