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

Function _make_tool_result

tests/chat/test_tool_processor.py:693–705  ·  view source on GitHub ↗

Create a CTPToolResult quickly.

(call_id, tool, result=None, error=None)

Source from the content-addressed store, hash-verified

691
692
693def _make_tool_result(call_id, tool, result=None, error=None):
694 """Create a CTPToolResult quickly."""
695 now = datetime.now(UTC)
696 return CTPToolResult(
697 id=call_id,
698 tool=tool,
699 result=result,
700 error=error,
701 start_time=now,
702 end_time=now,
703 machine=platform.node(),
704 pid=os.getpid(),
705 )
706
707
708def _make_processor(tool_manager=None, ui_manager=None, context=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected