File tree Expand file tree Collapse file tree
packages/typescript/ai/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -704,24 +704,20 @@ describe('chat()', () => {
704704 // to store the tool call with empty arguments {}.
705705 const toolStartChunks = chunks . filter (
706706 ( c ) =>
707- c . type === 'TOOL_CALL_START' &&
708- ( c as any ) . toolCallId === 'call_1' ,
707+ c . type === 'TOOL_CALL_START' && ( c as any ) . toolCallId === 'call_1' ,
709708 )
710709 expect ( toolStartChunks ) . toHaveLength ( 1 )
711710 expect ( ( toolStartChunks [ 0 ] as any ) . toolName ) . toBe ( 'getWeather' )
712711
713712 const toolArgsChunks = chunks . filter (
714713 ( c ) =>
715- c . type === 'TOOL_CALL_ARGS' &&
716- ( c as any ) . toolCallId === 'call_1' ,
714+ c . type === 'TOOL_CALL_ARGS' && ( c as any ) . toolCallId === 'call_1' ,
717715 )
718716 expect ( toolArgsChunks ) . toHaveLength ( 1 )
719717 expect ( ( toolArgsChunks [ 0 ] as any ) . delta ) . toBe ( '{"city":"NYC"}' )
720718
721719 const toolEndChunks = chunks . filter (
722- ( c ) =>
723- c . type === 'TOOL_CALL_END' &&
724- ( c as any ) . toolCallId === 'call_1' ,
720+ ( c ) => c . type === 'TOOL_CALL_END' && ( c as any ) . toolCallId === 'call_1' ,
725721 )
726722 expect ( toolEndChunks ) . toHaveLength ( 1 )
727723
You can’t perform that action at this time.
0 commit comments