agenttool

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package agenttool provides a tool that allows an agent to call another agent. This enables composition of agents, which can be useful for scenarios where different types of `genai` tools cannot be used together.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(agent agent.Agent, cfg *Config) tool.Tool

New creates a new agent tool. If cfg is nil, skipSummarization defaults to false.

Types

type Config

type Config struct {
	// SkipSummarization, if true, will cause the agent to skip summarization
	// after the sub-agent finishes execution.
	SkipSummarization bool
}

Config holds the configuration for an agent tool.

Jump to

Keyboard shortcuts

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