agent

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	base.BaseNode
}

func NewExecutor

func NewExecutor(baseNode base.BaseNode) *Executor

func (*Executor) Run

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

type StreamHandler

type StreamHandler struct {
	callbacks.SimpleHandler
	// contains filtered or unexported fields
}

StreamHandler is a callback handler that prints to the standard output streaming.

func (StreamHandler) HandleStreamingFunc

func (handler StreamHandler) HandleStreamingFunc(ctx context.Context, chunk []byte)

Jump to

Keyboard shortcuts

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