Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAIServiceServer(s grpc.ServiceRegistrar, srv AIServiceServer)
- type AIServiceClient
- type AIServiceServer
- type GenerateCellsRequest
- func (*GenerateCellsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateCellsRequest) GetNotebook() *v1.Notebook
- func (*GenerateCellsRequest) ProtoMessage()
- func (x *GenerateCellsRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateCellsRequest) Reset()
- func (x *GenerateCellsRequest) String() string
- type GenerateCellsResponse
- func (*GenerateCellsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateCellsResponse) GetCells() []*v1.Cell
- func (*GenerateCellsResponse) ProtoMessage()
- func (x *GenerateCellsResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateCellsResponse) Reset()
- func (x *GenerateCellsResponse) String() string
- type UnimplementedAIServiceServer
- type UnsafeAIServiceServer
Constants ¶
const (
AIService_GenerateCells_FullMethodName = "/runme.ai.v1alpha1.AIService/GenerateCells"
)
Variables ¶
var AIService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "runme.ai.v1alpha1.AIService", HandlerType: (*AIServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GenerateCells", Handler: _AIService_GenerateCells_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "runme/ai/v1alpha1/ai.proto", }
AIService_ServiceDesc is the grpc.ServiceDesc for AIService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_runme_ai_v1alpha1_ai_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAIServiceServer ¶
func RegisterAIServiceServer(s grpc.ServiceRegistrar, srv AIServiceServer)
Types ¶
type AIServiceClient ¶
type AIServiceClient interface { // GenerateCells uses the AI to generate cells to insert into the notebook. GenerateCells(ctx context.Context, in *GenerateCellsRequest, opts ...grpc.CallOption) (*GenerateCellsResponse, error) }
AIServiceClient is the client API for AIService 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.
The AIService service is used to provide assistant capabilities to Runme.
func NewAIServiceClient ¶
func NewAIServiceClient(cc grpc.ClientConnInterface) AIServiceClient
type AIServiceServer ¶
type AIServiceServer interface { // GenerateCells uses the AI to generate cells to insert into the notebook. GenerateCells(context.Context, *GenerateCellsRequest) (*GenerateCellsResponse, error) // contains filtered or unexported methods }
AIServiceServer is the server API for AIService service. All implementations must embed UnimplementedAIServiceServer for forward compatibility
The AIService service is used to provide assistant capabilities to Runme.
type GenerateCellsRequest ¶
type GenerateCellsRequest struct { Notebook *v1.Notebook `protobuf:"bytes,1,opt,name=notebook,proto3" json:"notebook,omitempty"` // contains filtered or unexported fields }
func (*GenerateCellsRequest) Descriptor
deprecated
func (*GenerateCellsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateCellsRequest.ProtoReflect.Descriptor instead.
func (*GenerateCellsRequest) GetNotebook ¶
func (x *GenerateCellsRequest) GetNotebook() *v1.Notebook
func (*GenerateCellsRequest) ProtoMessage ¶
func (*GenerateCellsRequest) ProtoMessage()
func (*GenerateCellsRequest) ProtoReflect ¶
func (x *GenerateCellsRequest) ProtoReflect() protoreflect.Message
func (*GenerateCellsRequest) Reset ¶
func (x *GenerateCellsRequest) Reset()
func (*GenerateCellsRequest) String ¶
func (x *GenerateCellsRequest) String() string
type GenerateCellsResponse ¶
type GenerateCellsResponse struct { Cells []*v1.Cell `protobuf:"bytes,1,rep,name=cells,proto3" json:"cells,omitempty"` // contains filtered or unexported fields }
func (*GenerateCellsResponse) Descriptor
deprecated
func (*GenerateCellsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateCellsResponse.ProtoReflect.Descriptor instead.
func (*GenerateCellsResponse) GetCells ¶
func (x *GenerateCellsResponse) GetCells() []*v1.Cell
func (*GenerateCellsResponse) ProtoMessage ¶
func (*GenerateCellsResponse) ProtoMessage()
func (*GenerateCellsResponse) ProtoReflect ¶
func (x *GenerateCellsResponse) ProtoReflect() protoreflect.Message
func (*GenerateCellsResponse) Reset ¶
func (x *GenerateCellsResponse) Reset()
func (*GenerateCellsResponse) String ¶
func (x *GenerateCellsResponse) String() string
type UnimplementedAIServiceServer ¶
type UnimplementedAIServiceServer struct { }
UnimplementedAIServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAIServiceServer) GenerateCells ¶
func (UnimplementedAIServiceServer) GenerateCells(context.Context, *GenerateCellsRequest) (*GenerateCellsResponse, error)
type UnsafeAIServiceServer ¶
type UnsafeAIServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAIServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AIServiceServer will result in compilation errors.