Run(). Use this to verify your LLM credentials and SDK install before adding tools or a durable runtime.
Source: examples/simple_agent/
What it demonstrates
NewAgentwithWithLLMClientandWithSystemPrompt- Blocking
Run()→Get()returningAgentRunResult - Optional token usage footer via
SHOW_LLM_USAGE=true
Run
Fromexamples/:
Key code
The example loads LLM settings fromexamples/.env and calls Run once:
Expected output
SHOW_LLM_USAGE=true.
Learn more
Quickstart
Build an agent in your own module
Run
AgentRun — Get, Done, Status, Cancel
Tools
Add built-in and custom tools