(
content:
| string
| Array<
| { type: "text"; text: string }
| { type: "image"; data: string; mimeType: string }
>,
timestamp = 1,
)
| 15 | } |
| 16 | |
| 17 | export function userMessage( |
| 18 | content: |
| 19 | | string |
| 20 | | Array< |
| 21 | | { type: "text"; text: string } |
| 22 | | { type: "image"; data: string; mimeType: string } |
| 23 | >, |
| 24 | timestamp = 1, |
| 25 | ): PiMessage { |
| 26 | return { role: "user", content, timestamp } as PiMessage; |
| 27 | } |
| 28 | |
| 29 | export function assistantMessage( |
| 30 | text: string, |
no outgoing calls
no test coverage detected