assist

package
v0.0.0-...-055766a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 7

Documentation

Index

Constants

View Source
const (
	AssistService_CreateAssistantConversation_FullMethodName     = "/teleport.assist.v1.AssistService/CreateAssistantConversation"
	AssistService_GetAssistantConversations_FullMethodName       = "/teleport.assist.v1.AssistService/GetAssistantConversations"
	AssistService_DeleteAssistantConversation_FullMethodName     = "/teleport.assist.v1.AssistService/DeleteAssistantConversation"
	AssistService_GetAssistantMessages_FullMethodName            = "/teleport.assist.v1.AssistService/GetAssistantMessages"
	AssistService_CreateAssistantMessage_FullMethodName          = "/teleport.assist.v1.AssistService/CreateAssistantMessage"
	AssistService_UpdateAssistantConversationInfo_FullMethodName = "/teleport.assist.v1.AssistService/UpdateAssistantConversationInfo"
	AssistService_IsAssistEnabled_FullMethodName                 = "/teleport.assist.v1.AssistService/IsAssistEnabled"
	AssistService_SearchUnifiedResources_FullMethodName          = "/teleport.assist.v1.AssistService/SearchUnifiedResources"
)
View Source
const (
	AssistEmbeddingService_GetAssistantEmbeddings_FullMethodName = "/teleport.assist.v1.AssistEmbeddingService/GetAssistantEmbeddings"
)

Variables

View Source
var AssistEmbeddingService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "teleport.assist.v1.AssistEmbeddingService",
	HandlerType: (*AssistEmbeddingServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAssistantEmbeddings",
			Handler:    _AssistEmbeddingService_GetAssistantEmbeddings_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "teleport/assist/v1/assist.proto",
}

AssistEmbeddingService_ServiceDesc is the grpc.ServiceDesc for AssistEmbeddingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var AssistService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "teleport.assist.v1.AssistService",
	HandlerType: (*AssistServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateAssistantConversation",
			Handler:    _AssistService_CreateAssistantConversation_Handler,
		},
		{
			MethodName: "GetAssistantConversations",
			Handler:    _AssistService_GetAssistantConversations_Handler,
		},
		{
			MethodName: "DeleteAssistantConversation",
			Handler:    _AssistService_DeleteAssistantConversation_Handler,
		},
		{
			MethodName: "GetAssistantMessages",
			Handler:    _AssistService_GetAssistantMessages_Handler,
		},
		{
			MethodName: "CreateAssistantMessage",
			Handler:    _AssistService_CreateAssistantMessage_Handler,
		},
		{
			MethodName: "UpdateAssistantConversationInfo",
			Handler:    _AssistService_UpdateAssistantConversationInfo_Handler,
		},
		{
			MethodName: "IsAssistEnabled",
			Handler:    _AssistService_IsAssistEnabled_Handler,
		},
		{
			MethodName: "SearchUnifiedResources",
			Handler:    _AssistService_SearchUnifiedResources_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "teleport/assist/v1/assist.proto",
}

AssistService_ServiceDesc is the grpc.ServiceDesc for AssistService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_teleport_assist_v1_assist_proto protoreflect.FileDescriptor

Functions

func RegisterAssistEmbeddingServiceServer

func RegisterAssistEmbeddingServiceServer(s grpc.ServiceRegistrar, srv AssistEmbeddingServiceServer)

func RegisterAssistServiceServer

func RegisterAssistServiceServer(s grpc.ServiceRegistrar, srv AssistServiceServer)

Types

type AssistEmbeddingServiceClient

type AssistEmbeddingServiceClient interface {
	// AssistantGetEmbeddings returns the embeddings for the given query.
	GetAssistantEmbeddings(ctx context.Context, in *GetAssistantEmbeddingsRequest, opts ...grpc.CallOption) (*GetAssistantEmbeddingsResponse, error)
}

AssistEmbeddingServiceClient is the client API for AssistEmbeddingService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AssistEmbeddingServiceServer

type AssistEmbeddingServiceServer interface {
	// AssistantGetEmbeddings returns the embeddings for the given query.
	GetAssistantEmbeddings(context.Context, *GetAssistantEmbeddingsRequest) (*GetAssistantEmbeddingsResponse, error)
	// contains filtered or unexported methods
}

AssistEmbeddingServiceServer is the server API for AssistEmbeddingService service. All implementations must embed UnimplementedAssistEmbeddingServiceServer for forward compatibility

type AssistServiceClient

type AssistServiceClient interface {
	// CreateNewConversation creates a new conversation and returns the UUID of it.
	CreateAssistantConversation(ctx context.Context, in *CreateAssistantConversationRequest, opts ...grpc.CallOption) (*CreateAssistantConversationResponse, error)
	// GetAssistantConversations returns all conversations for the connected user.
	GetAssistantConversations(ctx context.Context, in *GetAssistantConversationsRequest, opts ...grpc.CallOption) (*GetAssistantConversationsResponse, error)
	// DeleteAssistantConversation deletes the conversation and all messages associated with it.
	DeleteAssistantConversation(ctx context.Context, in *DeleteAssistantConversationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// GetAssistantMessages returns all messages associated with the given conversation ID.
	GetAssistantMessages(ctx context.Context, in *GetAssistantMessagesRequest, opts ...grpc.CallOption) (*GetAssistantMessagesResponse, error)
	// CreateAssistantMessage creates a new message in the given conversation.
	CreateAssistantMessage(ctx context.Context, in *CreateAssistantMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// UpdateAssistantConversationInfo updates the conversation info.
	UpdateAssistantConversationInfo(ctx context.Context, in *UpdateAssistantConversationInfoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// IsAssistEnabled returns true if the assist is enabled or not on the auth level.
	IsAssistEnabled(ctx context.Context, in *IsAssistEnabledRequest, opts ...grpc.CallOption) (*IsAssistEnabledResponse, error)
	// SearchUnifiedResources returns a similarity-ordered list of resources from the unified resource cache.
	SearchUnifiedResources(ctx context.Context, in *SearchUnifiedResourcesRequest, opts ...grpc.CallOption) (*SearchUnifiedResourcesResponse, error)
}

AssistServiceClient is the client API for AssistService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AssistServiceServer

type AssistServiceServer interface {
	// CreateNewConversation creates a new conversation and returns the UUID of it.
	CreateAssistantConversation(context.Context, *CreateAssistantConversationRequest) (*CreateAssistantConversationResponse, error)
	// GetAssistantConversations returns all conversations for the connected user.
	GetAssistantConversations(context.Context, *GetAssistantConversationsRequest) (*GetAssistantConversationsResponse, error)
	// DeleteAssistantConversation deletes the conversation and all messages associated with it.
	DeleteAssistantConversation(context.Context, *DeleteAssistantConversationRequest) (*emptypb.Empty, error)
	// GetAssistantMessages returns all messages associated with the given conversation ID.
	GetAssistantMessages(context.Context, *GetAssistantMessagesRequest) (*GetAssistantMessagesResponse, error)
	// CreateAssistantMessage creates a new message in the given conversation.
	CreateAssistantMessage(context.Context, *CreateAssistantMessageRequest) (*emptypb.Empty, error)
	// UpdateAssistantConversationInfo updates the conversation info.
	UpdateAssistantConversationInfo(context.Context, *UpdateAssistantConversationInfoRequest) (*emptypb.Empty, error)
	// IsAssistEnabled returns true if the assist is enabled or not on the auth level.
	IsAssistEnabled(context.Context, *IsAssistEnabledRequest) (*IsAssistEnabledResponse, error)
	// SearchUnifiedResources returns a similarity-ordered list of resources from the unified resource cache.
	SearchUnifiedResources(context.Context, *SearchUnifiedResourcesRequest) (*SearchUnifiedResourcesResponse, error)
	// contains filtered or unexported methods
}

AssistServiceServer is the server API for AssistService service. All implementations must embed UnimplementedAssistServiceServer for forward compatibility

type AssistantMessage

type AssistantMessage struct {

	// type is a type of message. It can be Chat response/query or a command to run.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// CreatedTime is the time when the event occurred.
	CreatedTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
	// payload is a JSON message
	Payload string `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

AssistantMessage is a message sent to the assistant service. The conversation must be created first.

func (*AssistantMessage) Descriptor deprecated

func (*AssistantMessage) Descriptor() ([]byte, []int)

Deprecated: Use AssistantMessage.ProtoReflect.Descriptor instead.

func (*AssistantMessage) GetCreatedTime

func (x *AssistantMessage) GetCreatedTime() *timestamppb.Timestamp

func (*AssistantMessage) GetPayload

func (x *AssistantMessage) GetPayload() string

func (*AssistantMessage) GetType

func (x *AssistantMessage) GetType() string

func (*AssistantMessage) ProtoMessage

func (*AssistantMessage) ProtoMessage()

func (*AssistantMessage) ProtoReflect

func (x *AssistantMessage) ProtoReflect() protoreflect.Message

func (*AssistantMessage) Reset

func (x *AssistantMessage) Reset()

func (*AssistantMessage) String

func (x *AssistantMessage) String() string

type ConversationInfo

type ConversationInfo struct {

	// id is a unique conversation ID.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// title is a title of the conversation.
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// createdTime is the time when the conversation was created.
	CreatedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
	// contains filtered or unexported fields
}

ConversationInfo is a conversation info. It contains a conversation information like ID, title, created time.

func (*ConversationInfo) Descriptor deprecated

func (*ConversationInfo) Descriptor() ([]byte, []int)

Deprecated: Use ConversationInfo.ProtoReflect.Descriptor instead.

func (*ConversationInfo) GetCreatedTime

func (x *ConversationInfo) GetCreatedTime() *timestamppb.Timestamp

func (*ConversationInfo) GetId

func (x *ConversationInfo) GetId() string

func (*ConversationInfo) GetTitle

func (x *ConversationInfo) GetTitle() string

func (*ConversationInfo) ProtoMessage

func (*ConversationInfo) ProtoMessage()

func (*ConversationInfo) ProtoReflect

func (x *ConversationInfo) ProtoReflect() protoreflect.Message

func (*ConversationInfo) Reset

func (x *ConversationInfo) Reset()

func (*ConversationInfo) String

func (x *ConversationInfo) String() string

type CreateAssistantConversationRequest

type CreateAssistantConversationRequest struct {

	// username is a username of the user who created the conversation.
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// createdTime is the time when the conversation was created.
	CreatedTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
	// contains filtered or unexported fields
}

CreateAssistantConversationRequest is a request to create a new conversation.

func (*CreateAssistantConversationRequest) Descriptor deprecated

func (*CreateAssistantConversationRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAssistantConversationRequest.ProtoReflect.Descriptor instead.

func (*CreateAssistantConversationRequest) GetCreatedTime

func (*CreateAssistantConversationRequest) GetUsername

func (x *CreateAssistantConversationRequest) GetUsername() string

func (*CreateAssistantConversationRequest) ProtoMessage

func (*CreateAssistantConversationRequest) ProtoMessage()

func (*CreateAssistantConversationRequest) ProtoReflect

func (*CreateAssistantConversationRequest) Reset

func (*CreateAssistantConversationRequest) String

type CreateAssistantConversationResponse

type CreateAssistantConversationResponse struct {

	// id is a unique conversation ID.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

CreateAssistantConversationResponse is a response from the assistant service.

func (*CreateAssistantConversationResponse) Descriptor deprecated

func (*CreateAssistantConversationResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateAssistantConversationResponse.ProtoReflect.Descriptor instead.

func (*CreateAssistantConversationResponse) GetId

func (*CreateAssistantConversationResponse) ProtoMessage

func (*CreateAssistantConversationResponse) ProtoMessage()

func (*CreateAssistantConversationResponse) ProtoReflect

func (*CreateAssistantConversationResponse) Reset

func (*CreateAssistantConversationResponse) String

type CreateAssistantMessageRequest

type CreateAssistantMessageRequest struct {

	// message is a message sent to the assistant service.
	Message *AssistantMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// ConversationId is used to tie all messages into a conversation.
	ConversationId string `protobuf:"bytes,2,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"`
	// username is a username of the user who sent the message.
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

CreateAssistantMessageRequest is a request to the assistant service.

func (*CreateAssistantMessageRequest) Descriptor deprecated

func (*CreateAssistantMessageRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAssistantMessageRequest.ProtoReflect.Descriptor instead.

func (*CreateAssistantMessageRequest) GetConversationId

func (x *CreateAssistantMessageRequest) GetConversationId() string

func (*CreateAssistantMessageRequest) GetMessage

func (*CreateAssistantMessageRequest) GetUsername

func (x *CreateAssistantMessageRequest) GetUsername() string

func (*CreateAssistantMessageRequest) ProtoMessage

func (*CreateAssistantMessageRequest) ProtoMessage()

func (*CreateAssistantMessageRequest) ProtoReflect

func (*CreateAssistantMessageRequest) Reset

func (x *CreateAssistantMessageRequest) Reset()

func (*CreateAssistantMessageRequest) String

type DeleteAssistantConversationRequest

type DeleteAssistantConversationRequest struct {

	// conversationId is a unique conversation ID.
	ConversationId string `protobuf:"bytes,1,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"`
	// username is a username of the user who created the conversation.
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

DeleteAssistantConversationRequest is a request to delete the conversation.

func (*DeleteAssistantConversationRequest) Descriptor deprecated

func (*DeleteAssistantConversationRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAssistantConversationRequest.ProtoReflect.Descriptor instead.

func (*DeleteAssistantConversationRequest) GetConversationId

func (x *DeleteAssistantConversationRequest) GetConversationId() string

func (*DeleteAssistantConversationRequest) GetUsername

func (x *DeleteAssistantConversationRequest) GetUsername() string

func (*DeleteAssistantConversationRequest) ProtoMessage

func (*DeleteAssistantConversationRequest) ProtoMessage()

func (*DeleteAssistantConversationRequest) ProtoReflect

func (*DeleteAssistantConversationRequest) Reset

func (*DeleteAssistantConversationRequest) String

type EmbeddedDocument

type EmbeddedDocument struct {

	// id is the id of the document.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// content is the content of the document.
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// similarityScore is the similarity score of the document.
	SimilarityScore float32 `protobuf:"fixed32,3,opt,name=similarity_score,json=similarityScore,proto3" json:"similarity_score,omitempty"`
	// contains filtered or unexported fields
}

EmbeddingDocument is a document with an embedding.

func (*EmbeddedDocument) Descriptor deprecated

func (*EmbeddedDocument) Descriptor() ([]byte, []int)

Deprecated: Use EmbeddedDocument.ProtoReflect.Descriptor instead.

func (*EmbeddedDocument) GetContent

func (x *EmbeddedDocument) GetContent() string

func (*EmbeddedDocument) GetId

func (x *EmbeddedDocument) GetId() string

func (*EmbeddedDocument) GetSimilarityScore

func (x *EmbeddedDocument) GetSimilarityScore() float32

func (*EmbeddedDocument) ProtoMessage

func (*EmbeddedDocument) ProtoMessage()

func (*EmbeddedDocument) ProtoReflect

func (x *EmbeddedDocument) ProtoReflect() protoreflect.Message

func (*EmbeddedDocument) Reset

func (x *EmbeddedDocument) Reset()

func (*EmbeddedDocument) String

func (x *EmbeddedDocument) String() string

type GetAssistantConversationsRequest

type GetAssistantConversationsRequest struct {

	// username is a username of the user who created the conversation.
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

GetAssistantConversationsRequest is a request to get a list of conversations.

func (*GetAssistantConversationsRequest) Descriptor deprecated

func (*GetAssistantConversationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAssistantConversationsRequest.ProtoReflect.Descriptor instead.

func (*GetAssistantConversationsRequest) GetUsername

func (x *GetAssistantConversationsRequest) GetUsername() string

func (*GetAssistantConversationsRequest) ProtoMessage

func (*GetAssistantConversationsRequest) ProtoMessage()

func (*GetAssistantConversationsRequest) ProtoReflect

func (*GetAssistantConversationsRequest) Reset

func (*GetAssistantConversationsRequest) String

type GetAssistantConversationsResponse

type GetAssistantConversationsResponse struct {

	// conversations is a list of conversations.
	Conversations []*ConversationInfo `protobuf:"bytes,1,rep,name=conversations,proto3" json:"conversations,omitempty"`
	// contains filtered or unexported fields
}

GetAssistantConversationsResponse is a response from the assistant service.

func (*GetAssistantConversationsResponse) Descriptor deprecated

func (*GetAssistantConversationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAssistantConversationsResponse.ProtoReflect.Descriptor instead.

func (*GetAssistantConversationsResponse) GetConversations

func (x *GetAssistantConversationsResponse) GetConversations() []*ConversationInfo

func (*GetAssistantConversationsResponse) ProtoMessage

func (*GetAssistantConversationsResponse) ProtoMessage()

func (*GetAssistantConversationsResponse) ProtoReflect

func (*GetAssistantConversationsResponse) Reset

func (*GetAssistantConversationsResponse) String

type GetAssistantEmbeddingsRequest

type GetAssistantEmbeddingsRequest struct {

	// username is a username of the user who requested the embeddings.
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// query is the query used for similarity search.
	Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
	// limit is the number of embeddings to return (also known as k).
	Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	// kind is the kind of embeddings to return (ex, node).
	Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

GetAssistantEmbeddingsRequest is a request to get embeddings.

func (*GetAssistantEmbeddingsRequest) Descriptor deprecated

func (*GetAssistantEmbeddingsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAssistantEmbeddingsRequest.ProtoReflect.Descriptor instead.

func (*GetAssistantEmbeddingsRequest) GetKind

func (*GetAssistantEmbeddingsRequest) GetLimit

func (x *GetAssistantEmbeddingsRequest) GetLimit() uint32

func (*GetAssistantEmbeddingsRequest) GetQuery

func (x *GetAssistantEmbeddingsRequest) GetQuery() string

func (*GetAssistantEmbeddingsRequest) GetUsername

func (x *GetAssistantEmbeddingsRequest) GetUsername() string

func (*GetAssistantEmbeddingsRequest) ProtoMessage

func (*GetAssistantEmbeddingsRequest) ProtoMessage()

func (*GetAssistantEmbeddingsRequest) ProtoReflect

func (*GetAssistantEmbeddingsRequest) Reset

func (x *GetAssistantEmbeddingsRequest) Reset()

func (*GetAssistantEmbeddingsRequest) String

type GetAssistantEmbeddingsResponse

type GetAssistantEmbeddingsResponse struct {

	// embeddings is the list of embeddings.
	// The list is sorted by similarity score in descending order.
	Embeddings []*EmbeddedDocument `protobuf:"bytes,1,rep,name=embeddings,proto3" json:"embeddings,omitempty"`
	// contains filtered or unexported fields
}

GetAssistantEmbeddingsResponse is a response from the assistant service.

func (*GetAssistantEmbeddingsResponse) Descriptor deprecated

func (*GetAssistantEmbeddingsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAssistantEmbeddingsResponse.ProtoReflect.Descriptor instead.

func (*GetAssistantEmbeddingsResponse) GetEmbeddings

func (x *GetAssistantEmbeddingsResponse) GetEmbeddings() []*EmbeddedDocument

func (*GetAssistantEmbeddingsResponse) ProtoMessage

func (*GetAssistantEmbeddingsResponse) ProtoMessage()

func (*GetAssistantEmbeddingsResponse) ProtoReflect

func (*GetAssistantEmbeddingsResponse) Reset

func (x *GetAssistantEmbeddingsResponse) Reset()

func (*GetAssistantEmbeddingsResponse) String

type GetAssistantMessagesRequest

type GetAssistantMessagesRequest struct {

	// ConversationId identifies a conversation.
	// It's used to tie all messages in a one conversation.
	ConversationId string `protobuf:"bytes,1,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"`
	// username is a username of the user who sent the message.
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

GetAssistantMessagesRequest is a request to the assistant service.

func (*GetAssistantMessagesRequest) Descriptor deprecated

func (*GetAssistantMessagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAssistantMessagesRequest.ProtoReflect.Descriptor instead.

func (*GetAssistantMessagesRequest) GetConversationId

func (x *GetAssistantMessagesRequest) GetConversationId() string

func (*GetAssistantMessagesRequest) GetUsername

func (x *GetAssistantMessagesRequest) GetUsername() string

func (*GetAssistantMessagesRequest) ProtoMessage

func (*GetAssistantMessagesRequest) ProtoMessage()

func (*GetAssistantMessagesRequest) ProtoReflect

func (*GetAssistantMessagesRequest) Reset

func (x *GetAssistantMessagesRequest) Reset()

func (*GetAssistantMessagesRequest) String

func (x *GetAssistantMessagesRequest) String() string

type GetAssistantMessagesResponse

type GetAssistantMessagesResponse struct {

	// messages is a list of messages.
	Messages []*AssistantMessage `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

GetAssistantMessagesResponse is a response from the assistant service.

func (*GetAssistantMessagesResponse) Descriptor deprecated

func (*GetAssistantMessagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAssistantMessagesResponse.ProtoReflect.Descriptor instead.

func (*GetAssistantMessagesResponse) GetMessages

func (x *GetAssistantMessagesResponse) GetMessages() []*AssistantMessage

func (*GetAssistantMessagesResponse) ProtoMessage

func (*GetAssistantMessagesResponse) ProtoMessage()

func (*GetAssistantMessagesResponse) ProtoReflect

func (*GetAssistantMessagesResponse) Reset

func (x *GetAssistantMessagesResponse) Reset()

func (*GetAssistantMessagesResponse) String

type IsAssistEnabledRequest

type IsAssistEnabledRequest struct {
	// contains filtered or unexported fields
}

IsAssistEnabledRequest is a request to the assistant service on if assist is enabled or not.

func (*IsAssistEnabledRequest) Descriptor deprecated

func (*IsAssistEnabledRequest) Descriptor() ([]byte, []int)

Deprecated: Use IsAssistEnabledRequest.ProtoReflect.Descriptor instead.

func (*IsAssistEnabledRequest) ProtoMessage

func (*IsAssistEnabledRequest) ProtoMessage()

func (*IsAssistEnabledRequest) ProtoReflect

func (x *IsAssistEnabledRequest) ProtoReflect() protoreflect.Message

func (*IsAssistEnabledRequest) Reset

func (x *IsAssistEnabledRequest) Reset()

func (*IsAssistEnabledRequest) String

func (x *IsAssistEnabledRequest) String() string

type IsAssistEnabledResponse

type IsAssistEnabledResponse struct {

	// enabled is true if the assist is enabled or not on the auth level.
	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

IsAssistEnabledResponse is a response from the assistant service on if assist is enabled or not.

func (*IsAssistEnabledResponse) Descriptor deprecated

func (*IsAssistEnabledResponse) Descriptor() ([]byte, []int)

Deprecated: Use IsAssistEnabledResponse.ProtoReflect.Descriptor instead.

func (*IsAssistEnabledResponse) GetEnabled

func (x *IsAssistEnabledResponse) GetEnabled() bool

func (*IsAssistEnabledResponse) ProtoMessage

func (*IsAssistEnabledResponse) ProtoMessage()

func (*IsAssistEnabledResponse) ProtoReflect

func (x *IsAssistEnabledResponse) ProtoReflect() protoreflect.Message

func (*IsAssistEnabledResponse) Reset

func (x *IsAssistEnabledResponse) Reset()

func (*IsAssistEnabledResponse) String

func (x *IsAssistEnabledResponse) String() string

type SearchUnifiedResourcesRequest

type SearchUnifiedResourcesRequest struct {

	// query is the query used for similarity search.
	Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// limit is the number of embeddings to return (also known as k).
	Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// kinds is the kind of embeddings to return (ex, node). Returns all supported kinds if empty.
	Kinds []string `protobuf:"bytes,3,rep,name=kinds,proto3" json:"kinds,omitempty"`
	// contains filtered or unexported fields
}

SearchUnifiedResourcesRequest is a request to search for one or more resource kinds using similiarity search.

func (*SearchUnifiedResourcesRequest) Descriptor deprecated

func (*SearchUnifiedResourcesRequest) Descriptor() ([]byte, []int)

Deprecated: Use SearchUnifiedResourcesRequest.ProtoReflect.Descriptor instead.

func (*SearchUnifiedResourcesRequest) GetKinds

func (x *SearchUnifiedResourcesRequest) GetKinds() []string

func (*SearchUnifiedResourcesRequest) GetLimit

func (x *SearchUnifiedResourcesRequest) GetLimit() int32

func (*SearchUnifiedResourcesRequest) GetQuery

func (x *SearchUnifiedResourcesRequest) GetQuery() string

func (*SearchUnifiedResourcesRequest) ProtoMessage

func (*SearchUnifiedResourcesRequest) ProtoMessage()

func (*SearchUnifiedResourcesRequest) ProtoReflect

func (*SearchUnifiedResourcesRequest) Reset

func (x *SearchUnifiedResourcesRequest) Reset()

func (*SearchUnifiedResourcesRequest) String

type SearchUnifiedResourcesResponse

type SearchUnifiedResourcesResponse struct {

	// resources is the list of resources.
	Resources []*proto.PaginatedResource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

SearchUnifiedResourcesResponse is a response from the assistant service with a similarity-ordered list of resources.

func (*SearchUnifiedResourcesResponse) Descriptor deprecated

func (*SearchUnifiedResourcesResponse) Descriptor() ([]byte, []int)

Deprecated: Use SearchUnifiedResourcesResponse.ProtoReflect.Descriptor instead.

func (*SearchUnifiedResourcesResponse) GetResources

func (*SearchUnifiedResourcesResponse) ProtoMessage

func (*SearchUnifiedResourcesResponse) ProtoMessage()

func (*SearchUnifiedResourcesResponse) ProtoReflect

func (*SearchUnifiedResourcesResponse) Reset

func (x *SearchUnifiedResourcesResponse) Reset()

func (*SearchUnifiedResourcesResponse) String

type UnimplementedAssistEmbeddingServiceServer

type UnimplementedAssistEmbeddingServiceServer struct {
}

UnimplementedAssistEmbeddingServiceServer must be embedded to have forward compatible implementations.

type UnimplementedAssistServiceServer

type UnimplementedAssistServiceServer struct {
}

UnimplementedAssistServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAssistServiceServer) CreateAssistantMessage

func (UnimplementedAssistServiceServer) DeleteAssistantConversation

func (UnimplementedAssistServiceServer) IsAssistEnabled

func (UnimplementedAssistServiceServer) UpdateAssistantConversationInfo

type UnsafeAssistEmbeddingServiceServer

type UnsafeAssistEmbeddingServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAssistEmbeddingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AssistEmbeddingServiceServer will result in compilation errors.

type UnsafeAssistServiceServer

type UnsafeAssistServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAssistServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AssistServiceServer will result in compilation errors.

type UpdateAssistantConversationInfoRequest

type UpdateAssistantConversationInfoRequest struct {

	// conversationId is a unique conversation ID.
	ConversationId string `protobuf:"bytes,1,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"`
	// username is a username of the user who created the conversation.
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// title is a title of the conversation.
	Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	// contains filtered or unexported fields
}

UpdateAssistantConversationInfoRequest is a request to update the conversation info.

func (*UpdateAssistantConversationInfoRequest) Descriptor deprecated

func (*UpdateAssistantConversationInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAssistantConversationInfoRequest.ProtoReflect.Descriptor instead.

func (*UpdateAssistantConversationInfoRequest) GetConversationId

func (x *UpdateAssistantConversationInfoRequest) GetConversationId() string

func (*UpdateAssistantConversationInfoRequest) GetTitle

func (*UpdateAssistantConversationInfoRequest) GetUsername

func (*UpdateAssistantConversationInfoRequest) ProtoMessage

func (*UpdateAssistantConversationInfoRequest) ProtoReflect

func (*UpdateAssistantConversationInfoRequest) Reset

func (*UpdateAssistantConversationInfoRequest) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL