actionprotocol

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Protocol   = protocolv4.Protocol
	TypeAction = protocolv4.TypeAction
	RiskLow    = protocolv4.RiskLow
	RiskMedium = protocolv4.RiskMedium
	RiskHigh   = protocolv4.RiskHigh
	Allow      = protocolv4.Allow
	AskUser    = protocolv4.AskUser
	Block      = protocolv4.Block
)

Variables

This section is empty.

Functions

func Marshal

func Marshal(action Action) (string, error)

func WithScope

func WithScope(ctx context.Context, taskID string) context.Context

Types

type Action

type Action = protocolv4.Action

func New

func New(ctx context.Context, capability, sessionID string, arguments map[string]any, risk, decision string) Action

func Parse

func Parse(content string) (Action, bool)

type ExpectedObservation added in v1.0.0

type ExpectedObservation = protocolv4.ExpectedObservation

type Policy

type Policy = protocolv4.Policy

Jump to

Keyboard shortcuts

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