makeToolReporter 创建工具执行 Reporter
(callID, toolName string)
| 1482 | |
| 1483 | // makeToolReporter 创建工具执行 Reporter |
| 1484 | func (a *Agent) makeToolReporter(callID, toolName string) tools.Reporter { |
| 1485 | return &toolReporter{ |
| 1486 | agent: a, |
| 1487 | callID: callID, |
| 1488 | toolName: toolName, |
| 1489 | } |
| 1490 | } |
| 1491 | |
| 1492 | // handleToolProgress 处理进度事件并推送到总线 |
| 1493 | func (a *Agent) handleToolProgress(callID, toolName string, progress float64, message string, step, total int, metadata map[string]any, etaMs int64) { |