feat: ui message (#357)

This commit is contained in:
Acbox Liu
2026-04-11 13:29:41 +08:00
committed by GitHub
parent f376a2abe3
commit 7a21fd5f07
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 {