MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / getTextDelta

Function getTextDelta

packages/core/src/pipes/pipes.ts:560–562  ·  view source on GitHub ↗
(chunk: ChunkStream)

Source from the content-addressed store, hash-verified

558 * @returns The text delta content, or an empty string if it is not available.
559 */
560export const getTextDelta = (chunk: ChunkStream): string => {
561 return chunk.choices[0]?.delta?.content || '';
562};
563
564/**
565 * Writes the content of a TextStream to the standard output.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected