(id: string, messageID: string, url: string, input: Partial<FilePart> = {})
| 93 | } |
| 94 | |
| 95 | function filePart(id: string, messageID: string, url: string, input: Partial<FilePart> = {}): FilePart { |
| 96 | return { |
| 97 | id, |
| 98 | sessionID: "session-1", |
| 99 | messageID, |
| 100 | type: "file", |
| 101 | mime: input.mime ?? "text/plain", |
| 102 | filename: input.filename, |
| 103 | url, |
| 104 | source: input.source, |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | describe("run session shared", () => { |
| 109 | test("builds user prompt text from text, file, and agent parts", () => { |
no outgoing calls
no test coverage detected