MCPcopy Create free account
hub / github.com/commandoperator/cmdop-sdk / AskOptions

Interface AskOptions

node/src/resources/machines.ts:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected