(tool_use_id: str, tool_name: str, output: str, is_error: bool = False)
| 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 |
| 94 | class Session: |
no test coverage detected