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

control

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AskUserTool = "ask_user"
)

Variables

This section is empty.

Functions

func IsControlTool

func IsControlTool(name string) bool

func ToolDefinitions

func ToolDefinitions() []tools.ToolDefinition

Types

type Signal

type Signal struct {
	Kind    SignalKind
	Prompt  string
	Output  string
	Payload map[string]any
}

func AskUser

func AskUser(calls []provider.ToolCall) (Signal, bool)

func Project

func Project(call provider.ToolCall) (Signal, bool, error)

type SignalKind

type SignalKind string
const (
	SignalNone    SignalKind = ""
	SignalAskUser SignalKind = "ask_user"
)

Jump to

Keyboard shortcuts

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