MCPcopy Create free account
hub / github.com/Noumena-Network/code / toBlocks

Function toBlocks

src/cli/print.ts:425–427  ·  view source on GitHub ↗
(v: PromptValue)

Source from the content-addressed store, hash-verified

423type PromptValue = string | ContentBlockParam[]
424
425function toBlocks(v: PromptValue): ContentBlockParam[] {
426 return typeof v === 'string' ? [{ type: 'text', text: v }] : v
427}
428
429/**
430 * Join prompt values from multiple queued commands into one. Strings are

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected