ProgressToolProgressEvent 工具执行进度事件
| 123 | |
| 124 | // ProgressToolProgressEvent 工具执行进度事件 |
| 125 | type ProgressToolProgressEvent struct { |
| 126 | Call ToolCallSnapshot `json:"call"` |
| 127 | Progress float64 `json:"progress"` // 0.0 - 1.0 |
| 128 | Message string `json:"message,omitempty"` // 进度描述 |
| 129 | Step int `json:"step,omitempty"` // 当前步骤 |
| 130 | Total int `json:"total,omitempty"` // 总步骤 |
| 131 | Metadata map[string]any `json:"metadata,omitempty"` // 额外元数据 |
| 132 | ETA int64 `json:"eta_ms,omitempty"` // 预估剩余时间(ms) |
| 133 | } |
| 134 | |
| 135 | func (e *ProgressToolProgressEvent) Channel() AgentChannel { return ChannelProgress } |
| 136 | func (e *ProgressToolProgressEvent) EventType() string { return "tool:progress" } |
nothing calls this directly
no outgoing calls
no test coverage detected