echotool

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package echotool is the wiring fixture: one tool, `echo`, that returns its input and nothing else. It reads no file, opens no socket and starts no process, so it is the cheapest proof that declaration gating admits a named native toolset, and the cheapest chain step that is not a model call.

Index

Constants

View Source
const ToolEcho = "echo"

ToolEcho is the single tool this provider exposes. The name is the HITL policy key; renaming it is a policy change, not a refactor.

View Source
const ToolsProviderName = "native-echo"

ToolsProviderName is the tools-provider key this package registers under; the native- prefix is a namespace, not a gate: it keeps a declared MCP source from minting the same key. An allowlist addresses this toolset by that exact name — "*" admits it like any other, "!native-echo" removes it. Policy addresses it as `tools_policies.native-echo`.

Variables

This section is empty.

Functions

func NewTools

func NewTools() taskengine.ToolsRepo

NewTools returns the echo ToolsRepo under ToolsProviderName.

func NewToolsWith

func NewToolsWith(name string) taskengine.ToolsRepo

NewToolsWith is NewTools under an explicit toolset name, for a surface that registers it under another scoped key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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