prompt

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prompt

type Prompt struct {
	base.BaseNode
	prompts.ChatPromptTemplate
	Instance *v1alpha1.Prompt
}

func NewPrompt

func NewPrompt(baseNode base.BaseNode) *Prompt

func (*Prompt) Init

func (p *Prompt) Init(ctx context.Context, cli client.Client, _ map[string]any) error

func (*Prompt) Ready

func (p *Prompt) Ready() (isReady bool, msg string)

func (*Prompt) Run

func (p *Prompt) Run(ctx context.Context, cli client.Client, args map[string]any) (map[string]any, error)

Jump to

Keyboard shortcuts

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