Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterIbodaiServer(s grpc.ServiceRegistrar, srv IbodaiServer)
- type AnnotatedEmbedding
- func (*AnnotatedEmbedding) Descriptor() ([]byte, []int)deprecated
- func (x *AnnotatedEmbedding) GetEnd() uint64
- func (x *AnnotatedEmbedding) GetStart() uint64
- func (x *AnnotatedEmbedding) GetVector() []float32
- func (*AnnotatedEmbedding) ProtoMessage()
- func (x *AnnotatedEmbedding) ProtoReflect() protoreflect.Message
- func (x *AnnotatedEmbedding) Reset()
- func (x *AnnotatedEmbedding) String() string
- type ClientMessage
- func (*ClientMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ClientMessage) GetClientToken() string
- func (x *ClientMessage) GetCommandId() string
- func (x *ClientMessage) GetData() []byte
- func (x *ClientMessage) GetExitCode() int32
- func (x *ClientMessage) GetType() ClientMessageType
- func (*ClientMessage) ProtoMessage()
- func (x *ClientMessage) ProtoReflect() protoreflect.Message
- func (x *ClientMessage) Reset()
- func (x *ClientMessage) String() string
- type ClientMessageType
- func (ClientMessageType) Descriptor() protoreflect.EnumDescriptor
- func (x ClientMessageType) Enum() *ClientMessageType
- func (ClientMessageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ClientMessageType) Number() protoreflect.EnumNumber
- func (x ClientMessageType) String() string
- func (ClientMessageType) Type() protoreflect.EnumType
- type Command
- type DirectoryIndex
- type FileEmbeddings
- func (*FileEmbeddings) Descriptor() ([]byte, []int)deprecated
- func (x *FileEmbeddings) GetEmbeddings() []*AnnotatedEmbedding
- func (x *FileEmbeddings) GetPath() string
- func (x *FileEmbeddings) GetUpdatedAt() *timestamppb.Timestamp
- func (*FileEmbeddings) ProtoMessage()
- func (x *FileEmbeddings) ProtoReflect() protoreflect.Message
- func (x *FileEmbeddings) Reset()
- func (x *FileEmbeddings) String() string
- type IbodaiClient
- type IbodaiServer
- type Ibodai_StreamClient
- type Ibodai_StreamServer
- type UnimplementedIbodaiServer
- type UnsafeIbodaiServer
Constants ¶
const (
Ibodai_Stream_FullMethodName = "/Ibodai/Stream"
)
Variables ¶
var ( ClientMessageType_name = map[int32]string{ 0: "HELLO", 1: "OUTPUT", 2: "DONE", } ClientMessageType_value = map[string]int32{ "HELLO": 0, "OUTPUT": 1, "DONE": 2, } )
Enum value maps for ClientMessageType.
var File_butterfish_proto protoreflect.FileDescriptor
var File_ibodai_proto protoreflect.FileDescriptor
var Ibodai_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Ibodai", HandlerType: (*IbodaiServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Stream", Handler: _Ibodai_Stream_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "ibodai.proto", }
Ibodai_ServiceDesc is the grpc.ServiceDesc for Ibodai service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIbodaiServer ¶ added in v0.1.0
func RegisterIbodaiServer(s grpc.ServiceRegistrar, srv IbodaiServer)
Types ¶
type AnnotatedEmbedding ¶
type AnnotatedEmbedding struct { Start uint64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"` // start index in bytes to the file chunk End uint64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"` // end index in bytes to the file chunk Vector []float32 `protobuf:"fixed32,4,rep,packed,name=vector,proto3" json:"vector,omitempty"` // contains filtered or unexported fields }
func (*AnnotatedEmbedding) Descriptor
deprecated
func (*AnnotatedEmbedding) Descriptor() ([]byte, []int)
Deprecated: Use AnnotatedEmbedding.ProtoReflect.Descriptor instead.
func (*AnnotatedEmbedding) GetEnd ¶
func (x *AnnotatedEmbedding) GetEnd() uint64
func (*AnnotatedEmbedding) GetStart ¶
func (x *AnnotatedEmbedding) GetStart() uint64
func (*AnnotatedEmbedding) GetVector ¶
func (x *AnnotatedEmbedding) GetVector() []float32
func (*AnnotatedEmbedding) ProtoMessage ¶
func (*AnnotatedEmbedding) ProtoMessage()
func (*AnnotatedEmbedding) ProtoReflect ¶
func (x *AnnotatedEmbedding) ProtoReflect() protoreflect.Message
func (*AnnotatedEmbedding) Reset ¶
func (x *AnnotatedEmbedding) Reset()
func (*AnnotatedEmbedding) String ¶
func (x *AnnotatedEmbedding) String() string
type ClientMessage ¶ added in v0.1.0
type ClientMessage struct { Type ClientMessageType `protobuf:"varint,1,opt,name=type,proto3,enum=ClientMessageType" json:"type,omitempty"` ClientToken string `protobuf:"bytes,2,opt,name=client_token,json=clientToken,proto3" json:"client_token,omitempty"` // for HELLO CommandId string `protobuf:"bytes,3,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"` // for OUTPUT and DONE Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // for OUTPUT ExitCode int32 `protobuf:"varint,5,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` // for DONE // contains filtered or unexported fields }
func (*ClientMessage) Descriptor
deprecated
added in
v0.1.0
func (*ClientMessage) Descriptor() ([]byte, []int)
Deprecated: Use ClientMessage.ProtoReflect.Descriptor instead.
func (*ClientMessage) GetClientToken ¶ added in v0.1.0
func (x *ClientMessage) GetClientToken() string
func (*ClientMessage) GetCommandId ¶ added in v0.1.0
func (x *ClientMessage) GetCommandId() string
func (*ClientMessage) GetData ¶ added in v0.1.0
func (x *ClientMessage) GetData() []byte
func (*ClientMessage) GetExitCode ¶ added in v0.1.0
func (x *ClientMessage) GetExitCode() int32
func (*ClientMessage) GetType ¶ added in v0.1.0
func (x *ClientMessage) GetType() ClientMessageType
func (*ClientMessage) ProtoMessage ¶ added in v0.1.0
func (*ClientMessage) ProtoMessage()
func (*ClientMessage) ProtoReflect ¶ added in v0.1.0
func (x *ClientMessage) ProtoReflect() protoreflect.Message
func (*ClientMessage) Reset ¶ added in v0.1.0
func (x *ClientMessage) Reset()
func (*ClientMessage) String ¶ added in v0.1.0
func (x *ClientMessage) String() string
type ClientMessageType ¶ added in v0.1.0
type ClientMessageType int32
const ( ClientMessageType_HELLO ClientMessageType = 0 ClientMessageType_OUTPUT ClientMessageType = 1 ClientMessageType_DONE ClientMessageType = 2 )
func (ClientMessageType) Descriptor ¶ added in v0.1.0
func (ClientMessageType) Descriptor() protoreflect.EnumDescriptor
func (ClientMessageType) Enum ¶ added in v0.1.0
func (x ClientMessageType) Enum() *ClientMessageType
func (ClientMessageType) EnumDescriptor
deprecated
added in
v0.1.0
func (ClientMessageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ClientMessageType.Descriptor instead.
func (ClientMessageType) Number ¶ added in v0.1.0
func (x ClientMessageType) Number() protoreflect.EnumNumber
func (ClientMessageType) String ¶ added in v0.1.0
func (x ClientMessageType) String() string
func (ClientMessageType) Type ¶ added in v0.1.0
func (ClientMessageType) Type() protoreflect.EnumType
type Command ¶ added in v0.1.0
type Command struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` // contains filtered or unexported fields }
The Command message is sent from the server to the client. The client should respond with a Response message with the same ID.
func (*Command) Descriptor
deprecated
added in
v0.1.0
func (*Command) GetCommand ¶ added in v0.1.0
func (*Command) ProtoMessage ¶ added in v0.1.0
func (*Command) ProtoMessage()
func (*Command) ProtoReflect ¶ added in v0.1.0
func (x *Command) ProtoReflect() protoreflect.Message
type DirectoryIndex ¶
type DirectoryIndex struct { // string should be a relative path, e.g. "./foo.txt" Files map[string]*FileEmbeddings `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
Represents the constituent files of a directory, this should map a relative path from the directory to a file within it (but not within a child dir).
func (*DirectoryIndex) Descriptor
deprecated
func (*DirectoryIndex) Descriptor() ([]byte, []int)
Deprecated: Use DirectoryIndex.ProtoReflect.Descriptor instead.
func (*DirectoryIndex) GetFiles ¶
func (x *DirectoryIndex) GetFiles() map[string]*FileEmbeddings
func (*DirectoryIndex) ProtoMessage ¶
func (*DirectoryIndex) ProtoMessage()
func (*DirectoryIndex) ProtoReflect ¶
func (x *DirectoryIndex) ProtoReflect() protoreflect.Message
func (*DirectoryIndex) Reset ¶
func (x *DirectoryIndex) Reset()
func (*DirectoryIndex) String ¶
func (x *DirectoryIndex) String() string
type FileEmbeddings ¶
type FileEmbeddings struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // filename, relative path to the DirectoryIndex, e.g. ./foo // When the embedding was created, if an earlier timestamp than the file // edit time then the file should be re-embedded. UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Embeddings []*AnnotatedEmbedding `protobuf:"bytes,3,rep,name=embeddings,proto3" json:"embeddings,omitempty"` // contains filtered or unexported fields }
func (*FileEmbeddings) Descriptor
deprecated
func (*FileEmbeddings) Descriptor() ([]byte, []int)
Deprecated: Use FileEmbeddings.ProtoReflect.Descriptor instead.
func (*FileEmbeddings) GetEmbeddings ¶
func (x *FileEmbeddings) GetEmbeddings() []*AnnotatedEmbedding
func (*FileEmbeddings) GetPath ¶
func (x *FileEmbeddings) GetPath() string
func (*FileEmbeddings) GetUpdatedAt ¶
func (x *FileEmbeddings) GetUpdatedAt() *timestamppb.Timestamp
func (*FileEmbeddings) ProtoMessage ¶
func (*FileEmbeddings) ProtoMessage()
func (*FileEmbeddings) ProtoReflect ¶
func (x *FileEmbeddings) ProtoReflect() protoreflect.Message
func (*FileEmbeddings) Reset ¶
func (x *FileEmbeddings) Reset()
func (*FileEmbeddings) String ¶
func (x *FileEmbeddings) String() string
type IbodaiClient ¶ added in v0.1.0
type IbodaiClient interface {
Stream(ctx context.Context, opts ...grpc.CallOption) (Ibodai_StreamClient, error)
}
IbodaiClient is the client API for Ibodai 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.
func NewIbodaiClient ¶ added in v0.1.0
func NewIbodaiClient(cc grpc.ClientConnInterface) IbodaiClient
type IbodaiServer ¶ added in v0.1.0
type IbodaiServer interface { Stream(Ibodai_StreamServer) error // contains filtered or unexported methods }
IbodaiServer is the server API for Ibodai service. All implementations must embed UnimplementedIbodaiServer for forward compatibility
type Ibodai_StreamClient ¶ added in v0.1.0
type Ibodai_StreamClient interface { Send(*ClientMessage) error Recv() (*Command, error) grpc.ClientStream }
type Ibodai_StreamServer ¶ added in v0.1.0
type Ibodai_StreamServer interface { Send(*Command) error Recv() (*ClientMessage, error) grpc.ServerStream }
type UnimplementedIbodaiServer ¶ added in v0.1.0
type UnimplementedIbodaiServer struct { }
UnimplementedIbodaiServer must be embedded to have forward compatible implementations.
func (UnimplementedIbodaiServer) Stream ¶ added in v0.1.0
func (UnimplementedIbodaiServer) Stream(Ibodai_StreamServer) error
type UnsafeIbodaiServer ¶ added in v0.1.0
type UnsafeIbodaiServer interface {
// contains filtered or unexported methods
}
UnsafeIbodaiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IbodaiServer will result in compilation errors.