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

Function joinPromptValues

src/cli/print.ts:434–440  ·  view source on GitHub ↗
(values: PromptValue[])

Source from the content-addressed store, hash-verified

432 * to blocks and concatenated.
433 */
434export function joinPromptValues(values: PromptValue[]): PromptValue {
435 if (values.length === 1) return values[0]!
436 if (values.every(v => typeof v === 'string')) {
437 return values.join('\n')
438 }
439 return values.flatMap(toBlocks)
440}
441
442/**
443 * Whether `next` can be batched into the same ask() call as `head`. Only

Callers 1

drainCommandQueueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected