toolmeta

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsConcurrencySafe

func IsConcurrencySafe(toolName string) bool

IsConcurrencySafe reports whether a tool is treated as safe for concurrent execution.

Types

type Category

type Category string

Category identifies the high-level behavior class of a Claude tool.

const (
	CategorySearch  Category = "search"
	CategoryRead    Category = "read"
	CategoryWrite   Category = "write"
	CategoryCommand Category = "command"
	CategoryOther   Category = "other"
)

func Classify

func Classify(toolName string) Category

Classify returns the SDK's best-effort category for a tool name.

type InterruptBehavior

type InterruptBehavior string

InterruptBehavior identifies the best-effort interrupt handling style for a tool.

const (
	InterruptBehaviorCancel InterruptBehavior = "cancel"
	InterruptBehaviorBlock  InterruptBehavior = "block"
)

func InterruptMode

func InterruptMode(toolName string) InterruptBehavior

InterruptMode returns the SDK's best-effort interrupt behavior hint.

type Metadata

type Metadata struct {
	Category          Category
	ConcurrencySafe   bool
	InterruptBehavior InterruptBehavior
}

Metadata summarizes the SDK's best-effort tool execution hints.

func Describe

func Describe(toolName string) Metadata

Describe returns the SDK's derived metadata for one tool.

Jump to

Keyboard shortcuts

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