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

Function createMessage

agents/e2e/context-pruning-threshold.e2e.test.ts:69–75  ·  view source on GitHub ↗
(
  role: 'user' | 'assistant',
  content: string,
)

Source from the content-addressed store, hash-verified

67
68// Helper to create a text message
69const createMessage = (
70 role: 'user' | 'assistant',
71 content: string,
72): Message => ({
73 role,
74 content: [{ type: 'text', text: content }],
75})
76
77// Helper to create a tool call message
78const createToolCallMessage = (

Callers 1

buildMessageHistoryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected