MCPcopy Create free account
hub / github.com/modelscope/ms-agent / exclude_func

Method exclude_func

ms_agent/tools/base.py:22–29  ·  view source on GitHub ↗
(self, tool_config: DictConfig)

Source from the content-addressed store, hash-verified

20 DEFAULT_OUTPUT_DIR)
21
22 def exclude_func(self, tool_config: DictConfig):
23 if tool_config is not None:
24 self.exclude_functions = getattr(tool_config, 'exclude', [])
25 self.include_functions = getattr(tool_config, 'include', [])
26
27 assert (not self.exclude_functions) or (
28 not self.include_functions
29 ), 'Set either `include` or `exclude` in tools config.'
30
31 @abstractmethod
32 async def connect(self) -> None:

Callers 10

__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected