MCPcopy
hub / github.com/openai/openai-agents-python / decorator

Function decorator

src/agents/tool.py:2045–2046  ·  view source on GitHub ↗
(real_func: ToolFunction[...])

Source from the content-addressed store, hash-verified

2043
2044 # Otherwise, we were used as @function_tool(...), so return a decorator
2045 def decorator(real_func: ToolFunction[...]) -> FunctionTool:
2046 return _create_function_tool(real_func)
2047
2048 return decorator
2049

Callers

nothing calls this directly

Calls 1

_create_function_toolFunction · 0.85

Tested by

no test coverage detected