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
Click to show internal directories.
Click to hide internal directories.