toolReporter 将工具回调转换为事件
| 1565 | |
| 1566 | // toolReporter 将工具回调转换为事件 |
| 1567 | type toolReporter struct { |
| 1568 | agent *Agent |
| 1569 | callID string |
| 1570 | toolName string |
| 1571 | } |
| 1572 | |
| 1573 | func (tr *toolReporter) Progress(progress float64, message string, step, total int, metadata map[string]any, etaMs int64) { |
| 1574 | tr.agent.handleToolProgress(tr.callID, tr.toolName, progress, message, step, total, metadata, etaMs) |
nothing calls this directly
no outgoing calls
no test coverage detected