stack

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Trace

func Trace(events []api.ChatEvent) []string

Types

type Chat

type Chat struct {
	Page *rod.Page
	// contains filtered or unexported fields
}

func Headless

func Headless(t *testing.T, h Host) *Chat

func Page

func Page(t *testing.T, h Host) *Chat

func (*Chat) Close

func (c *Chat) Close()

func (*Chat) Do

func (c *Chat) Do(command func(l thread.Link, op thread.Operation) thread.Command) error
func (c *Chat) Relink()

func (*Chat) Retry

func (c *Chat) Retry()

func (*Chat) Rewind

func (c *Chat) Rewind(round api.RoundID, text string)

func (*Chat) Send

func (c *Chat) Send(text string)

func (*Chat) State

func (c *Chat) State() api.ChatState

func (*Chat) Stop

func (c *Chat) Stop()

func (*Chat) Until

func (c *Chat) Until(match func(api.ChatEvent) bool) []api.ChatEvent

func (*Chat) Wait

func (c *Chat) Wait() []api.ChatEvent

type Host

type Host struct {
	Provider *testkit.Provider
	Config   api.ThreadConfig
	Island   api.IslandConfig
	Options  []common.Option
	Page     gox.Elem
}

Jump to

Keyboard shortcuts

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