Token usage information.
| 140 | |
| 141 | @dataclass |
| 142 | class Usage: |
| 143 | """Token usage information.""" |
| 144 | input_tokens: int = 0 |
| 145 | output_tokens: int = 0 |
| 146 | total_tokens: int = 0 |
| 147 | |
| 148 | def to_dict(self) -> dict: |
| 149 | """Convert to dictionary representation.""" |
| 150 | return { |
| 151 | 'input_tokens': self.input_tokens, |
| 152 | 'output_tokens': self.output_tokens, |
| 153 | 'total_tokens': self.total_tokens |
| 154 | } |
| 155 | |
| 156 | |
| 157 | @dataclass |
no outgoing calls
no test coverage detected