MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / systemContent

Function systemContent

common/src/util/messages.ts:358–368  ·  view source on GitHub ↗
(
  content: SystemContent,
)

Source from the content-addressed store, hash-verified

356 | SystemMessage['content'][number]
357 | SystemMessage['content']
358export function systemContent(
359 content: SystemContent,
360): SystemMessage['content'] {
361 if (typeof content === 'string') {
362 return [{ type: 'text', text: content }]
363 }
364 if (Array.isArray(content)) {
365 return content
366 }
367 return [content]
368}
369
370export function systemMessage(
371 params:

Callers 1

systemMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected