MCPcopy
hub / github.com/mudler/LocalAI / extract_tool_calls

Method extract_tool_calls

backend/python/vllm/test.py:343–346  ·  view source on GitHub ↗
(self, c, request=None)

Source from the content-addressed store, hash-verified

341 pass
342 # NOTE: NO extract_tool_calls_streaming → takes the buffer path
343 def extract_tool_calls(self, c, request=None):
344 return SimpleNamespace(
345 tools_called=called, content=content_text, tool_calls=calls,
346 )
347 return _P
348
349 tools_json = '[{"type":"function","function":{"name":"calc","parameters":{}}}]'

Callers 2

_predictMethod · 0.45
_predictMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected