MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / echoTool

Struct echoTool

internal/agent/agent_test.go:23–23  ·  view source on GitHub ↗

The agent loop prints `[tool] …` lines and assistant text to stdout by design (chapter 01). Tests don't silence them — running `go test -v` will interleave that output with the test runner's. Run without -v for a quiet pass/fail summary. echoTool is the minimal tool.Tool used by tests that need a re

Source from the content-addressed store, hash-verified

21// tool but don't care about its behavior. It returns its raw input as the
22// "tool result" so test code can confirm the agent's dispatch is wired up.
23type echoTool struct{}
24
25func (echoTool) Definition() api.ToolDef {
26 return api.ToolDef{Name: "echo", Description: "echoes its input"}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected