@threadplane/ag-uiFunctionv0.3.7

projectStreamingToolCalls

Display only: the root tool calls whose arguments are still arriving, for the streamingToolCalls of a core snapshot. These are the calls projectToolCalls withholds (see selectCalls): each has the argument text so far in argsText and, when that text can be read, a best-effort args. A call leaves this list when its arguments are final and it enters the projected tool calls under the same id.

previous is an optional identity hint, as in projectMessages.

import { projectStreamingToolCalls } from '@threadplane/ag-ui';

Declaration · overload 1

export declare function projectStreamingToolCalls(snapshot: Projectable, previous?: readonly StreamingToolCall[]): readonly StreamingToolCall[];

Parameters

snapshot · required
Projectable
previous · optional
readonly StreamingToolCall[]

Returns

readonly StreamingToolCall[]