binding

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Package binding maps canonical capabilities to stable presentation names.

Index

Constants

View Source
const MaxDirectNameLength = 64

MaxDirectNameLength is the provider-facing tool-name limit.

Variables

This section is empty.

Functions

func External

func External(kind Kind, canonicalNamespace, namespaceAlias string, operations []string) (map[string]Path, error)

External creates collision-safe paths for arbitrary external operation names.

func SiblingNamespace

func SiblingNamespace(slug string) string

SiblingNamespace maps a canonical kebab-case agent slug to a JS-safe alias.

Types

type Kind

type Kind byte

Kind identifies a capability namespace.

const (
	Air Kind = iota + 1
	Tool
	Connection
	Topic
	MCP
	Agent
)

type Path

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

Path carries canonical transport identity and presentation aliases.

func AgentPrompt

func AgentPrompt() Path

AgentPrompt returns the direct tool used for open-ended agent delegation.

func Local

func Local(kind Kind, namespace, operation string) Path

Local creates a path whose canonical and presentation names are identical.

func (Path) CanonicalNamespace

func (p Path) CanonicalNamespace() string

CanonicalNamespace returns the namespace used by transport dispatch.

func (Path) CanonicalOperation

func (p Path) CanonicalOperation() string

CanonicalOperation returns the operation used by transport dispatch.

func (Path) Direct

func (p Path) Direct() string

Direct returns the provider-facing direct tool name.

func (Path) JS

func (p Path) JS() string

JS returns the dotted run_js presentation path.

func (Path) JSParts

func (p Path) JSParts() []string

JSParts returns the object-property path used by run_js.

Jump to

Keyboard shortcuts

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