mirror of
https://github.com/microsoft/autogen.git
synced 2025-08-31 20:07:30 +00:00

* Support datacontenttype and lay groundwork for unknown payloads * Update dotnet based on proto changes
72 lines
1.3 KiB
Protocol Buffer
72 lines
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package agents;
|
|
|
|
message AgentId {
|
|
string type = 1;
|
|
string key = 2;
|
|
}
|
|
|
|
message Payload {
|
|
string data_type = 1;
|
|
string data_content_type = 2;
|
|
bytes data = 3;
|
|
}
|
|
|
|
message RpcRequest {
|
|
string request_id = 1;
|
|
AgentId source = 2;
|
|
AgentId target = 3;
|
|
string method = 4;
|
|
Payload payload = 5;
|
|
map<string, string> metadata = 6;
|
|
}
|
|
|
|
message RpcResponse {
|
|
string request_id = 1;
|
|
Payload payload = 2;
|
|
string error = 3;
|
|
map<string, string> metadata = 4;
|
|
}
|
|
|
|
message Event {
|
|
string topic_type = 1;
|
|
string topic_source = 2;
|
|
Payload payload = 3;
|
|
map<string, string> metadata = 4;
|
|
}
|
|
|
|
message RegisterAgentType {
|
|
string type = 1;
|
|
}
|
|
|
|
message TypeSubscription {
|
|
string topic_type = 1;
|
|
string agent_type = 2;
|
|
}
|
|
|
|
message Subscription {
|
|
oneof subscription {
|
|
TypeSubscription typeSubscription = 1;
|
|
}
|
|
}
|
|
|
|
message AddSubscription {
|
|
Subscription subscription = 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;
|
|
AddSubscription addSubscription = 5;
|
|
}
|
|
}
|
|
|