command
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Apr 12, 2026
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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/
Source Files
¶
Click to show internal directories.
Click to hide internal directories.