autogen/protos/agent_worker.proto
Jack Gerrits 437dbefc32 Rename fields in agent id (#334)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-08-07 10:25:44 -07:00

51 lines
886 B
Protocol Buffer

syntax = "proto3";
package agents;
// TODO: update
message AgentId {
string name = 1;
string namespace = 2;
}
message RpcRequest {
string request_id = 1;
AgentId source = 2;
AgentId target = 3;
string method = 4;
string data = 5;
map<string, string> metadata = 6;
}
message RpcResponse {
string request_id = 1;
string result = 2;
string error = 3;
map<string, string> metadata = 4;
}
message Event {
string namespace = 1;
string type = 2;
string data = 3;
map<string, string> metadata = 4;
}
message RegisterAgentType {
string type = 1;
}
service AgentRpc {
rpc OpenChannel (stream Message) returns (stream Message);
}
message Message {
oneof message {
RpcRequest request = 1;
RpcResponse response = 2;
Event event = 3;
RegisterAgentType registerAgentType = 4;
}
}