Run(). Use this to verify your LLM credentials and SDK install before adding tools or Temporal.
Source: examples/simple_agent/
What it demonstrates
NewAgentwithWithLLMClientandWithSystemPrompt- Blocking
Run()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
Tools
Add built-in and custom tools
Configuration
All agent options