export type McpContent = { type: "text"; text: string; }; export type McpResponse = { content: McpContent[]; }; export function formatInnerMonologueResponse(thought: string): McpResponse { const MAX_PREVIEW_LENGTH = 50; const preview = thought.length > MAX_PREVIEW_LENGTH ? `${thought.substring(0, MAX_PREVIEW_LENGTH)}...` : thought; return { content: [ { type: "text", text: `Thought: ${preview}`, }, ], }; }