Skip to content

Commit

Permalink
Update protobuf definition
Browse files Browse the repository at this point in the history
  • Loading branch information
radovanZRasa committed Jun 14, 2024
1 parent 01e786b commit 7605fe8
Show file tree
Hide file tree
Showing 5 changed files with 118 additions and 159 deletions.
59 changes: 37 additions & 22 deletions proto/action_webhook.proto
Original file line number Diff line number Diff line change
@@ -1,35 +1,49 @@
syntax = "proto3";

package action_server_webhook;
import "google/protobuf/any.proto";
import "google/protobuf/struct.proto";

service ActionServerWebhook {
rpc webhook (WebhookRequest) returns (WebhookResponse);
}

message Tracker {
string conversation_id = 1;
map<string, string> slots = 2;
map<string, string> latest_message = 3;
double latest_event_time = 4;
string followup_action = 5;
bool paused = 6;
repeated string events = 7;
string latest_input_channel = 8;
map<string, string> active_loop = 9;
map<string, string> latest_action = 10;
string sender_id = 1;
google.protobuf.Struct slots = 2;
google.protobuf.Struct latest_message = 3;
repeated google.protobuf.Struct events = 4;
bool paused = 5;
optional string followup_action = 6;
map<string, string> active_loop = 7;
optional string latest_action_name = 8;
repeated google.protobuf.Struct stack = 9;
}

message Intent {
string string_value = 1;
google.protobuf.Struct dict_value = 2;
}

message Entity {
string string_value = 1;
google.protobuf.Struct dict_value = 2;
}

message Action {
string string_value = 1;
google.protobuf.Struct dict_value = 2;
}

message Domain {
map<string, string> config = 1;
map<string, string> session_config = 2;
repeated string intents = 3;
repeated string entities = 4;
map<string, string> slots = 5;
map<string, string> responses = 6;
repeated string actions = 7;
map<string, string> forms = 8;
repeated string e2e_actions = 9;
google.protobuf.Struct config = 1;
google.protobuf.Struct session_config = 2;
repeated Intent intents = 3;
repeated Entity entities = 4;
google.protobuf.Struct slots = 5;
google.protobuf.Struct responses = 6;
repeated Action actions = 7;
google.protobuf.Struct forms = 8;
repeated google.protobuf.Struct e2e_actions = 9;
}

message WebhookRequest {
Expand All @@ -38,9 +52,10 @@ message WebhookRequest {
Tracker tracker = 3;
Domain domain = 4;
string version = 5;
optional string domain_digest = 6;
}

message WebhookResponse {
repeated google.protobuf.Any events = 1;
repeated google.protobuf.Any responses = 2;
repeated google.protobuf.Struct events = 1;
repeated google.protobuf.Struct responses = 2;
}
66 changes: 20 additions & 46 deletions rasa_sdk/grpc_py/action_webhook_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7605fe8

Please sign in to comment.