Documentation ¶
Index ¶
- func RegisterPromptingServer(s *grpc.Server, srv PromptingServer)
- type PromptRequest
- func (*PromptRequest) Descriptor() ([]byte, []int)
- func (m *PromptRequest) GetPrompt() string
- 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 PromptingClient
- type PromptingServer
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPromptingServer ¶ added in v0.6.0
func RegisterPromptingServer(s *grpc.Server, srv PromptingServer)
Types ¶
type PromptRequest ¶
type PromptRequest struct { Prompter string `protobuf:"bytes,1,opt,name=prompter,proto3" json:"prompter,omitempty"` Prompt string `protobuf:"bytes,2,opt,name=prompt,proto3" 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() string
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,proto3" 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 PromptingClient ¶ added in v0.6.0
type PromptingClient interface {
Prompt(ctx context.Context, in *PromptRequest, opts ...grpc.CallOption) (*PromptResponse, error)
}
PromptingClient is the client API for Prompting service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPromptingClient ¶ added in v0.6.0
func NewPromptingClient(cc *grpc.ClientConn) PromptingClient
type PromptingServer ¶ added in v0.6.0
type PromptingServer interface {
Prompt(context.Context, *PromptRequest) (*PromptResponse, error)
}
PromptingServer is the server API for Prompting service.
type Server ¶
type Server struct{}
Server provides an implementation of the Prompting service.
func (*Server) Prompt ¶
func (s *Server) Prompt(ctx context.Context, request *PromptRequest) (*PromptResponse, error)
Prompt facilitates prompting by registered prompters.
Click to show internal directories.
Click to hide internal directories.