MCPcopy Create free account
hub / github.com/Louisym/MiniCC / tool_result

Method tool_result

tutorials/05_agentic_loop_complete.py:79–83  ·  view source on GitHub ↗
(tool_use_id: str, tool_name: str, output: str, is_error: bool = False)

Source from the content-addressed store, hash-verified

77
78 @staticmethod
79 def tool_result(tool_use_id: str, tool_name: str, output: str, is_error: bool = False) -> "ConversationMessage":
80 return ConversationMessage(
81 role="tool",
82 blocks=(ToolResultBlock(tool_use_id=tool_use_id, tool_name=tool_name, output=output, is_error=is_error),),
83 )
84
85@dataclass
86class Session:

Callers 1

run_turnMethod · 0.45

Calls 2

ConversationMessageClass · 0.70
ToolResultBlockClass · 0.70

Tested by

no test coverage detected