Skip to content

AIDK API Reference / aidk/testing / createToolCallStreamSequence

Function: createToolCallStreamSequence() ​

ts
function createToolCallStreamSequence(
   toolName: string, 
   toolInput: Record<string, unknown>, 
   toolResult: unknown): StreamChunk[];

Defined in: packages/shared/src/testing/fixtures.ts:451

Create a sequence of stream chunks for a tool call response

Parameters ​

ParameterType
toolNamestring
toolInputRecord<string, unknown>
toolResultunknown

Returns ​

StreamChunk[]

Released under the MIT License.