MCPcopy
hub / github.com/langchain-ai/langchain / __call__

Method __call__

libs/core/langchain_core/tools.py:565–567  ·  view source on GitHub ↗

Make tool callable.

(self, tool_input: str, callbacks: Callbacks = None)

Source from the content-addressed store, hash-verified

563
564 @deprecated("0.1.47", alternative="invoke", removal="0.3.0")
565 def __call__(self, tool_input: str, callbacks: Callbacks = None) -> str:
566 """Make tool callable."""
567 return self.run(tool_input, callbacks=callbacks)
568
569
570class Tool(BaseTool):

Callers

nothing calls this directly

Calls 1

runMethod · 0.95

Tested by

no test coverage detected