01-hello

command
v0.2.0 Latest Latest
Warning

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

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

README

01-hello

Minimal pith-sdk example: create a client, define an agent, run one prompt.

Run from repo root

OPENAI_API_KEY="sk-..." go run ./examples/01-hello/main.go

Run as standalone module

mkdir my-agent && cd my-agent
go mod init my-agent
cp /path/to/pith-sdk/examples/01-hello/main.go .
go get github.com/chinudotdev/pith-sdk@latest
OPENAI_API_KEY="sk-..." go run main.go

Documentation

Overview

Example 01: Hello — minimal agent run with the pith-sdk.

From the repo root:

OPENAI_API_KEY="sk-..." go run ./examples/01-hello/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

Jump to

Keyboard shortcuts

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