MCPcopy Create free account
hub / github.com/TanStack/ai / resultsIn

Function resultsIn

packages/ai/tests/stream-processor.test.ts:2825–2826  ·  view source on GitHub ↗
(msgIndex: number)

Source from the content-addressed store, hash-verified

2823 const messages = processor.getMessages()
2824 expect(messages).toHaveLength(3)
2825 const resultsIn = (msgIndex: number) =>
2826 messages[msgIndex]?.parts.filter((p) => p.type === 'tool-result') ?? []
2827 // Each result lands next to its own call, not in the last assistant.
2828 expect(messages[1]?.id).toBe('a1')
2829 expect(resultsIn(1)).toEqual([

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected