generate

package
v1.26.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateProvider

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

func NewGeneric added in v1.26.0

func NewGeneric(
	additionalGenerativeParameters map[string]modulecapabilities.GenerativeProperty,
	defaultProviderName string,
	logger logrus.FieldLogger,
) *GenerateProvider

func (*GenerateProvider) AdditionalFieldFn

func (p *GenerateProvider) AdditionalFieldFn(classname string) *graphql.Field

func (*GenerateProvider) AdditionalPropertyDefaultValue

func (p *GenerateProvider) AdditionalPropertyDefaultValue() interface{}

func (*GenerateProvider) AdditionalPropertyFn

func (p *GenerateProvider) AdditionalPropertyFn(ctx context.Context,
	in []search.Result, params interface{}, limit *int,
	argumentModuleParams map[string]interface{}, cfg moduletools.ClassConfig,
) ([]search.Result, error)

func (*GenerateProvider) ExtractAdditionalFn

func (p *GenerateProvider) ExtractAdditionalFn(param []*ast.Argument) interface{}

type Params

type Params struct {
	Prompt     *string
	Task       *string
	Properties []string
	Debug      bool
	Options    map[string]interface{}
}

Jump to

Keyboard shortcuts

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