mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
feat: ui message (#357)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user