* active turn or tool call doesn't match.
*/
state: ChatState,
turnId: string,
toolCallId: string,
updater: (tc: ToolCallState) => ToolCallState,
): ChatState {
const activeTurn = state.activeTurn;
if (!activeTurn || activeTurn.id !== turnId) {
return state;
}