Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
410 changes: 205 additions & 205 deletions .gitignore

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions LICENSE-CODE
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
MIT License

Copyright (c) Microsoft Corporation.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
MIT License
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
24 changes: 12 additions & 12 deletions docs/dotnet/.gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
###############
# folder #
###############
/**/DROP/
/**/TEMP/
/**/packages/
/**/bin/
/**/obj/

# build artifacts for web
_site/
api/
###############
# folder #
###############
/**/DROP/
/**/TEMP/
/**/packages/
/**/bin/
/**/obj/
# build artifacts for web
_site/
api/
8 changes: 4 additions & 4 deletions docs/dotnet/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
268 changes: 134 additions & 134 deletions protos/agent_worker.proto
Original file line number Diff line number Diff line change
@@ -1,134 +1,134 @@
syntax = "proto3";

package agents;

option csharp_namespace = "Microsoft.AutoGen.Protobuf";

import "cloudevent.proto";
import "google/protobuf/any.proto";


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;
optional 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 RegisterAgentTypeRequest {
string type = 1;
}

message RegisterAgentTypeResponse {
}

message TypeSubscription {
string topic_type = 1;
string agent_type = 2;
}

message TypePrefixSubscription {
string topic_type_prefix = 1;
string agent_type = 2;
}

message Subscription {
string id = 1;
oneof subscription {
TypeSubscription typeSubscription = 2;
TypePrefixSubscription typePrefixSubscription = 3;
}
}

message AddSubscriptionRequest {
Subscription subscription = 1;
}

message AddSubscriptionResponse {
}

message RemoveSubscriptionRequest {
string id = 1;
}

message RemoveSubscriptionResponse {
}

message GetSubscriptionsRequest {}
message GetSubscriptionsResponse {
repeated Subscription subscriptions = 1;
}

message Message {
oneof message {
RpcRequest request = 1;
RpcResponse response = 2;
io.cloudevents.v1.CloudEvent cloudEvent = 3;
}
}

message SaveStateRequest {
AgentId agentId = 1;
}

message SaveStateResponse {
string state = 1;
optional string error = 2;
}

message LoadStateRequest {
AgentId agentId = 1;
string state = 2;
}
message LoadStateResponse {
optional string error = 1;
}

message ControlMessage {
// A response message should have the same id as the request message
string rpc_id = 1;
// This is either:
// agentid=AGENT_ID
// clientid=CLIENT_ID
string destination = 2;
// This is either:
// agentid=AGENT_ID
// clientid=CLIENT_ID
// Empty string means the message is a response
optional string respond_to = 3;
// One of:
// SaveStateRequest saveStateRequest = 2;
// SaveStateResponse saveStateResponse = 3;
// LoadStateRequest loadStateRequest = 4;
// LoadStateResponse loadStateResponse = 5;
google.protobuf.Any rpcMessage = 4;
}

service AgentRpc {
rpc OpenChannel (stream Message) returns (stream Message);
rpc OpenControlChannel (stream ControlMessage) returns (stream ControlMessage);
rpc RegisterAgent(RegisterAgentTypeRequest) returns (RegisterAgentTypeResponse);
rpc AddSubscription(AddSubscriptionRequest) returns (AddSubscriptionResponse);
rpc RemoveSubscription(RemoveSubscriptionRequest) returns (RemoveSubscriptionResponse);
rpc GetSubscriptions(GetSubscriptionsRequest) returns (GetSubscriptionsResponse);
}
syntax = "proto3";
package agents;
option csharp_namespace = "Microsoft.AutoGen.Protobuf";
import "cloudevent.proto";
import "google/protobuf/any.proto";
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;
optional 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 RegisterAgentTypeRequest {
string type = 1;
}
message RegisterAgentTypeResponse {
}
message TypeSubscription {
string topic_type = 1;
string agent_type = 2;
}
message TypePrefixSubscription {
string topic_type_prefix = 1;
string agent_type = 2;
}
message Subscription {
string id = 1;
oneof subscription {
TypeSubscription typeSubscription = 2;
TypePrefixSubscription typePrefixSubscription = 3;
}
}
message AddSubscriptionRequest {
Subscription subscription = 1;
}
message AddSubscriptionResponse {
}
message RemoveSubscriptionRequest {
string id = 1;
}
message RemoveSubscriptionResponse {
}
message GetSubscriptionsRequest {}
message GetSubscriptionsResponse {
repeated Subscription subscriptions = 1;
}
message Message {
oneof message {
RpcRequest request = 1;
RpcResponse response = 2;
io.cloudevents.v1.CloudEvent cloudEvent = 3;
}
}
message SaveStateRequest {
AgentId agentId = 1;
}
message SaveStateResponse {
string state = 1;
optional string error = 2;
}
message LoadStateRequest {
AgentId agentId = 1;
string state = 2;
}
message LoadStateResponse {
optional string error = 1;
}
message ControlMessage {
// A response message should have the same id as the request message
string rpc_id = 1;
// This is either:
// agentid=AGENT_ID
// clientid=CLIENT_ID
string destination = 2;
// This is either:
// agentid=AGENT_ID
// clientid=CLIENT_ID
// Empty string means the message is a response
optional string respond_to = 3;
// One of:
// SaveStateRequest saveStateRequest = 2;
// SaveStateResponse saveStateResponse = 3;
// LoadStateRequest loadStateRequest = 4;
// LoadStateResponse loadStateResponse = 5;
google.protobuf.Any rpcMessage = 4;
}
service AgentRpc {
rpc OpenChannel (stream Message) returns (stream Message);
rpc OpenControlChannel (stream ControlMessage) returns (stream ControlMessage);
rpc RegisterAgent(RegisterAgentTypeRequest) returns (RegisterAgentTypeResponse);
rpc AddSubscription(AddSubscriptionRequest) returns (AddSubscriptionResponse);
rpc RemoveSubscription(RemoveSubscriptionRequest) returns (RemoveSubscriptionResponse);
rpc GetSubscriptions(GetSubscriptionsRequest) returns (GetSubscriptionsResponse);
}
Loading