tools

package
v0.1.0-rc2 Latest Latest
Warning

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

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

Documentation

Overview

Package tools builds ADK toolsets from agentsmithy config tool references. Each entry in `tools.mcp` or `tools.a2a` lowers to a toolset that the pipeline attaches to autonomous agents that reference the tool by name.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolved

type Resolved struct {
	Name string
	// One of Tools or Toolset is populated. mcp entries produce a
	// toolset (lazy connection, expands at LLM time); a2a entries
	// produce a single tool wrapping a remote agent.
	Tools   []adktool.Tool
	Toolset adktool.Toolset
}

Resolved is the lowered form of one config tool entry.

func A2A

func A2A(name, url string) (Resolved, error)

A2A builds a tool wrapping a remote A2A agent.

func MCP

func MCP(name, urlOrAddr string) (Resolved, error)

MCP builds a toolset that connects to an MCP server over Streamable HTTP. urlOrAddr accepts either a full URL (`http://host:port/`) or a bare host:port, in which case the scheme defaults to http:// and the path defaults to `/`.

Jump to

Keyboard shortcuts

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