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

Function wrapContentForUserMessage

sdk/src/run.ts:67–75  ·  view source on GitHub ↗
(
  content?: (TextPart | ImagePart)[],
)

Source from the content-addressed store, hash-verified

65 * Uses buildUserMessageContent from agent-runtime for consistency.
66 */
67const wrapContentForUserMessage = (
68 content?: (TextPart | ImagePart)[],
69): (TextPart | ImagePart)[] | undefined => {
70 if (!content || content.length === 0) {
71 return content
72 }
73 // Delegate to the shared utility which handles wrapping correctly
74 return buildUserMessageContent(undefined, undefined, content)
75}
76
77export type CodebuffClientOptions = {
78 apiKey?: string

Callers 1

runOnceFunction · 0.85

Calls 1

buildUserMessageContentFunction · 0.90

Tested by

no test coverage detected