MCPcopy
hub / github.com/CodebuffAI/codebuff / asUserMessage

Function asUserMessage

packages/agent-runtime/src/util/messages.ts:32–34  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

30}
31
32export function asUserMessage(str: string): string {
33 return `<user_message>${str}${closeXml('user_message')}`
34}
35
36/**
37 * Combines prompt, params, and content into a unified message content structure.

Callers 2

buildUserMessageContentFunction · 0.85

Calls 1

closeXmlFunction · 0.90

Tested by

no test coverage detected