generate

package
v1.27.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractPropsFromPrompt added in v1.27.0

func ExtractPropsFromPrompt(prompt *string) []string

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, class *models.Class) interface{}

type Params

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

func (Params) GetPropertiesToExtract added in v1.27.0

func (n Params) GetPropertiesToExtract() []string

Jump to

Keyboard shortcuts

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