From 37021869ccd55279daee74a0a6a6e3365fd716cb Mon Sep 17 00:00:00 2001 From: TP Honey Date: Fri, 19 Jul 2024 12:44:09 +0100 Subject: [PATCH] (feat) add gateway assistant --- gateway.proto | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/gateway.proto b/gateway.proto index 8df5ae8..8686e71 100644 --- a/gateway.proto +++ b/gateway.proto @@ -205,3 +205,67 @@ message SnapshotLoadResult { // a correlation ID to match up requests and responses. this field returns the contents of the request's msgID bytes msgID = 4; } + + +// Assistant messages +message AssistantRequest { + AssistantMessage message = 1; +} + +message AssistantResponse { + AssistantMessage message = 1; +} + +message AssistantMessage { + string id = 1; + google.protobuf.Timestamp createdAt = 2; + string threadID= 3; + string status = 4; + google.protobuf.Timestamp completedAt = 5; + string assistantID = 6; + repeated Content content = 7; + repeated Attachments attachments = 8; +} + +message Content { + string type = 1; + oneof content { + Text text = 2; + ImageFile imageFile = 3; + ImageURL imageURL = 4; + } +} + +message ImageFile { + string fileID = 1; + string detail = 2; +} + +message ImageURL { + string url = 1; + string detail = 2; +} + +message Text { + string text = 1; +} + +message Attachments { + string fileID = 1; + repeated Tools tools = 2; +} + +message Tools { + oneof tool { + CodeInterpreter codeInterpreter = 1; + FileSearch fileSearch = 2; + } +} + +message CodeInterpreter { + string Type = 1; +} + +message FileSearch { + string Type = 1; +} \ No newline at end of file