Skip to content

Commit

Permalink
Merge pull request #235 from overmindtech/gateway_assistant
Browse files Browse the repository at this point in the history
(feat) add gateway assistant
  • Loading branch information
tphoney authored Jul 29, 2024
2 parents b47867e + d274b3f commit 4953ae5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
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;
}
}

0 comments on commit 4953ae5

Please sign in to comment.