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

Method tool_result

tutorials/07_auto_compaction.py:87–91  ·  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

85
86 @staticmethod
87 def tool_result(tool_use_id: str, tool_name: str, output: str, is_error: bool = False) -> "ConversationMessage":
88 return ConversationMessage(
89 role="tool",
90 blocks=(ToolResultBlock(tool_use_id=tool_use_id, tool_name=tool_name, output=output, is_error=is_error),),
91 )
92
93@dataclass
94class Session:

Callers 1

mainFunction · 0.45

Calls 2

ConversationMessageClass · 0.70
ToolResultBlockClass · 0.70

Tested by

no test coverage detected