basic

command
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Command basic runs one prompt through a stateful agent and prints the final assistant message from the transcript.

The agent package wraps the llm package with retained history. Each Prompt appends the user message and every assistant/tool message produced by the run to the agent transcript.

The API key is read from the provider's environment variable when StreamOptions.APIKey is empty:

DEEPSEEK_API_KEY=sk-... go run ./example/agent/basic

Jump to

Keyboard shortcuts

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