393
394
case ActionType.ChatToolCallStart:
395
>
if (!state.activeTurn || state.activeTurn.id !== action.turnId) {
reducer.ts
396
return state;
397
}
399
>
...state,
400
>
activeTurn: {
401
>
...state.activeTurn,
402
>
responseParts: [
403
>
...state.activeTurn.responseParts,
404
>
{
405
>
kind: ResponsePartKind.ToolCall,
406
>
toolCall: {
407
>
toolCallId: action.toolCallId,
408
>
toolName: action.toolName,
409
>
displayName: action.displayName,
410
>
intention: action.intention,
411
>
contributor: action.contributor,
412
>
_meta: action._meta,
413
>
status: ToolCallStatus.Streaming,
414
>
},
415
>
} satisfies ToolCallResponsePart,
416
>
],
417
>
},
418
>
};
419
420
case ActionType.ChatToolCallDelta: