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

Function createMessage

agents/e2e/context-pruner.e2e.test.ts:49–55  ·  view source on GitHub ↗
(
    role: 'user' | 'assistant',
    content: string,
  )

Source from the content-addressed store, hash-verified

47describe('Context Pruner Agent Integration', () => {
48 // Helper to create a text message
49 const createMessage = (
50 role: 'user' | 'assistant',
51 content: string,
52 ): Message => ({
53 role,
54 content: [{ type: 'text', text: content }],
55 })
56
57 // Helper to create a tool call message
58 const createToolCallMessage = (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected