generate

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: BSD-3-Clause Imports: 14 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 New

func New(palm palmClient) *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
}

func (Params) GetPrompt

func (n Params) GetPrompt() string

func (Params) GetProperties

func (n Params) GetProperties() []string

func (Params) GetTask

func (n Params) GetTask() string

Jump to

Keyboard shortcuts

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