external_services

package
v0.0.0-...-252cb5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoogleGenAIAdapter

func NewGoogleGenAIAdapter(
	ctx context.Context,
	apiKey string,
	builder interfaces.PromptBuilder,
) (interfaces.MessageGenerator, error)

Types

type GoogleGenAIAdapter

type GoogleGenAIAdapter struct {
	// contains filtered or unexported fields
}

func (*GoogleGenAIAdapter) Generate

func (g *GoogleGenAIAdapter) Generate(ctx context.Context, prompt entities.Prompt) (string, error)

type OllamaAdapter

type OllamaAdapter struct {
	// contains filtered or unexported fields
}

func NewOllamaAdapter

func NewOllamaAdapter(builder interfaces.PromptBuilder) (*OllamaAdapter, error)

func (*OllamaAdapter) Generate

func (o *OllamaAdapter) Generate(ctx context.Context, prompt entities.Prompt) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL