echo

package
v0.93.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package echo provides a reference echo tool for agent examples.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

type Tool struct{}

Tool echoes input text back to the model.

func (Tool) Description

func (Tool) Description() string

Description explains the tool to the model.

func (Tool) Execute

func (Tool) Execute(_ context.Context, id string, args map[string]any, _ tool.UpdateHandler) (msg.ToolResultMessage, error)

Execute returns the requested text.

func (Tool) Name

func (Tool) Name() string

Name returns the tool identifier.

func (Tool) Parameters

func (Tool) Parameters() map[string]any

Parameters returns the JSON schema for tool arguments.

Jump to

Keyboard shortcuts

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