sdkserver

package
v0.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 32 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Creating runState = "creating"
	Running  runState = "running"
	Continue runState = "continue"
	Finished runState = "finished"
	Error    runState = "error"

	CallConfirm runner.EventType = "callConfirm"
	Prompt      runner.EventType = "prompt"
)

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, opts Options) error

Types

type Options

type Options struct {
	gptscript.Options

	ListenAddress string
	Debug         bool
}

type Session added in v0.8.0

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

func (*Session) Event added in v0.8.0

func (s *Session) Event(e runner.Event)

func (*Session) Pause added in v0.8.0

func (s *Session) Pause() func()

func (*Session) Stop added in v0.8.0

func (s *Session) Stop(output string, err error)

type SessionFactory added in v0.8.0

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

func NewSessionFactory added in v0.8.0

func NewSessionFactory(events *broadcaster.Broadcaster[event]) *SessionFactory

func (SessionFactory) Pause added in v0.8.0

func (s SessionFactory) Pause() func()

func (SessionFactory) Start added in v0.8.0

func (s SessionFactory) Start(ctx context.Context, prg *types.Program, env []string, input string) (runner.Monitor, error)

Jump to

Keyboard shortcuts

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