Function
submit
(text: string, mode?: RunPrompt["mode"])
Source from the content-addressed store, hash-verified
| 68 | events, |
| 69 | commits, |
| 70 | submit(text: string, mode?: RunPrompt["mode"]) { |
| 71 | const next = mode ? { text, parts: [] as RunPrompt["parts"], mode } : { text, parts: [] as RunPrompt["parts"] } |
| 72 | for (const fn of [...prompts]) { |
| 73 | fn(next) |
| 74 | } |
| 75 | }, |
| 76 | removeQueued(messageID: string) { |
| 77 | for (const fn of [...queuedRemoves]) fn(messageID) |
| 78 | }, |
Callers
nothing calls this directly
Tested by
no test coverage detected