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

Method pipeThroughMiddleware

packages/ai/src/activities/chat/index.ts:2067–2070  ·  view source on GitHub ↗
(
      synthChunk: StreamChunk,
    )

Source from the content-addressed store, hash-verified

2065 }
2066
2067 const pipeThroughMiddleware = async (
2068 synthChunk: StreamChunk,
2069 ): Promise<Array<StreamChunk>> =>
2070 this.middlewareRunner.runOnChunk(this.middlewareCtx, synthChunk)
2071
2072 // Track whether a RUN_ERROR has been yielded to streaming consumers so
2073 // we don't emit a duplicate synthetic one at the end.

Callers 4

processToolCallsMethod · 0.95
drainSandboxFileQueueMethod · 0.95

Calls 1

runOnChunkMethod · 0.80

Tested by

no test coverage detected