events

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

type Emitter struct {
	// contains filtered or unexported fields
}

func NewEmitter

func NewEmitter(client kclient.WithWatch) *Emitter

func (*Emitter) ClearProgress

func (e *Emitter) ClearProgress(run *v1.Run)

func (*Emitter) Done

func (e *Emitter) Done(run *v1.Run)

func (*Emitter) Submit

func (e *Emitter) Submit(run *v1.Run, prg *gptscript.Program, frames gptscript.CallFrames)

func (*Emitter) SubmitProgress

func (e *Emitter) SubmitProgress(run *v1.Run, progress types.Progress)

func (*Emitter) Watch

func (e *Emitter) Watch(ctx context.Context, namespace string, opts WatchOptions) (*v1.Run, chan types.Progress, error)

type WatchOptions

type WatchOptions struct {
	History                  bool
	LastRunName              string
	MaxRuns                  int
	After                    bool
	ThreadName               string
	ThreadResourceVersion    string
	Follow                   bool
	FollowWorkflowExecutions bool
	Run                      *v1.Run
	WaitForThread            bool
}

Jump to

Keyboard shortcuts

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