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