input

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package input projects compiled MCP payloads into canonical Bindly request providers. Bindly remains the sole binding and conversion owner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument

type Argument struct {
	PublicName string
	Aliases    []string
	Source     bindstate.Location
	SourceType reflect.Type
}

Argument is one public MCP argument mapped to its canonical provider source.

type Arguments

type Arguments map[string]interface{}

Arguments is an MCP tool's public JSON argument object.

type Compiler

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

Compiler owns the supported canonical source-kind registry.

func NewCompiler

func NewCompiler() *Compiler

func (*Compiler) Compile

func (c *Compiler) Compile(arguments []Argument) (*Plan, error)

type Plan

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

Plan is an immutable argument-to-provider projection.

func (*Plan) Arguments

func (p *Plan) Arguments() []Argument

func (*Plan) NormalizeArguments

func (p *Plan) NormalizeArguments(arguments map[string]interface{}) (map[string]interface{}, error)

NormalizeArguments projects tool argument aliases to canonical public names without mutating the caller-owned map.

func (*Plan) Scope

func (p *Plan) Scope(source Source) (*requestprovider.Scope, error)

Scope projects either MCP source through one compiled mapping into Bindly's canonical request providers. Bindly remains the sole owner of request-source lookup and component input conversion.

type Source

type Source interface {
	// contains filtered or unexported methods
}

Source resolves one compiled MCP argument from a protocol payload. The concrete sources below cover tool argument objects and resource URIs.

type URI

type URI struct {
	Path  map[string]string
	Query url.Values
}

URI is an already-decoded MCP resource URI.

Jump to

Keyboard shortcuts

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