MCPcopy Create free account
hub / github.com/IBM/mcp-cli / make_tool_call

Function make_tool_call

tests/chat/test_tool_processor_extended.py:245–250  ·  view source on GitHub ↗
(name="echo", args='{"msg": "hi"}', call_id="call_0")

Source from the content-addressed store, hash-verified

243
244
245def make_tool_call(name="echo", args='{"msg": "hi"}', call_id="call_0"):
246 return ToolCall(
247 id=call_id,
248 type="function",
249 function=FunctionCall(name=name, arguments=args),
250 )
251
252
253def make_dict_tool_call(name="echo", args='{"msg": "hi"}', call_id="call_0"):

Calls 1

ToolCallClass · 0.85

Tested by

no test coverage detected