Documentation / @hybrid-compute/remote / RemoteTaskRequestInterface
Interface: RemoteTaskRequestInterface<Input>
Defined in: packages/remote/src/types.ts:63
What the remote service receives for each task: a JSON object with the task name and its input. The WebSocket transport adds an id, which the reply must repeat.
Example
json
{ "task": "translate", "input": { "text": "hello" }, "id": 1 }Type Parameters
Input
Input = unknown
Properties
id?
ts
optional id?: number;Defined in: packages/remote/src/types.ts:66
input
ts
input: Input;Defined in: packages/remote/src/types.ts:65
task
ts
task: string;Defined in: packages/remote/src/types.ts:64