setBreakpoint 设置断点
(state types.BreakpointState)
| 832 | |
| 833 | // setBreakpoint 设置断点 |
| 834 | func (a *Agent) setBreakpoint(state types.BreakpointState) { |
| 835 | a.mu.Lock() |
| 836 | previous := a.breakpoint |
| 837 | a.breakpoint = state |
| 838 | a.mu.Unlock() |
| 839 | |
| 840 | a.eventBus.EmitMonitor(&types.MonitorBreakpointChangedEvent{ |
| 841 | Previous: previous, |
| 842 | Current: state, |
| 843 | Timestamp: time.Now(), |
| 844 | }) |
| 845 | } |
| 846 | |
| 847 | // updateToolRecord 更新工具记录 |
| 848 | func (a *Agent) updateToolRecord(id string, state types.ToolCallState, errorMsg string) { |
no test coverage detected