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

Function foo

libs/core/tests/unit_tests/test_tools.py:311–317  ·  view source on GitHub ↗

Docstring Args: bar: int baz: str

(bar: int, baz: str)

Source from the content-addressed store, hash-verified

309 """Test that structured tools can be created from functions."""
310
311 def foo(bar: int, baz: str) -> str:
312 """Docstring
313 Args:
314 bar: int
315 baz: str
316 """
317 raise NotImplementedError()
318
319 structured_tool = StructuredTool.from_function(foo)
320 assert structured_tool.name == "foo"

Callers

nothing calls this directly

Calls 1

ensure_configFunction · 0.90

Tested by

no test coverage detected