MCPcopy Create free account
hub / github.com/AutoPackAI/autopack / validate_tool_args

Method validate_tool_args

autopack/pack.py:129–141  ·  view source on GitHub ↗

Validate the arguments against the args_schema model. Args: kwargs (dict[str, Any]): The arguments to validate. Returns: True if the arguments are valid. Raises: ValidationError If any arguments are invalid.

(self, **kwargs)

Source from the content-addressed store, hash-verified

127 return self.config.filesystem_manager
128
129 def validate_tool_args(self, **kwargs):
130 """Validate the arguments against the args_schema model.
131
132 Args:
133 kwargs (dict[str, Any]): The arguments to validate.
134 Returns:
135 True if the arguments are valid.
136 Raises:
137 ValidationError If any arguments are invalid.
138 """
139 self.args_schema(**kwargs)
140
141 return True
142
143 def init_langchain_tool(self):
144 from autopack.langchain_wrapper import LangchainWrapper

Callers 2

runMethod · 0.95
arunMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected