assistants

package
v0.0.0-...-aeb3b05 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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)

View Source
var File_yandex_cloud_ai_assistants_v1_assistant_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_ai_assistants_v1_assistant_service_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Assistant.ProtoReflect.Descriptor instead.

func (*Assistant) GetCompletionOptions

func (x *Assistant) GetCompletionOptions() *CompletionOptions

func (*Assistant) GetCreatedAt

func (x *Assistant) GetCreatedAt() *timestamppb.Timestamp

func (*Assistant) GetCreatedBy

func (x *Assistant) GetCreatedBy() string

func (*Assistant) GetDescription

func (x *Assistant) GetDescription() string

func (*Assistant) GetExpirationConfig

func (x *Assistant) GetExpirationConfig() *common.ExpirationConfig

func (*Assistant) GetExpiresAt

func (x *Assistant) GetExpiresAt() *timestamppb.Timestamp

func (*Assistant) GetFolderId

func (x *Assistant) GetFolderId() string

func (*Assistant) GetId

func (x *Assistant) GetId() string

func (*Assistant) GetInstruction

func (x *Assistant) GetInstruction() string

func (*Assistant) GetLabels

func (x *Assistant) GetLabels() map[string]string

func (*Assistant) GetModelUri

func (x *Assistant) GetModelUri() string

func (*Assistant) GetName

func (x *Assistant) GetName() string

func (*Assistant) GetPromptTruncationOptions

func (x *Assistant) GetPromptTruncationOptions() *PromptTruncationOptions

func (*Assistant) GetTools

func (x *Assistant) GetTools() []*Tool

func (*Assistant) GetUpdatedAt

func (x *Assistant) GetUpdatedAt() *timestamppb.Timestamp

func (*Assistant) GetUpdatedBy

func (x *Assistant) GetUpdatedBy() string

func (*Assistant) ProtoMessage

func (*Assistant) ProtoMessage()

func (*Assistant) ProtoReflect

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

func (*Assistant) Reset

func (x *Assistant) Reset()

func (*Assistant) SetCompletionOptions

func (m *Assistant) SetCompletionOptions(v *CompletionOptions)

func (*Assistant) SetCreatedAt

func (m *Assistant) SetCreatedAt(v *timestamppb.Timestamp)

func (*Assistant) SetCreatedBy

func (m *Assistant) SetCreatedBy(v string)

func (*Assistant) SetDescription

func (m *Assistant) SetDescription(v string)

func (*Assistant) SetExpirationConfig

func (m *Assistant) SetExpirationConfig(v *common.ExpirationConfig)

func (*Assistant) SetExpiresAt

func (m *Assistant) SetExpiresAt(v *timestamppb.Timestamp)

func (*Assistant) SetFolderId

func (m *Assistant) SetFolderId(v string)

func (*Assistant) SetId

func (m *Assistant) SetId(v string)

func (*Assistant) SetInstruction

func (m *Assistant) SetInstruction(v string)

func (*Assistant) SetLabels

func (m *Assistant) SetLabels(v map[string]string)

func (*Assistant) SetModelUri

func (m *Assistant) SetModelUri(v string)

func (*Assistant) SetName

func (m *Assistant) SetName(v string)

func (*Assistant) SetPromptTruncationOptions

func (m *Assistant) SetPromptTruncationOptions(v *PromptTruncationOptions)

func (*Assistant) SetTools

func (m *Assistant) SetTools(v []*Tool)

func (*Assistant) SetUpdatedAt

func (m *Assistant) SetUpdatedAt(v *timestamppb.Timestamp)

func (*Assistant) SetUpdatedBy

func (m *Assistant) SetUpdatedBy(v string)

func (*Assistant) String

func (x *Assistant) String() string

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.

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 (*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

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 (*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

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) Descriptor() ([]byte, []int)

Deprecated: Use Tool.ProtoReflect.Descriptor instead.

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) Reset

func (x *Tool) Reset()

func (*Tool) SetSearchIndex

func (m *Tool) SetSearchIndex(v *SearchIndexTool)

func (*Tool) SetToolType

func (m *Tool) SetToolType(v Tool_ToolType)

func (*Tool) String

func (x *Tool) String() string

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) Delete

func (UnimplementedAssistantServiceServer) Get

func (UnimplementedAssistantServiceServer) List

func (UnimplementedAssistantServiceServer) Update

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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