agent_tool_use

command
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Example: Agent with tool use — demonstrates the "20 lines of Go" goal.

This creates a tool-calling agent that can use a calculator and a search tool to answer questions.

Usage:

export OPENAI_API_KEY=sk-...
go run ./examples/agent_tool_use/

Jump to

Keyboard shortcuts

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