generative

package
v1.27.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

func NewParser

func NewParser(uses127Api bool) *Parser

func (*Parser) Extract

func (p *Parser) Extract(req *pb.GenerativeSearch, class *models.Class) *generate.Params

func (*Parser) ProviderName

func (p *Parser) ProviderName() string

func (*Parser) ReturnMetadata

func (p *Parser) ReturnMetadata() bool

type Replier

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

func NewReplier

func NewReplier(logger logrus.FieldLogger, providerNameGetter func() string, returnMetadataGetter func() bool, uses127Api bool) *Replier

func (*Replier) Extract

func (r *Replier) Extract(_additional map[string]any, params any, metadata *pb.MetadataResult) (*pb.GenerativeResult, string, error)

Jump to

Keyboard shortcuts

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