llmprovider

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleProvider

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

func (*GoogleProvider) Call

func (gp *GoogleProvider) Call(ctx context.Context, systemPrompt, userPrompt string) (string, error)

func (*GoogleProvider) Model

func (gp *GoogleProvider) Model() string

type OpenAiProvider added in v0.6.0

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

func (*OpenAiProvider) Call added in v0.6.0

func (provider *OpenAiProvider) Call(ctx context.Context, systemPrompt, userPrompt string) (string, error)

func (*OpenAiProvider) Model added in v0.6.0

func (provider *OpenAiProvider) Model() string

type Provider

type Provider interface {
	Call(ctx context.Context, systemPrompt, userPrompt string) (string, error)
	Model() string
}

func NewGoogleProvider

func NewGoogleProvider(ctx context.Context, cfg *config.Config) (Provider, error)

func NewOpenAiProvider added in v0.6.0

func NewOpenAiProvider(ctx context.Context, cfg *config.Config) (Provider, error)

func NewProvider added in v0.6.0

func NewProvider(ctx context.Context, cfg *config.Config) (Provider, error)

Jump to

Keyboard shortcuts

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