(messageID: string, id: string)
| 104 | } |
| 105 | |
| 106 | function basePart(messageID: string, id: string) { |
| 107 | return { |
| 108 | id: PartID.make(id.startsWith("prt") ? id : `prt_${id}`), |
| 109 | sessionID, |
| 110 | messageID: MessageID.make(messageID.startsWith("msg") ? messageID : `msg_${messageID}`), |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | describe("session.message-v2.toModelMessage", () => { |
| 115 | test("filters out messages with no parts", async () => { |