Groups adjacent successful complete calls with identical tool identities. Open, unsuccessful and excluded calls remain separate and break groups. Inputs and their member/source objects are preserved without mutation.
API
export declare function groupServerToolCalls(
calls: readonly Readonly < ServerToolCall >[],
options?: GroupServerToolCallsOptions ,
): readonly GroupedServerToolCall [];groupServerToolCalls
readonly GroupedServerToolCall[]@paramcalls:readonly Readonly<ServerToolCall>[]Public server calls in display order.
Application wording and excluded technical tool names.
@returnsreadonly GroupedServerToolCall[]