MCPcopy Create free account
hub / github.com/astercloud/aster / toolReporter

Struct toolReporter

pkg/agent/agent.go:1567–1571  ·  view source on GitHub ↗

toolReporter 将工具回调转换为事件

Source from the content-addressed store, hash-verified

1565
1566// toolReporter 将工具回调转换为事件
1567type toolReporter struct {
1568 agent *Agent
1569 callID string
1570 toolName string
1571}
1572
1573func (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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected