Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat) add gateway assistant #235

Merged
merged 1 commit into from
Jul 29, 2024
Merged
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
11 changes: 11 additions & 0 deletions changes.proto
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ service ChangesService {
rpc UpdateChange(UpdateChangeRequest) returns (UpdateChangeResponse);
// Deletes a change
rpc DeleteChange(DeleteChangeRequest) returns (DeleteChangeResponse);
// Lists all changes for a snapshot UUID
rpc ListChangesBySnapshotUUID(ListChangesBySnapshotUUIDRequest) returns (ListChangesBySnapshotUUIDResponse);

// Get the timeline of changes for a given change
rpc GetChangeTimeline(GetChangeTimelineRequest) returns (GetChangeTimelineResponse);
Expand Down Expand Up @@ -777,6 +779,15 @@ message DeleteChangeRequest {
bytes UUID = 1;
}

// list changes for a snapshot UUID
message ListChangesBySnapshotUUIDRequest {
bytes UUID = 1;
}

message ListChangesBySnapshotUUIDResponse {
repeated changes.Change changes = 1;
}

message DeleteChangeResponse {}

message RefreshStateRequest {}
Expand Down
15 changes: 15 additions & 0 deletions gateway.proto
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ message GatewayRequest {
// CancelLoadBookmark cancelLoadBookmark = ??;
// // undo the loading of a Bookmark
// UndoLoadBookmark undoLoadBookmark = ??;
ChatMessage chatMessage = 16;
}

optional google.protobuf.Duration minStatusInterval = 2; // Minimum time between status updates. Setting this value too low can result in too many status messages
Expand Down Expand Up @@ -90,6 +91,8 @@ message GatewayResponse {
BookmarkLoadResult bookmarkLoadResult = 16;

QueryStatus queryStatus = 17; // Status of requested queries

ChatMessageResult chatMessageResult = 18;
}
}

Expand Down Expand Up @@ -205,3 +208,15 @@ message SnapshotLoadResult {
// a correlation ID to match up requests and responses. this field returns the contents of the request's msgID
bytes msgID = 4;
}

message ChatMessage {
// The message to create
string message = 1;
}

message ChatMessageResult {
oneof response_type {
string error = 1;
string message = 2;
}
}
Loading