Example 02: Tools — agent with a custom tool the model can call.
From the repo root:
OPENAI_API_KEY="sk-..." go run ./examples/02-tools/main.go
Or copy into a new module:
mkdir my-agent && cd my-agent && go mod init my-agent
cp main.go . && go get github.com/chinudotdev/pith-sdk@latest
OPENAI_API_KEY="sk-..." go run main.go