toolmeta

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperationSpec

type OperationSpec struct {
	ToolDescriptor
	Mutating, Idempotent, PromptSafe bool
	TrustClass                       []string
	AuditKind                        string
}

func DefaultSpec

func DefaultSpec(name, desc string, schema json.RawMessage) OperationSpec

func MemoryToolOperationSpec

func MemoryToolOperationSpec(name string) (OperationSpec, bool)

type Spec

type Spec interface {
	Spec() OperationSpec
}

type Tool

type Tool interface {
	Name() string
	Description() string
	Schema() json.RawMessage
	Timeout() time.Duration
	Execute(ctx context.Context, args json.RawMessage) (json.RawMessage, error)
}

type ToolDescriptor

type ToolDescriptor struct {
	Name, Description string
	Schema            json.RawMessage
}

Jump to

Keyboard shortcuts

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