approvalqueue

package
v0.1.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFor

func ConfigFor(ctx context.Context, name string) (*llm.ApprovalConfig, bool)

ConfigFor returns the approval config for a tool.

func MarkTool

func MarkTool(ctx context.Context, name string, cfg *llm.ApprovalConfig)

MarkTool attaches approval configuration to a tool name.

func RequiresPrompt

func RequiresPrompt(ctx context.Context, name string) bool

RequiresPrompt reports whether a tool requires prompt-mode approval.

func RequiresQueue

func RequiresQueue(ctx context.Context, name string) bool

RequiresQueue reports whether a tool should be queued for approval.

func WithState

func WithState(ctx context.Context) context.Context

WithState ensures a mutable approval-queue state exists in context.

Types

type State

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

func StateFromContext

func StateFromContext(ctx context.Context) *State

StateFromContext returns the approval-queue state when present.

Jump to

Keyboard shortcuts

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