Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AI21 ¶
type AI21 struct {
// contains filtered or unexported fields
}
func (*AI21) GetCompletion ¶
type AI21Response ¶
type AI21Response struct {
// contains filtered or unexported fields
}
func (*AI21Response) ParseResponse ¶
func (a *AI21Response) ParseResponse(rawResponse []byte) (string, error)
type AmazonCompletion ¶
type AmazonCompletion struct {
// contains filtered or unexported fields
}
func (*AmazonCompletion) GetCompletion ¶
func (a *AmazonCompletion) GetCompletion(ctx context.Context, prompt string, modelConfig BedrockModelConfig) ([]byte, error)
type AmazonResponse ¶
type AmazonResponse struct {
// contains filtered or unexported fields
}
func (*AmazonResponse) ParseResponse ¶
func (a *AmazonResponse) ParseResponse(rawResponse []byte) (string, error)
type BedrockModel ¶
type BedrockModel struct { Name string Completion ICompletion Response IResponse Config BedrockModelConfig }
type BedrockModelConfig ¶
type CohereCompletion ¶
type CohereCompletion struct {
// contains filtered or unexported fields
}
func (*CohereCompletion) GetCompletion ¶
func (a *CohereCompletion) GetCompletion(ctx context.Context, prompt string, modelConfig BedrockModelConfig) ([]byte, error)
type CohereResponse ¶
type CohereResponse struct {
// contains filtered or unexported fields
}
func (*CohereResponse) ParseResponse ¶
func (a *CohereResponse) ParseResponse(rawResponse []byte) (string, error)
type ICompletion ¶
Click to show internal directories.
Click to hide internal directories.