Represents the result of a tool execution.
| 50 | |
| 51 | @dataclass |
| 52 | class ToolResult: |
| 53 | """Represents the result of a tool execution.""" |
| 54 | tool_call_id: str |
| 55 | content: str |
| 56 | is_error: bool = False |
| 57 | |
| 58 | def to_dict(self) -> dict: |
| 59 | """Convert to dictionary representation.""" |
| 60 | return { |
| 61 | 'tool_call_id': self.tool_call_id, |
| 62 | 'content': self.content, |
| 63 | 'is_error': self.is_error |
| 64 | } |
| 65 | |
| 66 | |
| 67 | @dataclass |
no outgoing calls
no test coverage detected