Documentation ¶
Index ¶
- func RegisterPromptServer(s *grpc.Server, srv PromptServer)
- type PromptClient
- type PromptRequest
- func (*PromptRequest) Descriptor() ([]byte, []int)
- func (m *PromptRequest) GetPrompt() *prompt.Prompt
- func (m *PromptRequest) GetPrompter() string
- func (*PromptRequest) ProtoMessage()
- func (m *PromptRequest) Reset()
- func (m *PromptRequest) String() string
- func (m *PromptRequest) XXX_DiscardUnknown()
- func (m *PromptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PromptRequest) XXX_Merge(src proto.Message)
- func (m *PromptRequest) XXX_Size() int
- func (m *PromptRequest) XXX_Unmarshal(b []byte) error
- type PromptResponse
- func (*PromptResponse) Descriptor() ([]byte, []int)
- func (m *PromptResponse) GetResponse() string
- func (*PromptResponse) ProtoMessage()
- func (m *PromptResponse) Reset()
- func (m *PromptResponse) String() string
- func (m *PromptResponse) XXX_DiscardUnknown()
- func (m *PromptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PromptResponse) XXX_Merge(src proto.Message)
- func (m *PromptResponse) XXX_Size() int
- func (m *PromptResponse) XXX_Unmarshal(b []byte) error
- type PromptServer
- type Prompter
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPromptServer ¶
func RegisterPromptServer(s *grpc.Server, srv PromptServer)
Types ¶
type PromptClient ¶
type PromptClient interface {
Prompt(ctx context.Context, in *PromptRequest, opts ...grpc.CallOption) (*PromptResponse, error)
}
func NewPromptClient ¶
func NewPromptClient(cc *grpc.ClientConn) PromptClient
type PromptRequest ¶
type PromptRequest struct { Prompter string `protobuf:"bytes,1,opt,name=prompter" json:"prompter,omitempty"` Prompt *prompt.Prompt `protobuf:"bytes,2,opt,name=prompt" json:"prompt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PromptRequest) Descriptor ¶
func (*PromptRequest) Descriptor() ([]byte, []int)
func (*PromptRequest) GetPrompt ¶
func (m *PromptRequest) GetPrompt() *prompt.Prompt
func (*PromptRequest) GetPrompter ¶
func (m *PromptRequest) GetPrompter() string
func (*PromptRequest) ProtoMessage ¶
func (*PromptRequest) ProtoMessage()
func (*PromptRequest) Reset ¶
func (m *PromptRequest) Reset()
func (*PromptRequest) String ¶
func (m *PromptRequest) String() string
func (*PromptRequest) XXX_DiscardUnknown ¶
func (m *PromptRequest) XXX_DiscardUnknown()
func (*PromptRequest) XXX_Marshal ¶
func (m *PromptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PromptRequest) XXX_Merge ¶
func (dst *PromptRequest) XXX_Merge(src proto.Message)
func (*PromptRequest) XXX_Size ¶
func (m *PromptRequest) XXX_Size() int
func (*PromptRequest) XXX_Unmarshal ¶
func (m *PromptRequest) XXX_Unmarshal(b []byte) error
type PromptResponse ¶
type PromptResponse struct { Response string `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PromptResponse) Descriptor ¶
func (*PromptResponse) Descriptor() ([]byte, []int)
func (*PromptResponse) GetResponse ¶
func (m *PromptResponse) GetResponse() string
func (*PromptResponse) ProtoMessage ¶
func (*PromptResponse) ProtoMessage()
func (*PromptResponse) Reset ¶
func (m *PromptResponse) Reset()
func (*PromptResponse) String ¶
func (m *PromptResponse) String() string
func (*PromptResponse) XXX_DiscardUnknown ¶
func (m *PromptResponse) XXX_DiscardUnknown()
func (*PromptResponse) XXX_Marshal ¶
func (m *PromptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PromptResponse) XXX_Merge ¶
func (dst *PromptResponse) XXX_Merge(src proto.Message)
func (*PromptResponse) XXX_Size ¶
func (m *PromptResponse) XXX_Size() int
func (*PromptResponse) XXX_Unmarshal ¶
func (m *PromptResponse) XXX_Unmarshal(b []byte) error
type PromptServer ¶
type PromptServer interface {
Prompt(context.Context, *PromptRequest) (*PromptResponse, error)
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Prompt ¶
func (s *Server) Prompt(ctx context.Context, request *PromptRequest) (*PromptResponse, error)
func (*Server) RegisterPrompter ¶
func (*Server) UnregisterPrompter ¶
Click to show internal directories.
Click to hide internal directories.