ProgressToolIntermediateEvent 工具中间结果事件
| 137 | |
| 138 | // ProgressToolIntermediateEvent 工具中间结果事件 |
| 139 | type ProgressToolIntermediateEvent struct { |
| 140 | Call ToolCallSnapshot `json:"call"` |
| 141 | Label string `json:"label,omitempty"` |
| 142 | Data any `json:"data,omitempty"` |
| 143 | // UI 可选的 UI 描述,用于工具输出的结构化渲染 |
| 144 | UI *AsterUIMessage `json:"ui,omitempty"` |
| 145 | } |
| 146 | |
| 147 | func (e *ProgressToolIntermediateEvent) Channel() AgentChannel { return ChannelProgress } |
| 148 | func (e *ProgressToolIntermediateEvent) EventType() string { return "tool:intermediate" } |
nothing calls this directly
no outgoing calls
no test coverage detected