| 26 | throw new Error("cmdop-core returned the wrong roster response arm"); |
| 27 | } |
| 28 | return response.payload.value; |
| 29 | } |
| 30 | |
| 31 | ask(machineId: string, prompt = "", options: AskOptions = {}): AskStream { |
| 32 | const attachmentIds = [...(options.attachmentIds ?? [])]; |
| 33 | if (!prompt && attachmentIds.length === 0) { |
| 34 | throw new Error("prompt or at least one attachmentId is required"); |
| 35 | } |
| 36 | return this.t.callStream( |
| 37 | this.request({ |
| 38 | case: "askMachineReq", |
| 39 | value: { |
| 40 | machineId, |
nothing calls this directly
no outgoing calls
no test coverage detected