Documentation
¶
Index ¶
- Constants
- type StatefulWrapper
- type StatefulWrapperImpl
- func (w *StatefulWrapperImpl) Call(historyID uuid.UUID, newMessages []message.Message) ([]message.Message, error)
- func (w *StatefulWrapperImpl) GenerateId() uuid.UUID
- func (w *StatefulWrapperImpl) MaskSecrets(fileContent string) (*maskedSecret.MaskedEntry, error)
- func (w *StatefulWrapperImpl) SecureCall(cxAuth string, metaData *message.MetaData, historyID uuid.UUID, ...) ([]message.Message, error)
- func (w *StatefulWrapperImpl) SetupCall(setupMessages []message.Message)
- type StatelessWrapper
- type StatelessWrapperImpl
- func (w *StatelessWrapperImpl) Call(history []message.Message, newMessages []message.Message) ([]message.Message, error)
- func (w *StatelessWrapperImpl) MaskSecrets(fileContent string) (*maskedSecret.MaskedEntry, error)
- func (w *StatelessWrapperImpl) SecureCall(cxAuth string, metaData *message.MetaData, history []message.Message, ...) ([]message.Message, error)
- func (w *StatelessWrapperImpl) SetupCall(setupMessages []message.Message)
Constants ¶
View Source
const OpenAiEndPoint = "https://api.openai.com/v1/chat/completions"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatefulWrapper ¶
type StatefulWrapper interface {
GenerateId() uuid.UUID
SecureCall(cxAuth string, metaData *message.MetaData, historyID uuid.UUID, newMessages []message.Message) ([]message.Message, error)
Call(historyID uuid.UUID, newMessages []message.Message) ([]message.Message, error)
SetupCall(setupMessages []message.Message)
MaskSecrets(fileContent string) (*maskedSecret.MaskedEntry, error)
}
func NewStatefulWrapper ¶
func NewStatefulWrapper(storageConnector connector.Connector, apiKey, model string, dropLen, limit int) StatefulWrapper
NewStatefulWrapper will be deprecated in the future
func NewStatefulWrapperNew ¶
type StatefulWrapperImpl ¶
type StatefulWrapperImpl struct {
StatelessWrapper
// contains filtered or unexported fields
}
func (*StatefulWrapperImpl) GenerateId ¶
func (w *StatefulWrapperImpl) GenerateId() uuid.UUID
func (*StatefulWrapperImpl) MaskSecrets ¶
func (w *StatefulWrapperImpl) MaskSecrets(fileContent string) (*maskedSecret.MaskedEntry, error)
func (*StatefulWrapperImpl) SecureCall ¶
func (*StatefulWrapperImpl) SetupCall ¶
func (w *StatefulWrapperImpl) SetupCall(setupMessages []message.Message)
type StatelessWrapper ¶
type StatelessWrapper interface {
SecureCall(cxAuth string, metaData *message.MetaData, history []message.Message, newMessages []message.Message) ([]message.Message, error)
Call(history []message.Message, newMessages []message.Message) ([]message.Message, error)
SetupCall(setupMessages []message.Message)
MaskSecrets(fileContent string) (*maskedSecret.MaskedEntry, error)
}
func NewStatelessWrapper ¶
func NewStatelessWrapper(endPoint, apiKey, model string, dropLen, limit int) (StatelessWrapper, error)
type StatelessWrapperImpl ¶
type StatelessWrapperImpl struct {
// contains filtered or unexported fields
}
func (*StatelessWrapperImpl) MaskSecrets ¶
func (w *StatelessWrapperImpl) MaskSecrets(fileContent string) (*maskedSecret.MaskedEntry, error)
func (*StatelessWrapperImpl) SecureCall ¶
func (*StatelessWrapperImpl) SetupCall ¶
func (w *StatelessWrapperImpl) SetupCall(setupMessages []message.Message)
Click to show internal directories.
Click to hide internal directories.