1859 lines
59 KiB
Go
1859 lines
59 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.11
|
||
// protoc v7.34.0
|
||
// source: memory.proto
|
||
|
||
package proto
|
||
|
||
import (
|
||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
reflect "reflect"
|
||
sync "sync"
|
||
unsafe "unsafe"
|
||
)
|
||
|
||
const (
|
||
// Verify that this generated code is sufficiently up-to-date.
|
||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
)
|
||
|
||
// Memory представляет воспоминание о пользователе
|
||
type Memory struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
|
||
Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` // Уникальный ключ факта
|
||
Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` // Значение факта
|
||
Category string `protobuf:"bytes,6,opt,name=category,proto3" json:"category,omitempty"` // preference, fact, personality, relationship
|
||
Priority string `protobuf:"bytes,7,opt,name=priority,proto3" json:"priority,omitempty"` // core, normal
|
||
Confidence float64 `protobuf:"fixed64,8,opt,name=confidence,proto3" json:"confidence,omitempty"` // 0.0 - 1.0
|
||
Tags []string `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty"`
|
||
Source string `protobuf:"bytes,10,opt,name=source,proto3" json:"source,omitempty"`
|
||
CreatedAt int64 `protobuf:"varint,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
||
UpdatedAt int64 `protobuf:"varint,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *Memory) Reset() {
|
||
*x = Memory{}
|
||
mi := &file_memory_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *Memory) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Memory) ProtoMessage() {}
|
||
|
||
func (x *Memory) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[0]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use Memory.ProtoReflect.Descriptor instead.
|
||
func (*Memory) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *Memory) GetId() int64 {
|
||
if x != nil {
|
||
return x.Id
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Memory) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Memory) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Memory) GetKey() string {
|
||
if x != nil {
|
||
return x.Key
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Memory) GetValue() string {
|
||
if x != nil {
|
||
return x.Value
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Memory) GetCategory() string {
|
||
if x != nil {
|
||
return x.Category
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Memory) GetPriority() string {
|
||
if x != nil {
|
||
return x.Priority
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Memory) GetConfidence() float64 {
|
||
if x != nil {
|
||
return x.Confidence
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Memory) GetTags() []string {
|
||
if x != nil {
|
||
return x.Tags
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *Memory) GetSource() string {
|
||
if x != nil {
|
||
return x.Source
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Memory) GetCreatedAt() int64 {
|
||
if x != nil {
|
||
return x.CreatedAt
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Memory) GetUpdatedAt() int64 {
|
||
if x != nil {
|
||
return x.UpdatedAt
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// StoreMemoryRequest запрос на сохранение воспоминания
|
||
type StoreMemoryRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
||
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
||
Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
|
||
Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
|
||
Category string `protobuf:"bytes,6,opt,name=category,proto3" json:"category,omitempty"`
|
||
Priority string `protobuf:"bytes,7,opt,name=priority,proto3" json:"priority,omitempty"`
|
||
Confidence float64 `protobuf:"fixed64,8,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||
Tags []string `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty"`
|
||
Source string `protobuf:"bytes,10,opt,name=source,proto3" json:"source,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *StoreMemoryRequest) Reset() {
|
||
*x = StoreMemoryRequest{}
|
||
mi := &file_memory_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *StoreMemoryRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*StoreMemoryRequest) ProtoMessage() {}
|
||
|
||
func (x *StoreMemoryRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[1]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use StoreMemoryRequest.ProtoReflect.Descriptor instead.
|
||
func (*StoreMemoryRequest) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *StoreMemoryRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *StoreMemoryRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *StoreMemoryRequest) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *StoreMemoryRequest) GetKey() string {
|
||
if x != nil {
|
||
return x.Key
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *StoreMemoryRequest) GetValue() string {
|
||
if x != nil {
|
||
return x.Value
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *StoreMemoryRequest) GetCategory() string {
|
||
if x != nil {
|
||
return x.Category
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *StoreMemoryRequest) GetPriority() string {
|
||
if x != nil {
|
||
return x.Priority
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *StoreMemoryRequest) GetConfidence() float64 {
|
||
if x != nil {
|
||
return x.Confidence
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *StoreMemoryRequest) GetTags() []string {
|
||
if x != nil {
|
||
return x.Tags
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *StoreMemoryRequest) GetSource() string {
|
||
if x != nil {
|
||
return x.Source
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// StoreMemoryResponse ответ на сохранение воспоминания
|
||
type StoreMemoryResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
||
MemoryId int64 `protobuf:"varint,3,opt,name=memory_id,json=memoryId,proto3" json:"memory_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *StoreMemoryResponse) Reset() {
|
||
*x = StoreMemoryResponse{}
|
||
mi := &file_memory_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *StoreMemoryResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*StoreMemoryResponse) ProtoMessage() {}
|
||
|
||
func (x *StoreMemoryResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[2]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use StoreMemoryResponse.ProtoReflect.Descriptor instead.
|
||
func (*StoreMemoryResponse) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *StoreMemoryResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *StoreMemoryResponse) GetError() string {
|
||
if x != nil {
|
||
return x.Error
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *StoreMemoryResponse) GetMemoryId() int64 {
|
||
if x != nil {
|
||
return x.MemoryId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// GetMemoriesRequest запрос на получение воспоминаний
|
||
type GetMemoriesRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
||
Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
|
||
SearchQuery string `protobuf:"bytes,4,opt,name=search_query,json=searchQuery,proto3" json:"search_query,omitempty"`
|
||
Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetMemoriesRequest) Reset() {
|
||
*x = GetMemoriesRequest{}
|
||
mi := &file_memory_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetMemoriesRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetMemoriesRequest) ProtoMessage() {}
|
||
|
||
func (x *GetMemoriesRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[3]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetMemoriesRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetMemoriesRequest) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *GetMemoriesRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetMemoriesRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetMemoriesRequest) GetTags() []string {
|
||
if x != nil {
|
||
return x.Tags
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GetMemoriesRequest) GetSearchQuery() string {
|
||
if x != nil {
|
||
return x.SearchQuery
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetMemoriesRequest) GetLimit() int32 {
|
||
if x != nil {
|
||
return x.Limit
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// GetMemoriesResponse ответ с воспоминаниями
|
||
type GetMemoriesResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Memories []*Memory `protobuf:"bytes,1,rep,name=memories,proto3" json:"memories,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetMemoriesResponse) Reset() {
|
||
*x = GetMemoriesResponse{}
|
||
mi := &file_memory_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetMemoriesResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetMemoriesResponse) ProtoMessage() {}
|
||
|
||
func (x *GetMemoriesResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[4]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetMemoriesResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetMemoriesResponse) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *GetMemoriesResponse) GetMemories() []*Memory {
|
||
if x != nil {
|
||
return x.Memories
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// ProcessMessageRequest запрос на обработку сообщения для извлечения фактов
|
||
type ProcessMessageRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
||
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
||
Context string `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ProcessMessageRequest) Reset() {
|
||
*x = ProcessMessageRequest{}
|
||
mi := &file_memory_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ProcessMessageRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ProcessMessageRequest) ProtoMessage() {}
|
||
|
||
func (x *ProcessMessageRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[5]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ProcessMessageRequest.ProtoReflect.Descriptor instead.
|
||
func (*ProcessMessageRequest) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
func (x *ProcessMessageRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ProcessMessageRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ProcessMessageRequest) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ProcessMessageRequest) GetContext() string {
|
||
if x != nil {
|
||
return x.Context
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// ProcessMessageResponse ответ с извлечёнными фактами
|
||
type ProcessMessageResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
||
FactsExtracted int32 `protobuf:"varint,3,opt,name=facts_extracted,json=factsExtracted,proto3" json:"facts_extracted,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ProcessMessageResponse) Reset() {
|
||
*x = ProcessMessageResponse{}
|
||
mi := &file_memory_proto_msgTypes[6]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ProcessMessageResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ProcessMessageResponse) ProtoMessage() {}
|
||
|
||
func (x *ProcessMessageResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[6]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ProcessMessageResponse.ProtoReflect.Descriptor instead.
|
||
func (*ProcessMessageResponse) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{6}
|
||
}
|
||
|
||
func (x *ProcessMessageResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *ProcessMessageResponse) GetError() string {
|
||
if x != nil {
|
||
return x.Error
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ProcessMessageResponse) GetFactsExtracted() int32 {
|
||
if x != nil {
|
||
return x.FactsExtracted
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// HealthCheckRequest для проверки здоровья сервиса
|
||
type HealthCheckRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *HealthCheckRequest) Reset() {
|
||
*x = HealthCheckRequest{}
|
||
mi := &file_memory_proto_msgTypes[7]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *HealthCheckRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*HealthCheckRequest) ProtoMessage() {}
|
||
|
||
func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[7]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.
|
||
func (*HealthCheckRequest) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{7}
|
||
}
|
||
|
||
// HealthCheckResponse для ответа на проверку здоровья
|
||
type HealthCheckResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Serving bool `protobuf:"varint,1,opt,name=serving,proto3" json:"serving,omitempty"`
|
||
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *HealthCheckResponse) Reset() {
|
||
*x = HealthCheckResponse{}
|
||
mi := &file_memory_proto_msgTypes[8]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *HealthCheckResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*HealthCheckResponse) ProtoMessage() {}
|
||
|
||
func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[8]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.
|
||
func (*HealthCheckResponse) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{8}
|
||
}
|
||
|
||
func (x *HealthCheckResponse) GetServing() bool {
|
||
if x != nil {
|
||
return x.Serving
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *HealthCheckResponse) GetVersion() string {
|
||
if x != nil {
|
||
return x.Version
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// GetRelevantMemoriesRequest запрос на получение релевантных воспоминаний
|
||
type GetRelevantMemoriesRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
||
CurrentMessage string `protobuf:"bytes,3,opt,name=current_message,json=currentMessage,proto3" json:"current_message,omitempty"` // Для генерации тегов
|
||
Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetRelevantMemoriesRequest) Reset() {
|
||
*x = GetRelevantMemoriesRequest{}
|
||
mi := &file_memory_proto_msgTypes[9]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetRelevantMemoriesRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetRelevantMemoriesRequest) ProtoMessage() {}
|
||
|
||
func (x *GetRelevantMemoriesRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[9]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetRelevantMemoriesRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetRelevantMemoriesRequest) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{9}
|
||
}
|
||
|
||
func (x *GetRelevantMemoriesRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetRelevantMemoriesRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetRelevantMemoriesRequest) GetCurrentMessage() string {
|
||
if x != nil {
|
||
return x.CurrentMessage
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetRelevantMemoriesRequest) GetLimit() int32 {
|
||
if x != nil {
|
||
return x.Limit
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// GetRelevantMemoriesResponse ответ с релевантными воспоминаниями
|
||
type GetRelevantMemoriesResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Memories []*Memory `protobuf:"bytes,1,rep,name=memories,proto3" json:"memories,omitempty"`
|
||
FormattedPrompt string `protobuf:"bytes,2,opt,name=formatted_prompt,json=formattedPrompt,proto3" json:"formatted_prompt,omitempty"` // Готовый блок для вставки в промпт
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetRelevantMemoriesResponse) Reset() {
|
||
*x = GetRelevantMemoriesResponse{}
|
||
mi := &file_memory_proto_msgTypes[10]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetRelevantMemoriesResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetRelevantMemoriesResponse) ProtoMessage() {}
|
||
|
||
func (x *GetRelevantMemoriesResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[10]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetRelevantMemoriesResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetRelevantMemoriesResponse) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{10}
|
||
}
|
||
|
||
func (x *GetRelevantMemoriesResponse) GetMemories() []*Memory {
|
||
if x != nil {
|
||
return x.Memories
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GetRelevantMemoriesResponse) GetFormattedPrompt() string {
|
||
if x != nil {
|
||
return x.FormattedPrompt
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// GetMemoriesByUserRequest запрос на получение всех воспоминаний пользователя
|
||
type GetMemoriesByUserRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetMemoriesByUserRequest) Reset() {
|
||
*x = GetMemoriesByUserRequest{}
|
||
mi := &file_memory_proto_msgTypes[11]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetMemoriesByUserRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetMemoriesByUserRequest) ProtoMessage() {}
|
||
|
||
func (x *GetMemoriesByUserRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[11]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetMemoriesByUserRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetMemoriesByUserRequest) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{11}
|
||
}
|
||
|
||
func (x *GetMemoriesByUserRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetMemoriesByUserRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// GetMemoriesByUserResponse ответ с воспоминаниями пользователя
|
||
type GetMemoriesByUserResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Memories []*Memory `protobuf:"bytes,1,rep,name=memories,proto3" json:"memories,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetMemoriesByUserResponse) Reset() {
|
||
*x = GetMemoriesByUserResponse{}
|
||
mi := &file_memory_proto_msgTypes[12]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetMemoriesByUserResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetMemoriesByUserResponse) ProtoMessage() {}
|
||
|
||
func (x *GetMemoriesByUserResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[12]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetMemoriesByUserResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetMemoriesByUserResponse) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{12}
|
||
}
|
||
|
||
func (x *GetMemoriesByUserResponse) GetMemories() []*Memory {
|
||
if x != nil {
|
||
return x.Memories
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// BulkRefreshRequest запрос на массовую обработку сообщений
|
||
type BulkRefreshRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
||
Messages []string `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"` // Список сообщений для обработки
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *BulkRefreshRequest) Reset() {
|
||
*x = BulkRefreshRequest{}
|
||
mi := &file_memory_proto_msgTypes[13]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *BulkRefreshRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*BulkRefreshRequest) ProtoMessage() {}
|
||
|
||
func (x *BulkRefreshRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[13]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use BulkRefreshRequest.ProtoReflect.Descriptor instead.
|
||
func (*BulkRefreshRequest) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{13}
|
||
}
|
||
|
||
func (x *BulkRefreshRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *BulkRefreshRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *BulkRefreshRequest) GetMessages() []string {
|
||
if x != nil {
|
||
return x.Messages
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// BulkRefreshResponse ответ с результатами массовой обработки
|
||
type BulkRefreshResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
||
MessagesProcessed int32 `protobuf:"varint,3,opt,name=messages_processed,json=messagesProcessed,proto3" json:"messages_processed,omitempty"`
|
||
FactsExtracted int32 `protobuf:"varint,4,opt,name=facts_extracted,json=factsExtracted,proto3" json:"facts_extracted,omitempty"`
|
||
BatchCount int32 `protobuf:"varint,5,opt,name=batch_count,json=batchCount,proto3" json:"batch_count,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *BulkRefreshResponse) Reset() {
|
||
*x = BulkRefreshResponse{}
|
||
mi := &file_memory_proto_msgTypes[14]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *BulkRefreshResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*BulkRefreshResponse) ProtoMessage() {}
|
||
|
||
func (x *BulkRefreshResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[14]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use BulkRefreshResponse.ProtoReflect.Descriptor instead.
|
||
func (*BulkRefreshResponse) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{14}
|
||
}
|
||
|
||
func (x *BulkRefreshResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *BulkRefreshResponse) GetError() string {
|
||
if x != nil {
|
||
return x.Error
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *BulkRefreshResponse) GetMessagesProcessed() int32 {
|
||
if x != nil {
|
||
return x.MessagesProcessed
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *BulkRefreshResponse) GetFactsExtracted() int32 {
|
||
if x != nil {
|
||
return x.FactsExtracted
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *BulkRefreshResponse) GetBatchCount() int32 {
|
||
if x != nil {
|
||
return x.BatchCount
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// DeleteMemoryRequest запрос на удаление воспоминания
|
||
type DeleteMemoryRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
MemoryId int64 `protobuf:"varint,1,opt,name=memory_id,json=memoryId,proto3" json:"memory_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DeleteMemoryRequest) Reset() {
|
||
*x = DeleteMemoryRequest{}
|
||
mi := &file_memory_proto_msgTypes[15]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeleteMemoryRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeleteMemoryRequest) ProtoMessage() {}
|
||
|
||
func (x *DeleteMemoryRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[15]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DeleteMemoryRequest.ProtoReflect.Descriptor instead.
|
||
func (*DeleteMemoryRequest) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{15}
|
||
}
|
||
|
||
func (x *DeleteMemoryRequest) GetMemoryId() int64 {
|
||
if x != nil {
|
||
return x.MemoryId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// DeleteMemoryResponse ответ на удаление воспоминания
|
||
type DeleteMemoryResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DeleteMemoryResponse) Reset() {
|
||
*x = DeleteMemoryResponse{}
|
||
mi := &file_memory_proto_msgTypes[16]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeleteMemoryResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeleteMemoryResponse) ProtoMessage() {}
|
||
|
||
func (x *DeleteMemoryResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[16]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DeleteMemoryResponse.ProtoReflect.Descriptor instead.
|
||
func (*DeleteMemoryResponse) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{16}
|
||
}
|
||
|
||
func (x *DeleteMemoryResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *DeleteMemoryResponse) GetError() string {
|
||
if x != nil {
|
||
return x.Error
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// GetMemoriesForReviewRequest запрос воспоминаний для опроса-проверки.
|
||
// Возвращает воспоминания с наименьшим confidence, которые давно не проверялись,
|
||
// и сразу помечает их как отправленные на проверку (last_polled_at).
|
||
type GetMemoriesForReviewRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
|
||
CooldownDays int32 `protobuf:"varint,2,opt,name=cooldown_days,json=cooldownDays,proto3" json:"cooldown_days,omitempty"` // Не возвращать воспоминания, проверенные менее N дней назад (по умолчанию 14)
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetMemoriesForReviewRequest) Reset() {
|
||
*x = GetMemoriesForReviewRequest{}
|
||
mi := &file_memory_proto_msgTypes[17]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetMemoriesForReviewRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetMemoriesForReviewRequest) ProtoMessage() {}
|
||
|
||
func (x *GetMemoriesForReviewRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[17]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetMemoriesForReviewRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetMemoriesForReviewRequest) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{17}
|
||
}
|
||
|
||
func (x *GetMemoriesForReviewRequest) GetLimit() int32 {
|
||
if x != nil {
|
||
return x.Limit
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetMemoriesForReviewRequest) GetCooldownDays() int32 {
|
||
if x != nil {
|
||
return x.CooldownDays
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// GetMemoriesForReviewResponse ответ с воспоминаниями для проверки
|
||
type GetMemoriesForReviewResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Memories []*Memory `protobuf:"bytes,1,rep,name=memories,proto3" json:"memories,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetMemoriesForReviewResponse) Reset() {
|
||
*x = GetMemoriesForReviewResponse{}
|
||
mi := &file_memory_proto_msgTypes[18]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetMemoriesForReviewResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetMemoriesForReviewResponse) ProtoMessage() {}
|
||
|
||
func (x *GetMemoriesForReviewResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[18]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetMemoriesForReviewResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetMemoriesForReviewResponse) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{18}
|
||
}
|
||
|
||
func (x *GetMemoriesForReviewResponse) GetMemories() []*Memory {
|
||
if x != nil {
|
||
return x.Memories
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// MemoryPoll представляет отправленный в чат опрос-проверку памяти
|
||
type MemoryPoll struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||
ChatId int64 `protobuf:"varint,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
||
MessageId int64 `protobuf:"varint,3,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
||
MemoryIds []int64 `protobuf:"varint,4,rep,packed,name=memory_ids,json=memoryIds,proto3" json:"memory_ids,omitempty"` // Порядок соответствует вариантам опроса
|
||
EvaluateAfter int64 `protobuf:"varint,5,opt,name=evaluate_after,json=evaluateAfter,proto3" json:"evaluate_after,omitempty"` // Unix time, когда пора подводить итоги
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *MemoryPoll) Reset() {
|
||
*x = MemoryPoll{}
|
||
mi := &file_memory_proto_msgTypes[19]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *MemoryPoll) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*MemoryPoll) ProtoMessage() {}
|
||
|
||
func (x *MemoryPoll) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[19]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use MemoryPoll.ProtoReflect.Descriptor instead.
|
||
func (*MemoryPoll) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{19}
|
||
}
|
||
|
||
func (x *MemoryPoll) GetId() int64 {
|
||
if x != nil {
|
||
return x.Id
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *MemoryPoll) GetChatId() int64 {
|
||
if x != nil {
|
||
return x.ChatId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *MemoryPoll) GetMessageId() int64 {
|
||
if x != nil {
|
||
return x.MessageId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *MemoryPoll) GetMemoryIds() []int64 {
|
||
if x != nil {
|
||
return x.MemoryIds
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *MemoryPoll) GetEvaluateAfter() int64 {
|
||
if x != nil {
|
||
return x.EvaluateAfter
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// RegisterMemoryPollRequest запрос на регистрацию отправленного опроса
|
||
type RegisterMemoryPollRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
ChatId int64 `protobuf:"varint,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
||
MessageId int64 `protobuf:"varint,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
||
MemoryIds []int64 `protobuf:"varint,3,rep,packed,name=memory_ids,json=memoryIds,proto3" json:"memory_ids,omitempty"`
|
||
EvaluateAfter int64 `protobuf:"varint,4,opt,name=evaluate_after,json=evaluateAfter,proto3" json:"evaluate_after,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RegisterMemoryPollRequest) Reset() {
|
||
*x = RegisterMemoryPollRequest{}
|
||
mi := &file_memory_proto_msgTypes[20]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RegisterMemoryPollRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RegisterMemoryPollRequest) ProtoMessage() {}
|
||
|
||
func (x *RegisterMemoryPollRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[20]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use RegisterMemoryPollRequest.ProtoReflect.Descriptor instead.
|
||
func (*RegisterMemoryPollRequest) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{20}
|
||
}
|
||
|
||
func (x *RegisterMemoryPollRequest) GetChatId() int64 {
|
||
if x != nil {
|
||
return x.ChatId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RegisterMemoryPollRequest) GetMessageId() int64 {
|
||
if x != nil {
|
||
return x.MessageId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RegisterMemoryPollRequest) GetMemoryIds() []int64 {
|
||
if x != nil {
|
||
return x.MemoryIds
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *RegisterMemoryPollRequest) GetEvaluateAfter() int64 {
|
||
if x != nil {
|
||
return x.EvaluateAfter
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// RegisterMemoryPollResponse ответ на регистрацию опроса
|
||
type RegisterMemoryPollResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
||
PollId int64 `protobuf:"varint,3,opt,name=poll_id,json=pollId,proto3" json:"poll_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RegisterMemoryPollResponse) Reset() {
|
||
*x = RegisterMemoryPollResponse{}
|
||
mi := &file_memory_proto_msgTypes[21]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RegisterMemoryPollResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RegisterMemoryPollResponse) ProtoMessage() {}
|
||
|
||
func (x *RegisterMemoryPollResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[21]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use RegisterMemoryPollResponse.ProtoReflect.Descriptor instead.
|
||
func (*RegisterMemoryPollResponse) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{21}
|
||
}
|
||
|
||
func (x *RegisterMemoryPollResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *RegisterMemoryPollResponse) GetError() string {
|
||
if x != nil {
|
||
return x.Error
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RegisterMemoryPollResponse) GetPollId() int64 {
|
||
if x != nil {
|
||
return x.PollId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// ListPendingMemoryPollsRequest запрос незавершённых опросов
|
||
type ListPendingMemoryPollsRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListPendingMemoryPollsRequest) Reset() {
|
||
*x = ListPendingMemoryPollsRequest{}
|
||
mi := &file_memory_proto_msgTypes[22]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListPendingMemoryPollsRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListPendingMemoryPollsRequest) ProtoMessage() {}
|
||
|
||
func (x *ListPendingMemoryPollsRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[22]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ListPendingMemoryPollsRequest.ProtoReflect.Descriptor instead.
|
||
func (*ListPendingMemoryPollsRequest) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{22}
|
||
}
|
||
|
||
// ListPendingMemoryPollsResponse ответ с незавершёнными опросами
|
||
type ListPendingMemoryPollsResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Polls []*MemoryPoll `protobuf:"bytes,1,rep,name=polls,proto3" json:"polls,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListPendingMemoryPollsResponse) Reset() {
|
||
*x = ListPendingMemoryPollsResponse{}
|
||
mi := &file_memory_proto_msgTypes[23]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListPendingMemoryPollsResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListPendingMemoryPollsResponse) ProtoMessage() {}
|
||
|
||
func (x *ListPendingMemoryPollsResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[23]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ListPendingMemoryPollsResponse.ProtoReflect.Descriptor instead.
|
||
func (*ListPendingMemoryPollsResponse) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{23}
|
||
}
|
||
|
||
func (x *ListPendingMemoryPollsResponse) GetPolls() []*MemoryPoll {
|
||
if x != nil {
|
||
return x.Polls
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// CompleteMemoryPollRequest запрос на завершение опроса
|
||
type CompleteMemoryPollRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
PollId int64 `protobuf:"varint,1,opt,name=poll_id,json=pollId,proto3" json:"poll_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CompleteMemoryPollRequest) Reset() {
|
||
*x = CompleteMemoryPollRequest{}
|
||
mi := &file_memory_proto_msgTypes[24]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CompleteMemoryPollRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CompleteMemoryPollRequest) ProtoMessage() {}
|
||
|
||
func (x *CompleteMemoryPollRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[24]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CompleteMemoryPollRequest.ProtoReflect.Descriptor instead.
|
||
func (*CompleteMemoryPollRequest) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{24}
|
||
}
|
||
|
||
func (x *CompleteMemoryPollRequest) GetPollId() int64 {
|
||
if x != nil {
|
||
return x.PollId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// CompleteMemoryPollResponse ответ на завершение опроса
|
||
type CompleteMemoryPollResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CompleteMemoryPollResponse) Reset() {
|
||
*x = CompleteMemoryPollResponse{}
|
||
mi := &file_memory_proto_msgTypes[25]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CompleteMemoryPollResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CompleteMemoryPollResponse) ProtoMessage() {}
|
||
|
||
func (x *CompleteMemoryPollResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_memory_proto_msgTypes[25]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CompleteMemoryPollResponse.ProtoReflect.Descriptor instead.
|
||
func (*CompleteMemoryPollResponse) Descriptor() ([]byte, []int) {
|
||
return file_memory_proto_rawDescGZIP(), []int{25}
|
||
}
|
||
|
||
func (x *CompleteMemoryPollResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *CompleteMemoryPollResponse) GetError() string {
|
||
if x != nil {
|
||
return x.Error
|
||
}
|
||
return ""
|
||
}
|
||
|
||
var File_memory_proto protoreflect.FileDescriptor
|
||
|
||
const file_memory_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\fmemory.proto\x12\x06memory\"\xb7\x02\n" +
|
||
"\x06Memory\x12\x0e\n" +
|
||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x17\n" +
|
||
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x1a\n" +
|
||
"\busername\x18\x03 \x01(\tR\busername\x12\x10\n" +
|
||
"\x03key\x18\x04 \x01(\tR\x03key\x12\x14\n" +
|
||
"\x05value\x18\x05 \x01(\tR\x05value\x12\x1a\n" +
|
||
"\bcategory\x18\x06 \x01(\tR\bcategory\x12\x1a\n" +
|
||
"\bpriority\x18\a \x01(\tR\bpriority\x12\x1e\n" +
|
||
"\n" +
|
||
"confidence\x18\b \x01(\x01R\n" +
|
||
"confidence\x12\x12\n" +
|
||
"\x04tags\x18\t \x03(\tR\x04tags\x12\x16\n" +
|
||
"\x06source\x18\n" +
|
||
" \x01(\tR\x06source\x12\x1d\n" +
|
||
"\n" +
|
||
"created_at\x18\v \x01(\x03R\tcreatedAt\x12\x1d\n" +
|
||
"\n" +
|
||
"updated_at\x18\f \x01(\x03R\tupdatedAt\"\x8f\x02\n" +
|
||
"\x12StoreMemoryRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x1a\n" +
|
||
"\busername\x18\x02 \x01(\tR\busername\x12\x18\n" +
|
||
"\amessage\x18\x03 \x01(\tR\amessage\x12\x10\n" +
|
||
"\x03key\x18\x04 \x01(\tR\x03key\x12\x14\n" +
|
||
"\x05value\x18\x05 \x01(\tR\x05value\x12\x1a\n" +
|
||
"\bcategory\x18\x06 \x01(\tR\bcategory\x12\x1a\n" +
|
||
"\bpriority\x18\a \x01(\tR\bpriority\x12\x1e\n" +
|
||
"\n" +
|
||
"confidence\x18\b \x01(\x01R\n" +
|
||
"confidence\x12\x12\n" +
|
||
"\x04tags\x18\t \x03(\tR\x04tags\x12\x16\n" +
|
||
"\x06source\x18\n" +
|
||
" \x01(\tR\x06source\"b\n" +
|
||
"\x13StoreMemoryResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x14\n" +
|
||
"\x05error\x18\x02 \x01(\tR\x05error\x12\x1b\n" +
|
||
"\tmemory_id\x18\x03 \x01(\x03R\bmemoryId\"\x96\x01\n" +
|
||
"\x12GetMemoriesRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x1a\n" +
|
||
"\busername\x18\x02 \x01(\tR\busername\x12\x12\n" +
|
||
"\x04tags\x18\x03 \x03(\tR\x04tags\x12!\n" +
|
||
"\fsearch_query\x18\x04 \x01(\tR\vsearchQuery\x12\x14\n" +
|
||
"\x05limit\x18\x05 \x01(\x05R\x05limit\"A\n" +
|
||
"\x13GetMemoriesResponse\x12*\n" +
|
||
"\bmemories\x18\x01 \x03(\v2\x0e.memory.MemoryR\bmemories\"\x80\x01\n" +
|
||
"\x15ProcessMessageRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x1a\n" +
|
||
"\busername\x18\x02 \x01(\tR\busername\x12\x18\n" +
|
||
"\amessage\x18\x03 \x01(\tR\amessage\x12\x18\n" +
|
||
"\acontext\x18\x04 \x01(\tR\acontext\"q\n" +
|
||
"\x16ProcessMessageResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x14\n" +
|
||
"\x05error\x18\x02 \x01(\tR\x05error\x12'\n" +
|
||
"\x0ffacts_extracted\x18\x03 \x01(\x05R\x0efactsExtracted\"\x14\n" +
|
||
"\x12HealthCheckRequest\"I\n" +
|
||
"\x13HealthCheckResponse\x12\x18\n" +
|
||
"\aserving\x18\x01 \x01(\bR\aserving\x12\x18\n" +
|
||
"\aversion\x18\x02 \x01(\tR\aversion\"\x90\x01\n" +
|
||
"\x1aGetRelevantMemoriesRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x1a\n" +
|
||
"\busername\x18\x02 \x01(\tR\busername\x12'\n" +
|
||
"\x0fcurrent_message\x18\x03 \x01(\tR\x0ecurrentMessage\x12\x14\n" +
|
||
"\x05limit\x18\x04 \x01(\x05R\x05limit\"t\n" +
|
||
"\x1bGetRelevantMemoriesResponse\x12*\n" +
|
||
"\bmemories\x18\x01 \x03(\v2\x0e.memory.MemoryR\bmemories\x12)\n" +
|
||
"\x10formatted_prompt\x18\x02 \x01(\tR\x0fformattedPrompt\"O\n" +
|
||
"\x18GetMemoriesByUserRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x1a\n" +
|
||
"\busername\x18\x02 \x01(\tR\busername\"G\n" +
|
||
"\x19GetMemoriesByUserResponse\x12*\n" +
|
||
"\bmemories\x18\x01 \x03(\v2\x0e.memory.MemoryR\bmemories\"e\n" +
|
||
"\x12BulkRefreshRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x1a\n" +
|
||
"\busername\x18\x02 \x01(\tR\busername\x12\x1a\n" +
|
||
"\bmessages\x18\x03 \x03(\tR\bmessages\"\xbe\x01\n" +
|
||
"\x13BulkRefreshResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x14\n" +
|
||
"\x05error\x18\x02 \x01(\tR\x05error\x12-\n" +
|
||
"\x12messages_processed\x18\x03 \x01(\x05R\x11messagesProcessed\x12'\n" +
|
||
"\x0ffacts_extracted\x18\x04 \x01(\x05R\x0efactsExtracted\x12\x1f\n" +
|
||
"\vbatch_count\x18\x05 \x01(\x05R\n" +
|
||
"batchCount\"2\n" +
|
||
"\x13DeleteMemoryRequest\x12\x1b\n" +
|
||
"\tmemory_id\x18\x01 \x01(\x03R\bmemoryId\"F\n" +
|
||
"\x14DeleteMemoryResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x14\n" +
|
||
"\x05error\x18\x02 \x01(\tR\x05error\"X\n" +
|
||
"\x1bGetMemoriesForReviewRequest\x12\x14\n" +
|
||
"\x05limit\x18\x01 \x01(\x05R\x05limit\x12#\n" +
|
||
"\rcooldown_days\x18\x02 \x01(\x05R\fcooldownDays\"J\n" +
|
||
"\x1cGetMemoriesForReviewResponse\x12*\n" +
|
||
"\bmemories\x18\x01 \x03(\v2\x0e.memory.MemoryR\bmemories\"\x9a\x01\n" +
|
||
"\n" +
|
||
"MemoryPoll\x12\x0e\n" +
|
||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x17\n" +
|
||
"\achat_id\x18\x02 \x01(\x03R\x06chatId\x12\x1d\n" +
|
||
"\n" +
|
||
"message_id\x18\x03 \x01(\x03R\tmessageId\x12\x1d\n" +
|
||
"\n" +
|
||
"memory_ids\x18\x04 \x03(\x03R\tmemoryIds\x12%\n" +
|
||
"\x0eevaluate_after\x18\x05 \x01(\x03R\revaluateAfter\"\x99\x01\n" +
|
||
"\x19RegisterMemoryPollRequest\x12\x17\n" +
|
||
"\achat_id\x18\x01 \x01(\x03R\x06chatId\x12\x1d\n" +
|
||
"\n" +
|
||
"message_id\x18\x02 \x01(\x03R\tmessageId\x12\x1d\n" +
|
||
"\n" +
|
||
"memory_ids\x18\x03 \x03(\x03R\tmemoryIds\x12%\n" +
|
||
"\x0eevaluate_after\x18\x04 \x01(\x03R\revaluateAfter\"e\n" +
|
||
"\x1aRegisterMemoryPollResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x14\n" +
|
||
"\x05error\x18\x02 \x01(\tR\x05error\x12\x17\n" +
|
||
"\apoll_id\x18\x03 \x01(\x03R\x06pollId\"\x1f\n" +
|
||
"\x1dListPendingMemoryPollsRequest\"J\n" +
|
||
"\x1eListPendingMemoryPollsResponse\x12(\n" +
|
||
"\x05polls\x18\x01 \x03(\v2\x12.memory.MemoryPollR\x05polls\"4\n" +
|
||
"\x19CompleteMemoryPollRequest\x12\x17\n" +
|
||
"\apoll_id\x18\x01 \x01(\x03R\x06pollId\"L\n" +
|
||
"\x1aCompleteMemoryPollResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x14\n" +
|
||
"\x05error\x18\x02 \x01(\tR\x05error2\x8b\b\n" +
|
||
"\rMemoryService\x12F\n" +
|
||
"\vStoreMemory\x12\x1a.memory.StoreMemoryRequest\x1a\x1b.memory.StoreMemoryResponse\x12F\n" +
|
||
"\vGetMemories\x12\x1a.memory.GetMemoriesRequest\x1a\x1b.memory.GetMemoriesResponse\x12O\n" +
|
||
"\x0eProcessMessage\x12\x1d.memory.ProcessMessageRequest\x1a\x1e.memory.ProcessMessageResponse\x12^\n" +
|
||
"\x13GetRelevantMemories\x12\".memory.GetRelevantMemoriesRequest\x1a#.memory.GetRelevantMemoriesResponse\x12X\n" +
|
||
"\x11GetMemoriesByUser\x12 .memory.GetMemoriesByUserRequest\x1a!.memory.GetMemoriesByUserResponse\x12F\n" +
|
||
"\vBulkRefresh\x12\x1a.memory.BulkRefreshRequest\x1a\x1b.memory.BulkRefreshResponse\x12I\n" +
|
||
"\fDeleteMemory\x12\x1b.memory.DeleteMemoryRequest\x1a\x1c.memory.DeleteMemoryResponse\x12a\n" +
|
||
"\x14GetMemoriesForReview\x12#.memory.GetMemoriesForReviewRequest\x1a$.memory.GetMemoriesForReviewResponse\x12[\n" +
|
||
"\x12RegisterMemoryPoll\x12!.memory.RegisterMemoryPollRequest\x1a\".memory.RegisterMemoryPollResponse\x12g\n" +
|
||
"\x16ListPendingMemoryPolls\x12%.memory.ListPendingMemoryPollsRequest\x1a&.memory.ListPendingMemoryPollsResponse\x12[\n" +
|
||
"\x12CompleteMemoryPoll\x12!.memory.CompleteMemoryPollRequest\x1a\".memory.CompleteMemoryPollResponse\x12F\n" +
|
||
"\vHealthCheck\x12\x1a.memory.HealthCheckRequest\x1a\x1b.memory.HealthCheckResponseB*Z(git.be.kaien.ru/l-ai/l-ai-memories/protob\x06proto3"
|
||
|
||
var (
|
||
file_memory_proto_rawDescOnce sync.Once
|
||
file_memory_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_memory_proto_rawDescGZIP() []byte {
|
||
file_memory_proto_rawDescOnce.Do(func() {
|
||
file_memory_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_memory_proto_rawDesc), len(file_memory_proto_rawDesc)))
|
||
})
|
||
return file_memory_proto_rawDescData
|
||
}
|
||
|
||
var file_memory_proto_msgTypes = make([]protoimpl.MessageInfo, 26)
|
||
var file_memory_proto_goTypes = []any{
|
||
(*Memory)(nil), // 0: memory.Memory
|
||
(*StoreMemoryRequest)(nil), // 1: memory.StoreMemoryRequest
|
||
(*StoreMemoryResponse)(nil), // 2: memory.StoreMemoryResponse
|
||
(*GetMemoriesRequest)(nil), // 3: memory.GetMemoriesRequest
|
||
(*GetMemoriesResponse)(nil), // 4: memory.GetMemoriesResponse
|
||
(*ProcessMessageRequest)(nil), // 5: memory.ProcessMessageRequest
|
||
(*ProcessMessageResponse)(nil), // 6: memory.ProcessMessageResponse
|
||
(*HealthCheckRequest)(nil), // 7: memory.HealthCheckRequest
|
||
(*HealthCheckResponse)(nil), // 8: memory.HealthCheckResponse
|
||
(*GetRelevantMemoriesRequest)(nil), // 9: memory.GetRelevantMemoriesRequest
|
||
(*GetRelevantMemoriesResponse)(nil), // 10: memory.GetRelevantMemoriesResponse
|
||
(*GetMemoriesByUserRequest)(nil), // 11: memory.GetMemoriesByUserRequest
|
||
(*GetMemoriesByUserResponse)(nil), // 12: memory.GetMemoriesByUserResponse
|
||
(*BulkRefreshRequest)(nil), // 13: memory.BulkRefreshRequest
|
||
(*BulkRefreshResponse)(nil), // 14: memory.BulkRefreshResponse
|
||
(*DeleteMemoryRequest)(nil), // 15: memory.DeleteMemoryRequest
|
||
(*DeleteMemoryResponse)(nil), // 16: memory.DeleteMemoryResponse
|
||
(*GetMemoriesForReviewRequest)(nil), // 17: memory.GetMemoriesForReviewRequest
|
||
(*GetMemoriesForReviewResponse)(nil), // 18: memory.GetMemoriesForReviewResponse
|
||
(*MemoryPoll)(nil), // 19: memory.MemoryPoll
|
||
(*RegisterMemoryPollRequest)(nil), // 20: memory.RegisterMemoryPollRequest
|
||
(*RegisterMemoryPollResponse)(nil), // 21: memory.RegisterMemoryPollResponse
|
||
(*ListPendingMemoryPollsRequest)(nil), // 22: memory.ListPendingMemoryPollsRequest
|
||
(*ListPendingMemoryPollsResponse)(nil), // 23: memory.ListPendingMemoryPollsResponse
|
||
(*CompleteMemoryPollRequest)(nil), // 24: memory.CompleteMemoryPollRequest
|
||
(*CompleteMemoryPollResponse)(nil), // 25: memory.CompleteMemoryPollResponse
|
||
}
|
||
var file_memory_proto_depIdxs = []int32{
|
||
0, // 0: memory.GetMemoriesResponse.memories:type_name -> memory.Memory
|
||
0, // 1: memory.GetRelevantMemoriesResponse.memories:type_name -> memory.Memory
|
||
0, // 2: memory.GetMemoriesByUserResponse.memories:type_name -> memory.Memory
|
||
0, // 3: memory.GetMemoriesForReviewResponse.memories:type_name -> memory.Memory
|
||
19, // 4: memory.ListPendingMemoryPollsResponse.polls:type_name -> memory.MemoryPoll
|
||
1, // 5: memory.MemoryService.StoreMemory:input_type -> memory.StoreMemoryRequest
|
||
3, // 6: memory.MemoryService.GetMemories:input_type -> memory.GetMemoriesRequest
|
||
5, // 7: memory.MemoryService.ProcessMessage:input_type -> memory.ProcessMessageRequest
|
||
9, // 8: memory.MemoryService.GetRelevantMemories:input_type -> memory.GetRelevantMemoriesRequest
|
||
11, // 9: memory.MemoryService.GetMemoriesByUser:input_type -> memory.GetMemoriesByUserRequest
|
||
13, // 10: memory.MemoryService.BulkRefresh:input_type -> memory.BulkRefreshRequest
|
||
15, // 11: memory.MemoryService.DeleteMemory:input_type -> memory.DeleteMemoryRequest
|
||
17, // 12: memory.MemoryService.GetMemoriesForReview:input_type -> memory.GetMemoriesForReviewRequest
|
||
20, // 13: memory.MemoryService.RegisterMemoryPoll:input_type -> memory.RegisterMemoryPollRequest
|
||
22, // 14: memory.MemoryService.ListPendingMemoryPolls:input_type -> memory.ListPendingMemoryPollsRequest
|
||
24, // 15: memory.MemoryService.CompleteMemoryPoll:input_type -> memory.CompleteMemoryPollRequest
|
||
7, // 16: memory.MemoryService.HealthCheck:input_type -> memory.HealthCheckRequest
|
||
2, // 17: memory.MemoryService.StoreMemory:output_type -> memory.StoreMemoryResponse
|
||
4, // 18: memory.MemoryService.GetMemories:output_type -> memory.GetMemoriesResponse
|
||
6, // 19: memory.MemoryService.ProcessMessage:output_type -> memory.ProcessMessageResponse
|
||
10, // 20: memory.MemoryService.GetRelevantMemories:output_type -> memory.GetRelevantMemoriesResponse
|
||
12, // 21: memory.MemoryService.GetMemoriesByUser:output_type -> memory.GetMemoriesByUserResponse
|
||
14, // 22: memory.MemoryService.BulkRefresh:output_type -> memory.BulkRefreshResponse
|
||
16, // 23: memory.MemoryService.DeleteMemory:output_type -> memory.DeleteMemoryResponse
|
||
18, // 24: memory.MemoryService.GetMemoriesForReview:output_type -> memory.GetMemoriesForReviewResponse
|
||
21, // 25: memory.MemoryService.RegisterMemoryPoll:output_type -> memory.RegisterMemoryPollResponse
|
||
23, // 26: memory.MemoryService.ListPendingMemoryPolls:output_type -> memory.ListPendingMemoryPollsResponse
|
||
25, // 27: memory.MemoryService.CompleteMemoryPoll:output_type -> memory.CompleteMemoryPollResponse
|
||
8, // 28: memory.MemoryService.HealthCheck:output_type -> memory.HealthCheckResponse
|
||
17, // [17:29] is the sub-list for method output_type
|
||
5, // [5:17] is the sub-list for method input_type
|
||
5, // [5:5] is the sub-list for extension type_name
|
||
5, // [5:5] is the sub-list for extension extendee
|
||
0, // [0:5] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_memory_proto_init() }
|
||
func file_memory_proto_init() {
|
||
if File_memory_proto != nil {
|
||
return
|
||
}
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_memory_proto_rawDesc), len(file_memory_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 26,
|
||
NumExtensions: 0,
|
||
NumServices: 1,
|
||
},
|
||
GoTypes: file_memory_proto_goTypes,
|
||
DependencyIndexes: file_memory_proto_depIdxs,
|
||
MessageInfos: file_memory_proto_msgTypes,
|
||
}.Build()
|
||
File_memory_proto = out.File
|
||
file_memory_proto_goTypes = nil
|
||
file_memory_proto_depIdxs = nil
|
||
}
|