()
| 369 | turns = state.TurnCountValue() |
| 370 | } |
| 371 | return map[string]any{ |
| 372 | "input_tokens": input, |
| 373 | "output_tokens": output, |
| 374 | "total_tokens": input + output, |
| 375 | "turn_count": turns, |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | func (c *SessionController) ToggleYolo() map[string]any { |
| 380 | return c.setYolo(!c.RuntimeConfig().Yolo) |
| 381 | } |
| 382 | |
| 383 | func (c *SessionController) SetYolo(enabled bool) map[string]any { |
| 384 | return c.setYolo(enabled) |
| 385 | } |
| 386 | |
| 387 | func (c *SessionController) setYolo(enabled bool) map[string]any { |
no test coverage detected