Help us shape the future of Go! Take the 2026 Go Developer Survey

controlstate

package
v7.68.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const FailedDisposition = "failed"

Variables

This section is empty.

Functions

func OwnsResult added in v7.1.5

func OwnsResult(message session.Message) bool

OwnsResult reports whether a control signal or its interaction resolution supplies the call's result, independently of ordinary tool execution.

func ResultMessage added in v7.68.3

func ResultMessage(call session.Message) (session.Message, bool, error)

ResultMessage projects a result owned by a canonical control call. Waiting calls are completed only by their durable interaction resolution.

Types

type Classification

type Classification uint8
const (
	Other Classification = iota
	WaitingInput
	WaitingControl
	Failed
	Invalid
)

func Classify

func Classify(signal *session.ControlSignalView) Classification

Classify is the single authority for persisted control-signal state.

Jump to

Keyboard shortcuts

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