inventory

package
v1.0.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EffectObserve      = domain.EffectObserve
	EffectInput        = domain.EffectInput
	EffectPower        = domain.EffectPower
	EffectMedia        = domain.EffectMedia
	EffectAdmin        = domain.EffectAdmin
	EffectIrreversible = domain.EffectIrreversible
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

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

func New

func New(definitions []ToolDefinition) (Catalog, error)

func Static

func Static() Catalog

func (Catalog) All

func (c Catalog) All() []ToolDefinition

func (Catalog) Get

func (c Catalog) Get(name string) (ToolDefinition, bool)

type EffectClass

type EffectClass = domain.EffectClass

type ReceiptSemantics

type ReceiptSemantics string
const (
	ReceiptObservation ReceiptSemantics = "observation"
	ReceiptOperation   ReceiptSemantics = "operation"
)

type RetryPolicy

type RetryPolicy string
const (
	RetryBoundedRead    RetryPolicy = "bounded_read"
	RetryNeverAfterSend RetryPolicy = "never_after_send"
)

type ToolDefinition

type ToolDefinition struct {
	Name         string
	Toolset      string
	Effect       EffectClass
	ReadOnly     bool
	Destructive  bool
	Idempotent   bool
	OpenWorld    bool
	DeviceScoped bool
	Capability   string
	InputSchema  string
	OutputSchema string
	Retry        RetryPolicy
	Receipt      ReceiptSemantics
}

ToolDefinition is static metadata. Runtime credentials, connections and authorization state must never be captured here.

Jump to

Keyboard shortcuts

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