Docstring Args: bar: int baz: str
(bar: int, baz: str)
| 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" |
nothing calls this directly
no test coverage detected