Desktop foundation / core (ubuntu-latest) (push) Failing after 28s
Desktop foundation / core (macos-latest) (push) Canceled after 0s
Desktop foundation / core (windows-latest) (push) Canceled after 0s
Linux / verify (push) Canceled after 0s
Linux / keyless-cuda (push) Canceled after 0s
Linux / static-cuda-package (push) Canceled after 0s
Linux / hosted-cuda-package (push) Canceled after 0s
Linux / linux-static-cli (push) Canceled after 0s
Linux / linux-cli-container (push) Canceled after 0s
Linux / release-cli (push) Canceled after 0s
57 lines
1.6 KiB
Protocol Buffer
57 lines
1.6 KiB
Protocol Buffer
syntax = "proto3";
|
|
package strata.node.v1;
|
|
option csharp_namespace = "Strata.Node.V1";
|
|
service Node {
|
|
rpc WorkerStatus(Empty) returns (WorkerState);
|
|
rpc ControlWorker(WorkerCommand) returns (WorkerOperation);
|
|
rpc OperationStatus(OperationQuery) returns (WorkerOperation);
|
|
rpc Handshake(Hello) returns (Snapshot);
|
|
rpc Hardware(Empty) returns (JsonDocument);
|
|
rpc Plan(JsonDocument) returns (JsonDocument);
|
|
rpc Watch(Cursor) returns (stream Snapshot);
|
|
rpc Models(Empty) returns (JsonDocument);
|
|
rpc Respond(ResponseRequest) returns (stream ResponseFrame);
|
|
}
|
|
message Empty {}
|
|
message Hello { uint32 protocol_version = 1; }
|
|
message Cursor { string agent_epoch = 1; uint64 sequence = 2; }
|
|
message Snapshot {
|
|
uint32 protocol_version = 1;
|
|
string agent_epoch = 2;
|
|
uint64 sequence = 3;
|
|
repeated string capabilities = 4;
|
|
uint32 active_responses = 5;
|
|
bool full_snapshot = 6;
|
|
}
|
|
message JsonDocument { bytes json = 1; }
|
|
message ResponseRequest { bytes json = 1; }
|
|
message ResponseHeaders { uint32 status = 1; string content_type = 2; string retry_after = 3; }
|
|
message ResponseFrame {
|
|
oneof payload {
|
|
ResponseHeaders headers = 1;
|
|
bytes data = 2;
|
|
Empty end = 3;
|
|
}
|
|
}
|
|
|
|
message WorkerState {
|
|
string profile_id = 1;
|
|
string model = 2;
|
|
string phase = 3;
|
|
uint32 pid = 4;
|
|
string reason = 5;
|
|
}
|
|
message WorkerCommand {
|
|
string operation_id = 1;
|
|
enum Action { UNSPECIFIED = 0; START = 1; STOP = 2; }
|
|
Action action = 2;
|
|
uint32 drain_timeout_ms = 3;
|
|
string expected_epoch = 4;
|
|
}
|
|
message OperationQuery { string operation_id = 1; }
|
|
message WorkerOperation {
|
|
string operation_id = 1;
|
|
string status = 2;
|
|
string reason = 3;
|
|
}
|