01-minimal

command
v0.0.0-...-8a574d8 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Example 01: Minimal — one-shot prompt with an OpenAI-compatible provider.

Copy this file into a new Go project:

mkdir my-agent && cd my-agent
go mod init my-agent
cp main.go .
go mod tidy
OPENAI_API_KEY="sk-..." go run main.go

Jump to

Keyboard shortcuts

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