llm

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 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 LLM

type LLM struct {
	base.BaseNode
	langchainllms.LLM
	Instance *v1alpha1.LLM
}

func NewLLM

func NewLLM(baseNode base.BaseNode) *LLM

func (*LLM) Init

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

func (*LLM) Ready

func (z *LLM) Ready() (isReady bool, msg string)

func (*LLM) Run

func (z *LLM) Run(ctx context.Context, _ 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