Documentation
¶
Index ¶
- Variables
- func RegisterAiProxyServiceServer(s *grpc.Server, srv AiProxyServiceServer)
- type AiProxyServiceClient
- type AiProxyServiceServer
- type RedirectPromptRequest
- func (*RedirectPromptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RedirectPromptRequest) GetContent() []byte
- func (x *RedirectPromptRequest) GetFeature() string
- func (x *RedirectPromptRequest) GetOrigin() string
- func (x *RedirectPromptRequest) GetRequestId() string
- func (x *RedirectPromptRequest) GetTenant() string
- func (*RedirectPromptRequest) ProtoMessage()
- func (x *RedirectPromptRequest) ProtoReflect() protoreflect.Message
- func (x *RedirectPromptRequest) Reset()
- func (x *RedirectPromptRequest) String() string
- type RedirectPromptResponse
- func (*RedirectPromptResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RedirectPromptResponse) GetContent() []byte
- func (x *RedirectPromptResponse) GetGenAiErrorCode() int32
- func (x *RedirectPromptResponse) GetOrigin() string
- func (x *RedirectPromptResponse) GetRequestId() string
- func (x *RedirectPromptResponse) GetTenant() string
- func (*RedirectPromptResponse) ProtoMessage()
- func (x *RedirectPromptResponse) ProtoReflect() protoreflect.Message
- func (x *RedirectPromptResponse) Reset()
- func (x *RedirectPromptResponse) String() string
- type UnimplementedAiProxyServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_redirect_prompt_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAiProxyServiceServer ¶
func RegisterAiProxyServiceServer(s *grpc.Server, srv AiProxyServiceServer)
Types ¶
type AiProxyServiceClient ¶
type AiProxyServiceClient interface {
RedirectPrompt(ctx context.Context, in *RedirectPromptRequest, opts ...grpc.CallOption) (*RedirectPromptResponse, error)
}
AiProxyServiceClient is the client API for AiProxyService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAiProxyServiceClient ¶
func NewAiProxyServiceClient(cc grpc.ClientConnInterface) AiProxyServiceClient
type AiProxyServiceServer ¶
type AiProxyServiceServer interface {
RedirectPrompt(context.Context, *RedirectPromptRequest) (*RedirectPromptResponse, error)
}
AiProxyServiceServer is the server API for AiProxyService service.
type RedirectPromptRequest ¶
type RedirectPromptRequest struct {
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
Origin string `protobuf:"bytes,3,opt,name=origin,proto3" json:"origin,omitempty"`
Feature string `protobuf:"bytes,4,opt,name=feature,proto3" json:"feature,omitempty"`
Content []byte `protobuf:"bytes,10,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}
func (*RedirectPromptRequest) Descriptor
deprecated
func (*RedirectPromptRequest) Descriptor() ([]byte, []int)
Deprecated: Use RedirectPromptRequest.ProtoReflect.Descriptor instead.
func (*RedirectPromptRequest) GetContent ¶
func (x *RedirectPromptRequest) GetContent() []byte
func (*RedirectPromptRequest) GetFeature ¶
func (x *RedirectPromptRequest) GetFeature() string
func (*RedirectPromptRequest) GetOrigin ¶
func (x *RedirectPromptRequest) GetOrigin() string
func (*RedirectPromptRequest) GetRequestId ¶
func (x *RedirectPromptRequest) GetRequestId() string
func (*RedirectPromptRequest) GetTenant ¶
func (x *RedirectPromptRequest) GetTenant() string
func (*RedirectPromptRequest) ProtoMessage ¶
func (*RedirectPromptRequest) ProtoMessage()
func (*RedirectPromptRequest) ProtoReflect ¶
func (x *RedirectPromptRequest) ProtoReflect() protoreflect.Message
func (*RedirectPromptRequest) Reset ¶
func (x *RedirectPromptRequest) Reset()
func (*RedirectPromptRequest) String ¶
func (x *RedirectPromptRequest) String() string
type RedirectPromptResponse ¶
type RedirectPromptResponse struct {
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
Origin string `protobuf:"bytes,3,opt,name=origin,proto3" json:"origin,omitempty"`
GenAiErrorCode int32 `protobuf:"varint,8,opt,name=gen_ai_error_code,json=genAiErrorCode,proto3" json:"gen_ai_error_code,omitempty"`
Content []byte `protobuf:"bytes,10,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}
func (*RedirectPromptResponse) Descriptor
deprecated
func (*RedirectPromptResponse) Descriptor() ([]byte, []int)
Deprecated: Use RedirectPromptResponse.ProtoReflect.Descriptor instead.
func (*RedirectPromptResponse) GetContent ¶
func (x *RedirectPromptResponse) GetContent() []byte
func (*RedirectPromptResponse) GetGenAiErrorCode ¶
func (x *RedirectPromptResponse) GetGenAiErrorCode() int32
func (*RedirectPromptResponse) GetOrigin ¶
func (x *RedirectPromptResponse) GetOrigin() string
func (*RedirectPromptResponse) GetRequestId ¶
func (x *RedirectPromptResponse) GetRequestId() string
func (*RedirectPromptResponse) GetTenant ¶
func (x *RedirectPromptResponse) GetTenant() string
func (*RedirectPromptResponse) ProtoMessage ¶
func (*RedirectPromptResponse) ProtoMessage()
func (*RedirectPromptResponse) ProtoReflect ¶
func (x *RedirectPromptResponse) ProtoReflect() protoreflect.Message
func (*RedirectPromptResponse) Reset ¶
func (x *RedirectPromptResponse) Reset()
func (*RedirectPromptResponse) String ¶
func (x *RedirectPromptResponse) String() string
type UnimplementedAiProxyServiceServer ¶
type UnimplementedAiProxyServiceServer struct {
}
UnimplementedAiProxyServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAiProxyServiceServer) RedirectPrompt ¶
func (*UnimplementedAiProxyServiceServer) RedirectPrompt(context.Context, *RedirectPromptRequest) (*RedirectPromptResponse, error)
Click to show internal directories.
Click to hide internal directories.