(f: t.Callable[..., t.Any])
| 161 | """ |
| 162 | |
| 163 | def decorator(f: t.Callable[..., t.Any]) -> CustomTool: |
| 164 | annotation_locals = _get_caller_locals() |
| 165 | return _infer_tool_from_function( |
| 166 | f, |
| 167 | slug=slug, |
| 168 | name=name, |
| 169 | description=description, |
| 170 | extends_toolkit=extends_toolkit, |
| 171 | output_params=output_params, |
| 172 | preload=preload, |
| 173 | annotation_locals=annotation_locals, |
| 174 | ) |
| 175 | |
| 176 | if fn is not None: |
| 177 | return _infer_tool_from_function( |
nothing calls this directly
no test coverage detected