Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAssistantServiceServer(s grpc.ServiceRegistrar, srv AssistantServiceServer)
- type Assistant
- func (*Assistant) Descriptor() ([]byte, []int)deprecated
- func (x *Assistant) GetCompletionOptions() *CompletionOptions
- func (x *Assistant) GetCreatedAt() *timestamppb.Timestamp
- func (x *Assistant) GetCreatedBy() string
- func (x *Assistant) GetDescription() string
- func (x *Assistant) GetExpirationConfig() *common.ExpirationConfig
- func (x *Assistant) GetExpiresAt() *timestamppb.Timestamp
- func (x *Assistant) GetFolderId() string
- func (x *Assistant) GetId() string
- func (x *Assistant) GetInstruction() string
- func (x *Assistant) GetLabels() map[string]string
- func (x *Assistant) GetModelUri() string
- func (x *Assistant) GetName() string
- func (x *Assistant) GetPromptTruncationOptions() *PromptTruncationOptions
- func (x *Assistant) GetTools() []*Tool
- func (x *Assistant) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Assistant) GetUpdatedBy() string
- func (*Assistant) ProtoMessage()
- func (x *Assistant) ProtoReflect() protoreflect.Message
- func (x *Assistant) Reset()
- func (m *Assistant) SetCompletionOptions(v *CompletionOptions)
- func (m *Assistant) SetCreatedAt(v *timestamppb.Timestamp)
- func (m *Assistant) SetCreatedBy(v string)
- func (m *Assistant) SetDescription(v string)
- func (m *Assistant) SetExpirationConfig(v *common.ExpirationConfig)
- func (m *Assistant) SetExpiresAt(v *timestamppb.Timestamp)
- func (m *Assistant) SetFolderId(v string)
- func (m *Assistant) SetId(v string)
- func (m *Assistant) SetInstruction(v string)
- func (m *Assistant) SetLabels(v map[string]string)
- func (m *Assistant) SetModelUri(v string)
- func (m *Assistant) SetName(v string)
- func (m *Assistant) SetPromptTruncationOptions(v *PromptTruncationOptions)
- func (m *Assistant) SetTools(v []*Tool)
- func (m *Assistant) SetUpdatedAt(v *timestamppb.Timestamp)
- func (m *Assistant) SetUpdatedBy(v string)
- func (x *Assistant) String() string
- type AssistantServiceClient
- type AssistantServiceServer
- type AssistantVersion
- func (*AssistantVersion) Descriptor() ([]byte, []int)deprecated
- func (x *AssistantVersion) GetAssistant() *Assistant
- func (x *AssistantVersion) GetId() string
- func (x *AssistantVersion) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*AssistantVersion) ProtoMessage()
- func (x *AssistantVersion) ProtoReflect() protoreflect.Message
- func (x *AssistantVersion) Reset()
- func (m *AssistantVersion) SetAssistant(v *Assistant)
- func (m *AssistantVersion) SetId(v string)
- func (m *AssistantVersion) SetUpdateMask(v *fieldmaskpb.FieldMask)
- func (x *AssistantVersion) String() string
- type CompletionOptions
- func (*CompletionOptions) Descriptor() ([]byte, []int)deprecated
- func (x *CompletionOptions) GetMaxTokens() *wrapperspb.Int64Value
- func (x *CompletionOptions) GetTemperature() *wrapperspb.DoubleValue
- func (*CompletionOptions) ProtoMessage()
- func (x *CompletionOptions) ProtoReflect() protoreflect.Message
- func (x *CompletionOptions) Reset()
- func (m *CompletionOptions) SetMaxTokens(v *wrapperspb.Int64Value)
- func (m *CompletionOptions) SetTemperature(v *wrapperspb.DoubleValue)
- func (x *CompletionOptions) String() string
- type CreateAssistantRequest
- func (*CreateAssistantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAssistantRequest) GetCompletionOptions() *CompletionOptions
- func (x *CreateAssistantRequest) GetDescription() string
- func (x *CreateAssistantRequest) GetExpirationConfig() *common.ExpirationConfig
- func (x *CreateAssistantRequest) GetFolderId() string
- func (x *CreateAssistantRequest) GetInstruction() string
- func (x *CreateAssistantRequest) GetLabels() map[string]string
- func (x *CreateAssistantRequest) GetModelUri() string
- func (x *CreateAssistantRequest) GetName() string
- func (x *CreateAssistantRequest) GetPromptTruncationOptions() *PromptTruncationOptions
- func (x *CreateAssistantRequest) GetTools() []*Tool
- func (*CreateAssistantRequest) ProtoMessage()
- func (x *CreateAssistantRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAssistantRequest) Reset()
- func (m *CreateAssistantRequest) SetCompletionOptions(v *CompletionOptions)
- func (m *CreateAssistantRequest) SetDescription(v string)
- func (m *CreateAssistantRequest) SetExpirationConfig(v *common.ExpirationConfig)
- func (m *CreateAssistantRequest) SetFolderId(v string)
- func (m *CreateAssistantRequest) SetInstruction(v string)
- func (m *CreateAssistantRequest) SetLabels(v map[string]string)
- func (m *CreateAssistantRequest) SetModelUri(v string)
- func (m *CreateAssistantRequest) SetName(v string)
- func (m *CreateAssistantRequest) SetPromptTruncationOptions(v *PromptTruncationOptions)
- func (m *CreateAssistantRequest) SetTools(v []*Tool)
- func (x *CreateAssistantRequest) String() string
- type DeleteAssistantRequest
- func (*DeleteAssistantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAssistantRequest) GetAssistantId() string
- func (*DeleteAssistantRequest) ProtoMessage()
- func (x *DeleteAssistantRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteAssistantRequest) Reset()
- func (m *DeleteAssistantRequest) SetAssistantId(v string)
- func (x *DeleteAssistantRequest) String() string
- type DeleteAssistantResponse
- type GetAssistantRequest
- func (*GetAssistantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAssistantRequest) GetAssistantId() string
- func (*GetAssistantRequest) ProtoMessage()
- func (x *GetAssistantRequest) ProtoReflect() protoreflect.Message
- func (x *GetAssistantRequest) Reset()
- func (m *GetAssistantRequest) SetAssistantId(v string)
- func (x *GetAssistantRequest) String() string
- type ListAssistantVersionsRequest
- func (*ListAssistantVersionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAssistantVersionsRequest) GetAssistantId() string
- func (x *ListAssistantVersionsRequest) GetPageSize() int64
- func (x *ListAssistantVersionsRequest) GetPageToken() string
- func (*ListAssistantVersionsRequest) ProtoMessage()
- func (x *ListAssistantVersionsRequest) ProtoReflect() protoreflect.Message
- func (x *ListAssistantVersionsRequest) Reset()
- func (m *ListAssistantVersionsRequest) SetAssistantId(v string)
- func (m *ListAssistantVersionsRequest) SetPageSize(v int64)
- func (m *ListAssistantVersionsRequest) SetPageToken(v string)
- func (x *ListAssistantVersionsRequest) String() string
- type ListAssistantVersionsResponse
- func (*ListAssistantVersionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAssistantVersionsResponse) GetNextPageToken() string
- func (x *ListAssistantVersionsResponse) GetVersions() []*AssistantVersion
- func (*ListAssistantVersionsResponse) ProtoMessage()
- func (x *ListAssistantVersionsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAssistantVersionsResponse) Reset()
- func (m *ListAssistantVersionsResponse) SetNextPageToken(v string)
- func (m *ListAssistantVersionsResponse) SetVersions(v []*AssistantVersion)
- func (x *ListAssistantVersionsResponse) String() string
- type ListAssistantsRequest
- func (*ListAssistantsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAssistantsRequest) GetFolderId() string
- func (x *ListAssistantsRequest) GetPageSize() int64
- func (x *ListAssistantsRequest) GetPageToken() string
- func (*ListAssistantsRequest) ProtoMessage()
- func (x *ListAssistantsRequest) ProtoReflect() protoreflect.Message
- func (x *ListAssistantsRequest) Reset()
- func (m *ListAssistantsRequest) SetFolderId(v string)
- func (m *ListAssistantsRequest) SetPageSize(v int64)
- func (m *ListAssistantsRequest) SetPageToken(v string)
- func (x *ListAssistantsRequest) String() string
- type ListAssistantsResponse
- func (*ListAssistantsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAssistantsResponse) GetAssistants() []*Assistant
- func (x *ListAssistantsResponse) GetNextPageToken() string
- func (*ListAssistantsResponse) ProtoMessage()
- func (x *ListAssistantsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAssistantsResponse) Reset()
- func (m *ListAssistantsResponse) SetAssistants(v []*Assistant)
- func (m *ListAssistantsResponse) SetNextPageToken(v string)
- func (x *ListAssistantsResponse) String() string
- type PromptTruncationOptions
- func (*PromptTruncationOptions) Descriptor() ([]byte, []int)deprecated
- func (x *PromptTruncationOptions) GetMaxPromptTokens() *wrapperspb.Int64Value
- func (*PromptTruncationOptions) ProtoMessage()
- func (x *PromptTruncationOptions) ProtoReflect() protoreflect.Message
- func (x *PromptTruncationOptions) Reset()
- func (m *PromptTruncationOptions) SetMaxPromptTokens(v *wrapperspb.Int64Value)
- func (x *PromptTruncationOptions) String() string
- type SearchIndexTool
- func (*SearchIndexTool) Descriptor() ([]byte, []int)deprecated
- func (x *SearchIndexTool) GetMaxNumResults() *wrapperspb.Int64Value
- func (x *SearchIndexTool) GetSearchIndexIds() []string
- func (*SearchIndexTool) ProtoMessage()
- func (x *SearchIndexTool) ProtoReflect() protoreflect.Message
- func (x *SearchIndexTool) Reset()
- func (m *SearchIndexTool) SetMaxNumResults(v *wrapperspb.Int64Value)
- func (m *SearchIndexTool) SetSearchIndexIds(v []string)
- func (x *SearchIndexTool) String() string
- type Tool
- func (*Tool) Descriptor() ([]byte, []int)deprecated
- func (x *Tool) GetSearchIndex() *SearchIndexTool
- func (m *Tool) GetToolType() isTool_ToolType
- func (*Tool) ProtoMessage()
- func (x *Tool) ProtoReflect() protoreflect.Message
- func (x *Tool) Reset()
- func (m *Tool) SetSearchIndex(v *SearchIndexTool)
- func (m *Tool) SetToolType(v Tool_ToolType)
- func (x *Tool) String() string
- type Tool_SearchIndex
- type Tool_ToolType
- type UnimplementedAssistantServiceServer
- func (UnimplementedAssistantServiceServer) Create(context.Context, *CreateAssistantRequest) (*Assistant, error)
- func (UnimplementedAssistantServiceServer) Delete(context.Context, *DeleteAssistantRequest) (*DeleteAssistantResponse, error)
- func (UnimplementedAssistantServiceServer) Get(context.Context, *GetAssistantRequest) (*Assistant, error)
- func (UnimplementedAssistantServiceServer) List(context.Context, *ListAssistantsRequest) (*ListAssistantsResponse, error)
- func (UnimplementedAssistantServiceServer) ListVersions(context.Context, *ListAssistantVersionsRequest) (*ListAssistantVersionsResponse, error)
- func (UnimplementedAssistantServiceServer) Update(context.Context, *UpdateAssistantRequest) (*Assistant, error)
- type UnsafeAssistantServiceServer
- type UpdateAssistantRequest
- func (*UpdateAssistantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAssistantRequest) GetAssistantId() string
- func (x *UpdateAssistantRequest) GetCompletionOptions() *CompletionOptions
- func (x *UpdateAssistantRequest) GetDescription() string
- func (x *UpdateAssistantRequest) GetExpirationConfig() *common.ExpirationConfig
- func (x *UpdateAssistantRequest) GetInstruction() string
- func (x *UpdateAssistantRequest) GetLabels() map[string]string
- func (x *UpdateAssistantRequest) GetModelUri() string
- func (x *UpdateAssistantRequest) GetName() string
- func (x *UpdateAssistantRequest) GetPromptTruncationOptions() *PromptTruncationOptions
- func (x *UpdateAssistantRequest) GetTools() []*Tool
- func (x *UpdateAssistantRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateAssistantRequest) ProtoMessage()
- func (x *UpdateAssistantRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAssistantRequest) Reset()
- func (m *UpdateAssistantRequest) SetAssistantId(v string)
- func (m *UpdateAssistantRequest) SetCompletionOptions(v *CompletionOptions)
- func (m *UpdateAssistantRequest) SetDescription(v string)
- func (m *UpdateAssistantRequest) SetExpirationConfig(v *common.ExpirationConfig)
- func (m *UpdateAssistantRequest) SetInstruction(v string)
- func (m *UpdateAssistantRequest) SetLabels(v map[string]string)
- func (m *UpdateAssistantRequest) SetModelUri(v string)
- func (m *UpdateAssistantRequest) SetName(v string)
- func (m *UpdateAssistantRequest) SetPromptTruncationOptions(v *PromptTruncationOptions)
- func (m *UpdateAssistantRequest) SetTools(v []*Tool)
- func (m *UpdateAssistantRequest) SetUpdateMask(v *fieldmaskpb.FieldMask)
- func (x *UpdateAssistantRequest) String() string
Constants ¶
const ( AssistantService_Create_FullMethodName = "/yandex.cloud.ai.assistants.v1.AssistantService/Create" AssistantService_Get_FullMethodName = "/yandex.cloud.ai.assistants.v1.AssistantService/Get" AssistantService_Update_FullMethodName = "/yandex.cloud.ai.assistants.v1.AssistantService/Update" AssistantService_Delete_FullMethodName = "/yandex.cloud.ai.assistants.v1.AssistantService/Delete" AssistantService_List_FullMethodName = "/yandex.cloud.ai.assistants.v1.AssistantService/List" AssistantService_ListVersions_FullMethodName = "/yandex.cloud.ai.assistants.v1.AssistantService/ListVersions" )
Variables ¶
var AssistantService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "yandex.cloud.ai.assistants.v1.AssistantService", HandlerType: (*AssistantServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _AssistantService_Create_Handler, }, { MethodName: "Get", Handler: _AssistantService_Get_Handler, }, { MethodName: "Update", Handler: _AssistantService_Update_Handler, }, { MethodName: "Delete", Handler: _AssistantService_Delete_Handler, }, { MethodName: "List", Handler: _AssistantService_List_Handler, }, { MethodName: "ListVersions", Handler: _AssistantService_ListVersions_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "yandex/cloud/ai/assistants/v1/assistant_service.proto", }
AssistantService_ServiceDesc is the grpc.ServiceDesc for AssistantService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_yandex_cloud_ai_assistants_v1_assistant_proto protoreflect.FileDescriptor
var File_yandex_cloud_ai_assistants_v1_assistant_service_proto protoreflect.FileDescriptor
var File_yandex_cloud_ai_assistants_v1_common_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAssistantServiceServer ¶
func RegisterAssistantServiceServer(s grpc.ServiceRegistrar, srv AssistantServiceServer)
Types ¶
type Assistant ¶
type Assistant struct { // Unique identifier of the assistant. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the folder that the assistant belongs to. FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` // Name of the assistant. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Description of the assistant. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // Identifier of the subject who created this assistant. CreatedBy string `protobuf:"bytes,5,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` // Timestamp representing when the assistant was created. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Identifier of the subject who last updated this assistant. UpdatedBy string `protobuf:"bytes,7,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` // Timestamp representing the last time this assistant was updated. UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Configuration for the expiration of the assistant, defining when and how the assistant will expire. ExpirationConfig *common.ExpirationConfig `protobuf:"bytes,9,opt,name=expiration_config,json=expirationConfig,proto3" json:"expiration_config,omitempty"` // Timestamp representing when the assistant will expire. ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // Set of key-value pairs that can be used to organize and categorize the assistant. Labels map[string]string `` /* 154-byte string literal not displayed */ // The [ID of the model](/docs/foundation-models/concepts/yandexgpt/models) to be used for completion generation. ModelUri string `protobuf:"bytes,12,opt,name=model_uri,json=modelUri,proto3" json:"model_uri,omitempty"` // Instructions or guidelines that the assistant should follow when generating responses or performing tasks. // These instructions can help guide the assistant's behavior and responses. Instruction string `protobuf:"bytes,13,opt,name=instruction,proto3" json:"instruction,omitempty"` // Configuration options for truncating the prompt when the token count exceeds a specified limit. PromptTruncationOptions *PromptTruncationOptions `` /* 133-byte string literal not displayed */ // Configuration options for completion generation. CompletionOptions *CompletionOptions `protobuf:"bytes,15,opt,name=completion_options,json=completionOptions,proto3" json:"completion_options,omitempty"` // List of tools that the assistant can use to perform additional tasks. // One example is the SearchIndexTool, which is used for Retrieval-Augmented Generation (RAG). Tools []*Tool `protobuf:"bytes,16,rep,name=tools,proto3" json:"tools,omitempty"` // contains filtered or unexported fields }
Assistant represents an AI assistant configuration with various settings and metadata.
func (*Assistant) Descriptor
deprecated
func (*Assistant) GetCompletionOptions ¶
func (x *Assistant) GetCompletionOptions() *CompletionOptions
func (*Assistant) GetCreatedAt ¶
func (x *Assistant) GetCreatedAt() *timestamppb.Timestamp
func (*Assistant) GetCreatedBy ¶
func (*Assistant) GetDescription ¶
func (*Assistant) GetExpirationConfig ¶
func (x *Assistant) GetExpirationConfig() *common.ExpirationConfig
func (*Assistant) GetExpiresAt ¶
func (x *Assistant) GetExpiresAt() *timestamppb.Timestamp
func (*Assistant) GetFolderId ¶
func (*Assistant) GetInstruction ¶
func (*Assistant) GetModelUri ¶
func (*Assistant) GetPromptTruncationOptions ¶
func (x *Assistant) GetPromptTruncationOptions() *PromptTruncationOptions
func (*Assistant) GetUpdatedAt ¶
func (x *Assistant) GetUpdatedAt() *timestamppb.Timestamp
func (*Assistant) GetUpdatedBy ¶
func (*Assistant) ProtoMessage ¶
func (*Assistant) ProtoMessage()
func (*Assistant) ProtoReflect ¶
func (x *Assistant) ProtoReflect() protoreflect.Message
func (*Assistant) SetCompletionOptions ¶
func (m *Assistant) SetCompletionOptions(v *CompletionOptions)
func (*Assistant) SetCreatedAt ¶
func (m *Assistant) SetCreatedAt(v *timestamppb.Timestamp)
func (*Assistant) SetCreatedBy ¶
func (*Assistant) SetDescription ¶
func (*Assistant) SetExpirationConfig ¶
func (m *Assistant) SetExpirationConfig(v *common.ExpirationConfig)
func (*Assistant) SetExpiresAt ¶
func (m *Assistant) SetExpiresAt(v *timestamppb.Timestamp)
func (*Assistant) SetFolderId ¶
func (*Assistant) SetInstruction ¶
func (*Assistant) SetModelUri ¶
func (*Assistant) SetPromptTruncationOptions ¶
func (m *Assistant) SetPromptTruncationOptions(v *PromptTruncationOptions)
func (*Assistant) SetUpdatedAt ¶
func (m *Assistant) SetUpdatedAt(v *timestamppb.Timestamp)
func (*Assistant) SetUpdatedBy ¶
type AssistantServiceClient ¶
type AssistantServiceClient interface { // Create a new assistant. Create(ctx context.Context, in *CreateAssistantRequest, opts ...grpc.CallOption) (*Assistant, error) // Retrieve details of a specific assistant by its ID. Get(ctx context.Context, in *GetAssistantRequest, opts ...grpc.CallOption) (*Assistant, error) // Update an existing assistant. Update(ctx context.Context, in *UpdateAssistantRequest, opts ...grpc.CallOption) (*Assistant, error) // Delete an assistant by its ID. Delete(ctx context.Context, in *DeleteAssistantRequest, opts ...grpc.CallOption) (*DeleteAssistantResponse, error) // List assistants in a specific folder. List(ctx context.Context, in *ListAssistantsRequest, opts ...grpc.CallOption) (*ListAssistantsResponse, error) // Lists all versions of a specific assistant. ListVersions(ctx context.Context, in *ListAssistantVersionsRequest, opts ...grpc.CallOption) (*ListAssistantVersionsResponse, error) }
AssistantServiceClient is the client API for AssistantService 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.
AssistantService provides operations for managing assistants.
func NewAssistantServiceClient ¶
func NewAssistantServiceClient(cc grpc.ClientConnInterface) AssistantServiceClient
type AssistantServiceServer ¶
type AssistantServiceServer interface { // Create a new assistant. Create(context.Context, *CreateAssistantRequest) (*Assistant, error) // Retrieve details of a specific assistant by its ID. Get(context.Context, *GetAssistantRequest) (*Assistant, error) // Update an existing assistant. Update(context.Context, *UpdateAssistantRequest) (*Assistant, error) // Delete an assistant by its ID. Delete(context.Context, *DeleteAssistantRequest) (*DeleteAssistantResponse, error) // List assistants in a specific folder. List(context.Context, *ListAssistantsRequest) (*ListAssistantsResponse, error) // Lists all versions of a specific assistant. ListVersions(context.Context, *ListAssistantVersionsRequest) (*ListAssistantVersionsResponse, error) }
AssistantServiceServer is the server API for AssistantService service. All implementations should embed UnimplementedAssistantServiceServer for forward compatibility.
AssistantService provides operations for managing assistants.
type AssistantVersion ¶
type AssistantVersion struct { // ID of the assistant version. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Mask specifying which fields were updated in this version. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Assistant configuration for this version. Assistant *Assistant `protobuf:"bytes,3,opt,name=assistant,proto3" json:"assistant,omitempty"` // contains filtered or unexported fields }
Represents a specific version of an assistant.
func (*AssistantVersion) Descriptor
deprecated
func (*AssistantVersion) Descriptor() ([]byte, []int)
Deprecated: Use AssistantVersion.ProtoReflect.Descriptor instead.
func (*AssistantVersion) GetAssistant ¶
func (x *AssistantVersion) GetAssistant() *Assistant
func (*AssistantVersion) GetId ¶
func (x *AssistantVersion) GetId() string
func (*AssistantVersion) GetUpdateMask ¶
func (x *AssistantVersion) GetUpdateMask() *fieldmaskpb.FieldMask
func (*AssistantVersion) ProtoMessage ¶
func (*AssistantVersion) ProtoMessage()
func (*AssistantVersion) ProtoReflect ¶
func (x *AssistantVersion) ProtoReflect() protoreflect.Message
func (*AssistantVersion) Reset ¶
func (x *AssistantVersion) Reset()
func (*AssistantVersion) SetAssistant ¶
func (m *AssistantVersion) SetAssistant(v *Assistant)
func (*AssistantVersion) SetId ¶
func (m *AssistantVersion) SetId(v string)
func (*AssistantVersion) SetUpdateMask ¶
func (m *AssistantVersion) SetUpdateMask(v *fieldmaskpb.FieldMask)
func (*AssistantVersion) String ¶
func (x *AssistantVersion) String() string
type CompletionOptions ¶
type CompletionOptions struct { // The limit on the number of tokens used for single completion generation. // Must be greater than zero. This maximum allowed parameter value may depend on the model being used. MaxTokens *wrapperspb.Int64Value `protobuf:"bytes,2,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"` // Affects creativity and randomness of responses. Should be a double number between 0 (inclusive) and 1 (inclusive). // Lower values produce more straightforward responses while higher values lead to increased creativity and randomness. // Default temperature: 0.3 Temperature *wrapperspb.DoubleValue `protobuf:"bytes,3,opt,name=temperature,proto3" json:"temperature,omitempty"` // contains filtered or unexported fields }
Defines the options for completion generation.
func (*CompletionOptions) Descriptor
deprecated
func (*CompletionOptions) Descriptor() ([]byte, []int)
Deprecated: Use CompletionOptions.ProtoReflect.Descriptor instead.
func (*CompletionOptions) GetMaxTokens ¶
func (x *CompletionOptions) GetMaxTokens() *wrapperspb.Int64Value
func (*CompletionOptions) GetTemperature ¶
func (x *CompletionOptions) GetTemperature() *wrapperspb.DoubleValue
func (*CompletionOptions) ProtoMessage ¶
func (*CompletionOptions) ProtoMessage()
func (*CompletionOptions) ProtoReflect ¶
func (x *CompletionOptions) ProtoReflect() protoreflect.Message
func (*CompletionOptions) Reset ¶
func (x *CompletionOptions) Reset()
func (*CompletionOptions) SetMaxTokens ¶
func (m *CompletionOptions) SetMaxTokens(v *wrapperspb.Int64Value)
func (*CompletionOptions) SetTemperature ¶
func (m *CompletionOptions) SetTemperature(v *wrapperspb.DoubleValue)
func (*CompletionOptions) String ¶
func (x *CompletionOptions) String() string
type CreateAssistantRequest ¶
type CreateAssistantRequest struct { FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` // Name of the assistant. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Description of the assistant. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Expiration configuration for the assistant. ExpirationConfig *common.ExpirationConfig `protobuf:"bytes,4,opt,name=expiration_config,json=expirationConfig,proto3" json:"expiration_config,omitempty"` // Set of key-value pairs to label the user. Labels map[string]string `` /* 153-byte string literal not displayed */ // The [ID of the model](/docs/foundation-models/concepts/yandexgpt/models) to be used for completion generation. ModelUri string `protobuf:"bytes,6,opt,name=model_uri,json=modelUri,proto3" json:"model_uri,omitempty"` // Instructions or guidelines that the assistant should follow when generating responses or performing tasks. // These instructions can help guide the assistant's behavior and responses. Instruction string `protobuf:"bytes,7,opt,name=instruction,proto3" json:"instruction,omitempty"` // Configuration options for truncating the prompt when the token count exceeds a specified limit. PromptTruncationOptions *PromptTruncationOptions `` /* 132-byte string literal not displayed */ // Configuration options for completion generation. CompletionOptions *CompletionOptions `protobuf:"bytes,9,opt,name=completion_options,json=completionOptions,proto3" json:"completion_options,omitempty"` // List of tools that the assistant can use to perform additional tasks. // One example is the SearchIndexTool, which is used for Retrieval-Augmented Generation (RAG). Tools []*Tool `protobuf:"bytes,10,rep,name=tools,proto3" json:"tools,omitempty"` // contains filtered or unexported fields }
Request to create a new assistant.
func (*CreateAssistantRequest) Descriptor
deprecated
func (*CreateAssistantRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAssistantRequest.ProtoReflect.Descriptor instead.
func (*CreateAssistantRequest) GetCompletionOptions ¶
func (x *CreateAssistantRequest) GetCompletionOptions() *CompletionOptions
func (*CreateAssistantRequest) GetDescription ¶
func (x *CreateAssistantRequest) GetDescription() string
func (*CreateAssistantRequest) GetExpirationConfig ¶
func (x *CreateAssistantRequest) GetExpirationConfig() *common.ExpirationConfig
func (*CreateAssistantRequest) GetFolderId ¶
func (x *CreateAssistantRequest) GetFolderId() string
func (*CreateAssistantRequest) GetInstruction ¶
func (x *CreateAssistantRequest) GetInstruction() string
func (*CreateAssistantRequest) GetLabels ¶
func (x *CreateAssistantRequest) GetLabels() map[string]string
func (*CreateAssistantRequest) GetModelUri ¶
func (x *CreateAssistantRequest) GetModelUri() string
func (*CreateAssistantRequest) GetName ¶
func (x *CreateAssistantRequest) GetName() string
func (*CreateAssistantRequest) GetPromptTruncationOptions ¶
func (x *CreateAssistantRequest) GetPromptTruncationOptions() *PromptTruncationOptions
func (*CreateAssistantRequest) GetTools ¶
func (x *CreateAssistantRequest) GetTools() []*Tool
func (*CreateAssistantRequest) ProtoMessage ¶
func (*CreateAssistantRequest) ProtoMessage()
func (*CreateAssistantRequest) ProtoReflect ¶
func (x *CreateAssistantRequest) ProtoReflect() protoreflect.Message
func (*CreateAssistantRequest) Reset ¶
func (x *CreateAssistantRequest) Reset()
func (*CreateAssistantRequest) SetCompletionOptions ¶
func (m *CreateAssistantRequest) SetCompletionOptions(v *CompletionOptions)
func (*CreateAssistantRequest) SetDescription ¶
func (m *CreateAssistantRequest) SetDescription(v string)
func (*CreateAssistantRequest) SetExpirationConfig ¶
func (m *CreateAssistantRequest) SetExpirationConfig(v *common.ExpirationConfig)
func (*CreateAssistantRequest) SetFolderId ¶
func (m *CreateAssistantRequest) SetFolderId(v string)
func (*CreateAssistantRequest) SetInstruction ¶
func (m *CreateAssistantRequest) SetInstruction(v string)
func (*CreateAssistantRequest) SetLabels ¶
func (m *CreateAssistantRequest) SetLabels(v map[string]string)
func (*CreateAssistantRequest) SetModelUri ¶
func (m *CreateAssistantRequest) SetModelUri(v string)
func (*CreateAssistantRequest) SetName ¶
func (m *CreateAssistantRequest) SetName(v string)
func (*CreateAssistantRequest) SetPromptTruncationOptions ¶
func (m *CreateAssistantRequest) SetPromptTruncationOptions(v *PromptTruncationOptions)
func (*CreateAssistantRequest) SetTools ¶
func (m *CreateAssistantRequest) SetTools(v []*Tool)
func (*CreateAssistantRequest) String ¶
func (x *CreateAssistantRequest) String() string
type DeleteAssistantRequest ¶
type DeleteAssistantRequest struct { // ID of the assistant to delete. AssistantId string `protobuf:"bytes,1,opt,name=assistant_id,json=assistantId,proto3" json:"assistant_id,omitempty"` // contains filtered or unexported fields }
Request message for deleting an assistant by ID.
func (*DeleteAssistantRequest) Descriptor
deprecated
func (*DeleteAssistantRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAssistantRequest.ProtoReflect.Descriptor instead.
func (*DeleteAssistantRequest) GetAssistantId ¶
func (x *DeleteAssistantRequest) GetAssistantId() string
func (*DeleteAssistantRequest) ProtoMessage ¶
func (*DeleteAssistantRequest) ProtoMessage()
func (*DeleteAssistantRequest) ProtoReflect ¶
func (x *DeleteAssistantRequest) ProtoReflect() protoreflect.Message
func (*DeleteAssistantRequest) Reset ¶
func (x *DeleteAssistantRequest) Reset()
func (*DeleteAssistantRequest) SetAssistantId ¶
func (m *DeleteAssistantRequest) SetAssistantId(v string)
func (*DeleteAssistantRequest) String ¶
func (x *DeleteAssistantRequest) String() string
type DeleteAssistantResponse ¶
type DeleteAssistantResponse struct {
// contains filtered or unexported fields
}
Response message for the delete operation.
func (*DeleteAssistantResponse) Descriptor
deprecated
func (*DeleteAssistantResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAssistantResponse.ProtoReflect.Descriptor instead.
func (*DeleteAssistantResponse) ProtoMessage ¶
func (*DeleteAssistantResponse) ProtoMessage()
func (*DeleteAssistantResponse) ProtoReflect ¶
func (x *DeleteAssistantResponse) ProtoReflect() protoreflect.Message
func (*DeleteAssistantResponse) Reset ¶
func (x *DeleteAssistantResponse) Reset()
func (*DeleteAssistantResponse) String ¶
func (x *DeleteAssistantResponse) String() string
type GetAssistantRequest ¶
type GetAssistantRequest struct { // ID of the assistant to retrieve. AssistantId string `protobuf:"bytes,1,opt,name=assistant_id,json=assistantId,proto3" json:"assistant_id,omitempty"` // contains filtered or unexported fields }
Request message for retrieving an assistant by ID.
func (*GetAssistantRequest) Descriptor
deprecated
func (*GetAssistantRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAssistantRequest.ProtoReflect.Descriptor instead.
func (*GetAssistantRequest) GetAssistantId ¶
func (x *GetAssistantRequest) GetAssistantId() string
func (*GetAssistantRequest) ProtoMessage ¶
func (*GetAssistantRequest) ProtoMessage()
func (*GetAssistantRequest) ProtoReflect ¶
func (x *GetAssistantRequest) ProtoReflect() protoreflect.Message
func (*GetAssistantRequest) Reset ¶
func (x *GetAssistantRequest) Reset()
func (*GetAssistantRequest) SetAssistantId ¶
func (m *GetAssistantRequest) SetAssistantId(v string)
func (*GetAssistantRequest) String ¶
func (x *GetAssistantRequest) String() string
type ListAssistantVersionsRequest ¶
type ListAssistantVersionsRequest struct { // ID of the assistant whose versions are to be listed. AssistantId string `protobuf:"bytes,1,opt,name=assistant_id,json=assistantId,proto3" json:"assistant_id,omitempty"` // Maximum number of versions to return per page. PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Token to retrieve the next page of results. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
Request to list all versions of a specific assistant.
func (*ListAssistantVersionsRequest) Descriptor
deprecated
func (*ListAssistantVersionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAssistantVersionsRequest.ProtoReflect.Descriptor instead.
func (*ListAssistantVersionsRequest) GetAssistantId ¶
func (x *ListAssistantVersionsRequest) GetAssistantId() string
func (*ListAssistantVersionsRequest) GetPageSize ¶
func (x *ListAssistantVersionsRequest) GetPageSize() int64
func (*ListAssistantVersionsRequest) GetPageToken ¶
func (x *ListAssistantVersionsRequest) GetPageToken() string
func (*ListAssistantVersionsRequest) ProtoMessage ¶
func (*ListAssistantVersionsRequest) ProtoMessage()
func (*ListAssistantVersionsRequest) ProtoReflect ¶
func (x *ListAssistantVersionsRequest) ProtoReflect() protoreflect.Message
func (*ListAssistantVersionsRequest) Reset ¶
func (x *ListAssistantVersionsRequest) Reset()
func (*ListAssistantVersionsRequest) SetAssistantId ¶
func (m *ListAssistantVersionsRequest) SetAssistantId(v string)
func (*ListAssistantVersionsRequest) SetPageSize ¶
func (m *ListAssistantVersionsRequest) SetPageSize(v int64)
func (*ListAssistantVersionsRequest) SetPageToken ¶
func (m *ListAssistantVersionsRequest) SetPageToken(v string)
func (*ListAssistantVersionsRequest) String ¶
func (x *ListAssistantVersionsRequest) String() string
type ListAssistantVersionsResponse ¶
type ListAssistantVersionsResponse struct { // List of assistant versions. Versions []*AssistantVersion `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"` // Token to retrieve the next page of results. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response message containing the list versions operation.
func (*ListAssistantVersionsResponse) Descriptor
deprecated
func (*ListAssistantVersionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAssistantVersionsResponse.ProtoReflect.Descriptor instead.
func (*ListAssistantVersionsResponse) GetNextPageToken ¶
func (x *ListAssistantVersionsResponse) GetNextPageToken() string
func (*ListAssistantVersionsResponse) GetVersions ¶
func (x *ListAssistantVersionsResponse) GetVersions() []*AssistantVersion
func (*ListAssistantVersionsResponse) ProtoMessage ¶
func (*ListAssistantVersionsResponse) ProtoMessage()
func (*ListAssistantVersionsResponse) ProtoReflect ¶
func (x *ListAssistantVersionsResponse) ProtoReflect() protoreflect.Message
func (*ListAssistantVersionsResponse) Reset ¶
func (x *ListAssistantVersionsResponse) Reset()
func (*ListAssistantVersionsResponse) SetNextPageToken ¶
func (m *ListAssistantVersionsResponse) SetNextPageToken(v string)
func (*ListAssistantVersionsResponse) SetVersions ¶
func (m *ListAssistantVersionsResponse) SetVersions(v []*AssistantVersion)
func (*ListAssistantVersionsResponse) String ¶
func (x *ListAssistantVersionsResponse) String() string
type ListAssistantsRequest ¶
type ListAssistantsRequest struct { // Folder ID from which to list assistants. FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"` // Maximum number of assistants to return per page. PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Token to retrieve the next page of results. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
Request message for listing assistants in a specific folder.
func (*ListAssistantsRequest) Descriptor
deprecated
func (*ListAssistantsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAssistantsRequest.ProtoReflect.Descriptor instead.
func (*ListAssistantsRequest) GetFolderId ¶
func (x *ListAssistantsRequest) GetFolderId() string
func (*ListAssistantsRequest) GetPageSize ¶
func (x *ListAssistantsRequest) GetPageSize() int64
func (*ListAssistantsRequest) GetPageToken ¶
func (x *ListAssistantsRequest) GetPageToken() string
func (*ListAssistantsRequest) ProtoMessage ¶
func (*ListAssistantsRequest) ProtoMessage()
func (*ListAssistantsRequest) ProtoReflect ¶
func (x *ListAssistantsRequest) ProtoReflect() protoreflect.Message
func (*ListAssistantsRequest) Reset ¶
func (x *ListAssistantsRequest) Reset()
func (*ListAssistantsRequest) SetFolderId ¶
func (m *ListAssistantsRequest) SetFolderId(v string)
func (*ListAssistantsRequest) SetPageSize ¶
func (m *ListAssistantsRequest) SetPageSize(v int64)
func (*ListAssistantsRequest) SetPageToken ¶
func (m *ListAssistantsRequest) SetPageToken(v string)
func (*ListAssistantsRequest) String ¶
func (x *ListAssistantsRequest) String() string
type ListAssistantsResponse ¶
type ListAssistantsResponse struct { // List of assistants in the specified folder. Assistants []*Assistant `protobuf:"bytes,1,rep,name=assistants,proto3" json:"assistants,omitempty"` // Token to retrieve the next page of results. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response message for the list operation.
func (*ListAssistantsResponse) Descriptor
deprecated
func (*ListAssistantsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAssistantsResponse.ProtoReflect.Descriptor instead.
func (*ListAssistantsResponse) GetAssistants ¶
func (x *ListAssistantsResponse) GetAssistants() []*Assistant
func (*ListAssistantsResponse) GetNextPageToken ¶
func (x *ListAssistantsResponse) GetNextPageToken() string
func (*ListAssistantsResponse) ProtoMessage ¶
func (*ListAssistantsResponse) ProtoMessage()
func (*ListAssistantsResponse) ProtoReflect ¶
func (x *ListAssistantsResponse) ProtoReflect() protoreflect.Message
func (*ListAssistantsResponse) Reset ¶
func (x *ListAssistantsResponse) Reset()
func (*ListAssistantsResponse) SetAssistants ¶
func (m *ListAssistantsResponse) SetAssistants(v []*Assistant)
func (*ListAssistantsResponse) SetNextPageToken ¶
func (m *ListAssistantsResponse) SetNextPageToken(v string)
func (*ListAssistantsResponse) String ¶
func (x *ListAssistantsResponse) String() string
type PromptTruncationOptions ¶
type PromptTruncationOptions struct { // The maximum number of tokens allowed in the prompt. // If the prompt exceeds this limit, the thread messages will be truncated. // Default max_prompt_tokens: 7000 MaxPromptTokens *wrapperspb.Int64Value `protobuf:"bytes,1,opt,name=max_prompt_tokens,json=maxPromptTokens,proto3" json:"max_prompt_tokens,omitempty"` // contains filtered or unexported fields }
Defines the options for truncating thread messages within a prompt.
func (*PromptTruncationOptions) Descriptor
deprecated
func (*PromptTruncationOptions) Descriptor() ([]byte, []int)
Deprecated: Use PromptTruncationOptions.ProtoReflect.Descriptor instead.
func (*PromptTruncationOptions) GetMaxPromptTokens ¶
func (x *PromptTruncationOptions) GetMaxPromptTokens() *wrapperspb.Int64Value
func (*PromptTruncationOptions) ProtoMessage ¶
func (*PromptTruncationOptions) ProtoMessage()
func (*PromptTruncationOptions) ProtoReflect ¶
func (x *PromptTruncationOptions) ProtoReflect() protoreflect.Message
func (*PromptTruncationOptions) Reset ¶
func (x *PromptTruncationOptions) Reset()
func (*PromptTruncationOptions) SetMaxPromptTokens ¶
func (m *PromptTruncationOptions) SetMaxPromptTokens(v *wrapperspb.Int64Value)
func (*PromptTruncationOptions) String ¶
func (x *PromptTruncationOptions) String() string
type SearchIndexTool ¶
type SearchIndexTool struct { // A list of search index IDs that this tool will query. Currently, only a single index ID is supported. SearchIndexIds []string `protobuf:"bytes,1,rep,name=search_index_ids,json=searchIndexIds,proto3" json:"search_index_ids,omitempty"` // The maximum number of results to return from the search. // Fewer results may be returned if necessary to fit within the prompt's token limit. // This ensures that the combined prompt and search results do not exceed the token constraints. MaxNumResults *wrapperspb.Int64Value `protobuf:"bytes,2,opt,name=max_num_results,json=maxNumResults,proto3" json:"max_num_results,omitempty"` // contains filtered or unexported fields }
Configures a tool that enables Retrieval-Augmented Generation (RAG) by allowing the assistant to search across a specified search index.
func (*SearchIndexTool) Descriptor
deprecated
func (*SearchIndexTool) Descriptor() ([]byte, []int)
Deprecated: Use SearchIndexTool.ProtoReflect.Descriptor instead.
func (*SearchIndexTool) GetMaxNumResults ¶
func (x *SearchIndexTool) GetMaxNumResults() *wrapperspb.Int64Value
func (*SearchIndexTool) GetSearchIndexIds ¶
func (x *SearchIndexTool) GetSearchIndexIds() []string
func (*SearchIndexTool) ProtoMessage ¶
func (*SearchIndexTool) ProtoMessage()
func (*SearchIndexTool) ProtoReflect ¶
func (x *SearchIndexTool) ProtoReflect() protoreflect.Message
func (*SearchIndexTool) Reset ¶
func (x *SearchIndexTool) Reset()
func (*SearchIndexTool) SetMaxNumResults ¶
func (m *SearchIndexTool) SetMaxNumResults(v *wrapperspb.Int64Value)
func (*SearchIndexTool) SetSearchIndexIds ¶
func (m *SearchIndexTool) SetSearchIndexIds(v []string)
func (*SearchIndexTool) String ¶
func (x *SearchIndexTool) String() string
type Tool ¶
type Tool struct { // Types that are assignable to ToolType: // // *Tool_SearchIndex ToolType isTool_ToolType `protobuf_oneof:"ToolType"` // contains filtered or unexported fields }
Represents a general tool that can be one of several types.
func (*Tool) Descriptor
deprecated
func (*Tool) GetSearchIndex ¶
func (x *Tool) GetSearchIndex() *SearchIndexTool
func (*Tool) GetToolType ¶
func (m *Tool) GetToolType() isTool_ToolType
func (*Tool) ProtoMessage ¶
func (*Tool) ProtoMessage()
func (*Tool) ProtoReflect ¶
func (x *Tool) ProtoReflect() protoreflect.Message
func (*Tool) SetSearchIndex ¶
func (m *Tool) SetSearchIndex(v *SearchIndexTool)
func (*Tool) SetToolType ¶
func (m *Tool) SetToolType(v Tool_ToolType)
type Tool_SearchIndex ¶
type Tool_SearchIndex struct { // SearchIndexTool tool that performs search across specified indexes. SearchIndex *SearchIndexTool `protobuf:"bytes,1,opt,name=search_index,json=searchIndex,proto3,oneof"` }
type Tool_ToolType ¶
type Tool_ToolType = isTool_ToolType
type UnimplementedAssistantServiceServer ¶
type UnimplementedAssistantServiceServer struct{}
UnimplementedAssistantServiceServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAssistantServiceServer) Create ¶
func (UnimplementedAssistantServiceServer) Create(context.Context, *CreateAssistantRequest) (*Assistant, error)
func (UnimplementedAssistantServiceServer) Delete ¶
func (UnimplementedAssistantServiceServer) Delete(context.Context, *DeleteAssistantRequest) (*DeleteAssistantResponse, error)
func (UnimplementedAssistantServiceServer) Get ¶
func (UnimplementedAssistantServiceServer) Get(context.Context, *GetAssistantRequest) (*Assistant, error)
func (UnimplementedAssistantServiceServer) ListVersions ¶
func (UnimplementedAssistantServiceServer) ListVersions(context.Context, *ListAssistantVersionsRequest) (*ListAssistantVersionsResponse, error)
func (UnimplementedAssistantServiceServer) Update ¶
func (UnimplementedAssistantServiceServer) Update(context.Context, *UpdateAssistantRequest) (*Assistant, error)
type UnsafeAssistantServiceServer ¶
type UnsafeAssistantServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAssistantServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AssistantServiceServer will result in compilation errors.
type UpdateAssistantRequest ¶
type UpdateAssistantRequest struct { // ID of the assistant to update. AssistantId string `protobuf:"bytes,1,opt,name=assistant_id,json=assistantId,proto3" json:"assistant_id,omitempty"` // Field mask specifying which fields to update. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // New name for the assistant. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // New description for the assistant. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // New expiration configuration for the assistant. ExpirationConfig *common.ExpirationConfig `protobuf:"bytes,5,opt,name=expiration_config,json=expirationConfig,proto3" json:"expiration_config,omitempty"` // New set of labels for the assistant. Labels map[string]string `` /* 153-byte string literal not displayed */ // The new [ID of the model](/docs/foundation-models/concepts/yandexgpt/models) to be used for completion generation. ModelUri string `protobuf:"bytes,7,opt,name=model_uri,json=modelUri,proto3" json:"model_uri,omitempty"` // New instructions or guidelines for the assistant to follow. Instruction string `protobuf:"bytes,8,opt,name=instruction,proto3" json:"instruction,omitempty"` // New configuration for truncating the prompt. PromptTruncationOptions *PromptTruncationOptions `` /* 132-byte string literal not displayed */ // New configuration for completion generation. CompletionOptions *CompletionOptions `protobuf:"bytes,10,opt,name=completion_options,json=completionOptions,proto3" json:"completion_options,omitempty"` // New list of tools the assistant can use. Tools []*Tool `protobuf:"bytes,11,rep,name=tools,proto3" json:"tools,omitempty"` // contains filtered or unexported fields }
Request message for updating an existing assistant.
func (*UpdateAssistantRequest) Descriptor
deprecated
func (*UpdateAssistantRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAssistantRequest.ProtoReflect.Descriptor instead.
func (*UpdateAssistantRequest) GetAssistantId ¶
func (x *UpdateAssistantRequest) GetAssistantId() string
func (*UpdateAssistantRequest) GetCompletionOptions ¶
func (x *UpdateAssistantRequest) GetCompletionOptions() *CompletionOptions
func (*UpdateAssistantRequest) GetDescription ¶
func (x *UpdateAssistantRequest) GetDescription() string
func (*UpdateAssistantRequest) GetExpirationConfig ¶
func (x *UpdateAssistantRequest) GetExpirationConfig() *common.ExpirationConfig
func (*UpdateAssistantRequest) GetInstruction ¶
func (x *UpdateAssistantRequest) GetInstruction() string
func (*UpdateAssistantRequest) GetLabels ¶
func (x *UpdateAssistantRequest) GetLabels() map[string]string
func (*UpdateAssistantRequest) GetModelUri ¶
func (x *UpdateAssistantRequest) GetModelUri() string
func (*UpdateAssistantRequest) GetName ¶
func (x *UpdateAssistantRequest) GetName() string
func (*UpdateAssistantRequest) GetPromptTruncationOptions ¶
func (x *UpdateAssistantRequest) GetPromptTruncationOptions() *PromptTruncationOptions
func (*UpdateAssistantRequest) GetTools ¶
func (x *UpdateAssistantRequest) GetTools() []*Tool
func (*UpdateAssistantRequest) GetUpdateMask ¶
func (x *UpdateAssistantRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateAssistantRequest) ProtoMessage ¶
func (*UpdateAssistantRequest) ProtoMessage()
func (*UpdateAssistantRequest) ProtoReflect ¶
func (x *UpdateAssistantRequest) ProtoReflect() protoreflect.Message
func (*UpdateAssistantRequest) Reset ¶
func (x *UpdateAssistantRequest) Reset()
func (*UpdateAssistantRequest) SetAssistantId ¶
func (m *UpdateAssistantRequest) SetAssistantId(v string)
func (*UpdateAssistantRequest) SetCompletionOptions ¶
func (m *UpdateAssistantRequest) SetCompletionOptions(v *CompletionOptions)
func (*UpdateAssistantRequest) SetDescription ¶
func (m *UpdateAssistantRequest) SetDescription(v string)
func (*UpdateAssistantRequest) SetExpirationConfig ¶
func (m *UpdateAssistantRequest) SetExpirationConfig(v *common.ExpirationConfig)
func (*UpdateAssistantRequest) SetInstruction ¶
func (m *UpdateAssistantRequest) SetInstruction(v string)
func (*UpdateAssistantRequest) SetLabels ¶
func (m *UpdateAssistantRequest) SetLabels(v map[string]string)
func (*UpdateAssistantRequest) SetModelUri ¶
func (m *UpdateAssistantRequest) SetModelUri(v string)
func (*UpdateAssistantRequest) SetName ¶
func (m *UpdateAssistantRequest) SetName(v string)
func (*UpdateAssistantRequest) SetPromptTruncationOptions ¶
func (m *UpdateAssistantRequest) SetPromptTruncationOptions(v *PromptTruncationOptions)
func (*UpdateAssistantRequest) SetTools ¶
func (m *UpdateAssistantRequest) SetTools(v []*Tool)
func (*UpdateAssistantRequest) SetUpdateMask ¶
func (m *UpdateAssistantRequest) SetUpdateMask(v *fieldmaskpb.FieldMask)
func (*UpdateAssistantRequest) String ¶
func (x *UpdateAssistantRequest) String() string