( content?: (TextPart | ImagePart)[], )
| 65 | * Uses buildUserMessageContent from agent-runtime for consistency. |
| 66 | */ |
| 67 | const 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 | |
| 77 | export type CodebuffClientOptions = { |
| 78 | apiKey?: string |
no test coverage detected