autogen/protos/agent_worker.proto
Reuben Bond ebed669231 Initial cross-language protocol for agents (#139)
* Initial prototype of .NET gRPC worker client + service

---------

Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
2024-06-28 08:03:42 -07:00

50 lines
870 B
Protocol Buffer

syntax = "proto3";
package agents;
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;
}
}