agenttool

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package agenttool adapts an agent.Agent into a tool.FuncTool via New, so one agent can be invoked as a tool by another.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(a *agent.Agent, config Config) tool.FuncTool

New creates a new FuncTool that invokes the given agent with the provided configuration. It panics if a is nil.

Types

type Config

type Config struct {
	RunOptions []agent.Option
}

Config represents the configuration for New.

Jump to

Keyboard shortcuts

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