feat: ui message

This commit is contained in:
Acbox
2026-04-10 16:44:44 +08:00
parent d3bf6bc90a
commit 51495ba583
19 changed files with 2141 additions and 774 deletions
+8
View File
@@ -216,6 +216,14 @@ func (a *Agent) runStream(ctx context.Context, cfg RunConfig, ch chan<- StreamEv
Input: p.Input,
}
case *sdk.ToolProgressPart:
ch <- StreamEvent{
Type: EventToolCallProgress,
ToolName: p.ToolName,
ToolCallID: p.ToolCallID,
Progress: p.Content,
}
case *sdk.StreamToolResultPart:
shouldAbort := false
if _, ok := toolLoopAbortCallIDs[p.ToolCallID]; ok {