MCPcopy
hub / github.com/ComposioHQ/composio / decorator

Method decorator

python/composio/core/models/experimental.py:163–174  ·  view source on GitHub ↗
(f: t.Callable[..., t.Any])

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 2

_get_caller_localsFunction · 0.85

Tested by

no test coverage detected