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

Function getTextContent

packages/core/src/pipes/pipes.ts:550–552  ·  view source on GitHub ↗
(chunk: any)

Source from the content-addressed store, hash-verified

548 * @returns The text content from the ChunkStream.
549 */
550export const getTextContent = (chunk: any): string => {
551 return chunk.choices[0]?.delta?.content || '';
552};
553
554/**
555 * Retrieves the text delta from a given chunk.

Callers 3

handleSubmitFunction · 0.90
mainFunction · 0.90
generateReadmeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected