hashbrown

mergeToolCalls

Merges partial tool call deltas into a stable list.

API

export declare function mergeToolCalls(
  existingCalls?:  Chat.Api.ToolCall [],
  newCalls?:  DeepPartial < Chat.Api.ToolCall >[],
):  Chat.Api.ToolCall [];
mergeToolCalls
Chat.Api.ToolCall[]
@optionalexistingCalls:
Chat.Api.ToolCall[]
@optionalnewCalls:
DeepPartial<Chat.Api.ToolCall>[]
@returns
Chat.Api.ToolCall[]