(id: string, sessionID: string)
| 5 | type Text = Extract<Part, { type: "text" }> |
| 6 | |
| 7 | const userMessage = (id: string, sessionID: string): Message => ({ |
| 8 | id, |
| 9 | sessionID, |
| 10 | role: "user", |
| 11 | time: { created: 1 }, |
| 12 | agent: "assistant", |
| 13 | model: { providerID: "openai", modelID: "gpt" }, |
| 14 | }) |
| 15 | |
| 16 | const textPart = (id: string, sessionID: string, messageID: string): Text => ({ |
| 17 | id, |
no outgoing calls
no test coverage detected