diff --git a/ai.pb.go b/ai.pb.go index 5211ccb..a1be444 100644 --- a/ai.pb.go +++ b/ai.pb.go @@ -352,10 +352,12 @@ func (x *CreateSessionResponse) GetError() string { // AskInSessionRequest для запроса в рамках сессии type AskInSessionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // ID сессии - Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` // Текст запроса - EnableReasoning bool `protobuf:"varint,3,opt,name=enable_reasoning,json=enableReasoning,proto3" json:"enable_reasoning,omitempty"` // Включить режим рассуждений (по умолчанию false) + state protoimpl.MessageState `protogen:"open.v1"` + SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // ID сессии + Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` // Текст запроса + EnableReasoning bool `protobuf:"varint,3,opt,name=enable_reasoning,json=enableReasoning,proto3" json:"enable_reasoning,omitempty"` // Включить режим рассуждений (по умолчанию false) + GlobalUserId int64 `protobuf:"varint,4,opt,name=global_user_id,json=globalUserId,proto3" json:"global_user_id,omitempty"` // Global user ID для получения воспоминаний + Options *AnswerGenerationOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` // Дополнительные опции генерации unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -411,6 +413,20 @@ func (x *AskInSessionRequest) GetEnableReasoning() bool { return false } +func (x *AskInSessionRequest) GetGlobalUserId() int64 { + if x != nil { + return x.GlobalUserId + } + return 0 +} + +func (x *AskInSessionRequest) GetOptions() *AnswerGenerationOptions { + if x != nil { + return x.Options + } + return nil +} + // SessionStatusResponse содержит статус сессии и ответ AI type SessionStatusResponse struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -619,12 +635,14 @@ const file_ai_proto_rawDesc = "" + "\n" + "session_id\x18\x01 \x01(\tR\tsessionId\x12\x16\n" + "\x06status\x18\x02 \x01(\tR\x06status\x12\x14\n" + - "\x05error\x18\x03 \x01(\tR\x05error\"s\n" + + "\x05error\x18\x03 \x01(\tR\x05error\"\xd0\x01\n" + "\x13AskInSessionRequest\x12\x1d\n" + "\n" + "session_id\x18\x01 \x01(\tR\tsessionId\x12\x12\n" + "\x04text\x18\x02 \x01(\tR\x04text\x12)\n" + - "\x10enable_reasoning\x18\x03 \x01(\bR\x0fenableReasoning\"\xcc\x01\n" + + "\x10enable_reasoning\x18\x03 \x01(\bR\x0fenableReasoning\x12$\n" + + "\x0eglobal_user_id\x18\x04 \x01(\x03R\fglobalUserId\x125\n" + + "\aoptions\x18\x05 \x01(\v2\x1b.ai.AnswerGenerationOptionsR\aoptions\"\xcc\x01\n" + "\x15SessionStatusResponse\x12\x1d\n" + "\n" + "session_id\x18\x01 \x01(\tR\tsessionId\x12\x16\n" + @@ -670,19 +688,20 @@ var file_ai_proto_goTypes = []any{ } var file_ai_proto_depIdxs = []int32{ 1, // 0: ai.AIRequest.options:type_name -> ai.AnswerGenerationOptions - 0, // 1: ai.AIService.GenerateAnswer:input_type -> ai.AIRequest - 7, // 2: ai.AIService.HealthCheck:input_type -> ai.HealthCheckRequest - 3, // 3: ai.AIService.CreateSession:input_type -> ai.CreateSessionRequest - 5, // 4: ai.AIService.AskInSession:input_type -> ai.AskInSessionRequest - 2, // 5: ai.AIService.GenerateAnswer:output_type -> ai.AIResponse - 8, // 6: ai.AIService.HealthCheck:output_type -> ai.HealthCheckResponse - 4, // 7: ai.AIService.CreateSession:output_type -> ai.CreateSessionResponse - 6, // 8: ai.AIService.AskInSession:output_type -> ai.SessionStatusResponse - 5, // [5:9] is the sub-list for method output_type - 1, // [1:5] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name + 1, // 1: ai.AskInSessionRequest.options:type_name -> ai.AnswerGenerationOptions + 0, // 2: ai.AIService.GenerateAnswer:input_type -> ai.AIRequest + 7, // 3: ai.AIService.HealthCheck:input_type -> ai.HealthCheckRequest + 3, // 4: ai.AIService.CreateSession:input_type -> ai.CreateSessionRequest + 5, // 5: ai.AIService.AskInSession:input_type -> ai.AskInSessionRequest + 2, // 6: ai.AIService.GenerateAnswer:output_type -> ai.AIResponse + 8, // 7: ai.AIService.HealthCheck:output_type -> ai.HealthCheckResponse + 4, // 8: ai.AIService.CreateSession:output_type -> ai.CreateSessionResponse + 6, // 9: ai.AIService.AskInSession:output_type -> ai.SessionStatusResponse + 6, // [6:10] is the sub-list for method output_type + 2, // [2:6] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name } func init() { file_ai_proto_init() } diff --git a/ai.proto b/ai.proto index 4598b93..d258947 100644 --- a/ai.proto +++ b/ai.proto @@ -47,6 +47,8 @@ message AskInSessionRequest { string session_id = 1; // ID сессии string text = 2; // Текст запроса bool enable_reasoning = 3; // Включить режим рассуждений (по умолчанию false) + int64 global_user_id = 4; // Global user ID для получения воспоминаний + AnswerGenerationOptions options = 5; // Дополнительные опции генерации } // SessionStatusResponse содержит статус сессии и ответ AI