MCPcopy Create free account
hub / github.com/livekit/agents / function_tool

Function function_tool

livekit-agents/livekit/agents/llm/tool_context.py:263–269  ·  view source on GitHub ↗
(
    f: Callable[_P, _R],
    *,
    raw_schema: RawFunctionDescription | dict[str, Any],
    flags: ToolFlag = ToolFlag.NONE,
    on_duplicate: DuplicateMode = "allow",
)

Source from the content-addressed store, hash-verified

261
262@overload
263def function_tool(
264 f: Callable[_P, _R],
265 *,
266 raw_schema: RawFunctionDescription | dict[str, Any],
267 flags: ToolFlag = ToolFlag.NONE,
268 on_duplicate: DuplicateMode = "allow",
269) -> RawFunctionTool[_P, _R]: ...
270
271
272@overload

Callers 8

llm_nodeMethod · 0.90
entrypointFunction · 0.90
_make_function_toolMethod · 0.85
execute_function_callFunction · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
_runMethod · 0.85

Calls 2

deco_rawFunction · 0.85
deco_funcFunction · 0.85

Tested by

no test coverage detected