MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / deepCopyPart

Function deepCopyPart

packages/kosong/src/generate.ts:340–342  ·  view source on GitHub ↗

* Produce a shallow-ish copy of a StreamedMessagePart. * * This is intentionally minimal: we only need isolation for the mutable * string fields that `mergeInPlace` mutates (text, think, arguments).

(part: StreamedMessagePart)

Source from the content-addressed store, hash-verified

338 * string fields that `mergeInPlace` mutates (text, think, arguments).
339 */
340function deepCopyPart(part: StreamedMessagePart): StreamedMessagePart {
341 return structuredClone(part);
342}

Callers 1

generateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected