Represents a tool call requested by the LLM.
| 34 | |
| 35 | @dataclass |
| 36 | class ToolCall: |
| 37 | """Represents a tool call requested by the LLM.""" |
| 38 | id: str |
| 39 | name: str |
| 40 | arguments: dict[str, Any] |
| 41 | |
| 42 | def to_dict(self) -> dict: |
| 43 | """Convert to dictionary representation.""" |
| 44 | return { |
| 45 | 'id': self.id, |
| 46 | 'name': self.name, |
| 47 | 'arguments': self.arguments |
| 48 | } |
| 49 | |
| 50 | |
| 51 | @dataclass |
no outgoing calls