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

Method get_tools

camel/toolkits/open_api_toolkit.py:529–544  ·  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

527 return apinames_filepaths
528
529 def get_tools(self) -> List[FunctionTool]:
530 r"""Returns a list of FunctionTool objects representing the
531 functions in the toolkit.
532
533 Returns:
534 List[FunctionTool]: A list of FunctionTool objects
535 representing the functions in the toolkit.
536 """
537 apinames_filepaths = self.generate_apinames_filepaths()
538 all_funcs_lst, all_schemas_lst = (
539 self.apinames_filepaths_to_funs_schemas(apinames_filepaths)
540 )
541 return [
542 FunctionTool(a_func, a_schema)
543 for a_func, a_schema in zip(all_funcs_lst, all_schemas_lst)
544 ]

Callers

nothing calls this directly

Tested by

no test coverage detected