mirror of
https://github.com/microsoft/autogen.git
synced 2025-10-02 19:47:19 +00:00

* 1) Removed most framework sleeps 2) refactored connection code * pre-commit fixes * pre-commit * ignore protobuf files in pre-commit checks * Fix duplicate actor registration * refactor change * Nicer printing of Actors * 1) Report recv_multipart errors 4) Always send 4 parts * AutoGen generate_reply expects to wait indefinitely for an answer. CAP can wait a certain amount and give up. In order to reconcile the two, AutoGenConnector is set to wait indefinitely. * pre-commit formatting fixes * pre-commit format changes * don't check autogenerated proto py files
49 lines
968 B
Protocol Buffer
49 lines
968 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
// Get protoc here https://github.com/protocolbuffers/protobuf/releases
|
|
// .\protoc --python_out=. --pyi_out=. CAP.proto
|
|
|
|
enum ErrorCode {
|
|
option allow_alias = true;
|
|
EC_OK = 0;
|
|
EC_NOT_FOUND = 1;
|
|
EC_ALREADY_EXISTS = 2;
|
|
EC_MAX = 2; // IMPORTANT: Update this if you add more error codes
|
|
}
|
|
|
|
message Error {
|
|
ErrorCode code = 1;
|
|
optional string message = 2;
|
|
}
|
|
|
|
message ActorInfo {
|
|
string name = 1;
|
|
optional string namespace = 2;
|
|
optional string description = 3;
|
|
}
|
|
|
|
message ActorRegistration {
|
|
ActorInfo actor_info = 1;
|
|
}
|
|
|
|
message ActorLookup {
|
|
optional ActorInfo actor_info = 1;
|
|
// TODO: May need more structure here for semantic service discovery
|
|
// optional string service_descriptor = 2;
|
|
}
|
|
|
|
message ActorInfoCollection {
|
|
repeated ActorInfo info_coll = 1;
|
|
}
|
|
|
|
message ActorLookupResponse {
|
|
bool found = 1;
|
|
optional ActorInfoCollection actor = 2;
|
|
}
|
|
|
|
message Ping {
|
|
}
|
|
|
|
message Pong {
|
|
}
|