Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssistantClient ¶ added in v1.1.1
type AssistantClient interface {
GenerateResponse(ctx context.Context, newMessage *structs.PromptMessage, historyMessages []*structs.PromptMessage) (string, error)
}
type AssistantService ¶
type AssistantService struct {
structs.UnimplementedAssistantServiceServer
// contains filtered or unexported fields
}
func NewService ¶
func NewService(asst AssistantClient) *AssistantService
type Server ¶
type Server struct {
structs.UnimplementedAssistantServiceServer
// contains filtered or unexported fields
}
func NewGRPCServer ¶
func NewGRPCServer(asst AssistantClient, opts ...ServerOption) (*Server, error)
type ServerOption ¶ added in v1.1.0
type ServerOption func(*serverConfig)
func WithCA ¶ added in v1.1.0
func WithCA(caPath string) ServerOption
func WithKeepalive ¶ added in v1.1.0
func WithKeepalive(params keepalive.ServerParameters) ServerOption
func WithMaxMsgSize ¶ added in v1.1.0
func WithMaxMsgSize(recvSize, sendSize int) ServerOption
func WithTLS ¶ added in v1.1.0
func WithTLS(certPath, keyPath string) ServerOption
Click to show internal directories.
Click to hide internal directories.