harness

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Done

func Done() provider.StreamEvent

func DoneReason

func DoneReason(reason string) provider.StreamEvent

func Empty

func Empty() provider.StreamEvent

func Hang

func Hang() provider.StreamEvent

func Step

func Step(events ...provider.StreamEvent) []provider.StreamEvent

func Text

func Text(text string) provider.StreamEvent

func Tool

func Tool(id, name, args string) provider.StreamEvent

func Truncated

func Truncated(reason string) provider.StreamEvent

func Usage

func Usage(usage provider.Usage) provider.StreamEvent

Types

type ScriptedProvider

type ScriptedProvider struct {
	Steps    [][]provider.StreamEvent
	Requests []provider.Request
	Errs     map[int]error
	// contains filtered or unexported fields
}

func NewScriptedProvider

func NewScriptedProvider(steps ...[]provider.StreamEvent) *ScriptedProvider

func (*ScriptedProvider) Stream

func (p *ScriptedProvider) Stream(ctx context.Context, req provider.Request) (<-chan provider.StreamEvent, error)

Jump to

Keyboard shortcuts

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