Troubleshooting
Agent Actions gives error messages that tell you what to do. It also has many debug options.
Logging Levels
| Environment Variable | Level | Shows |
|---|---|---|
| (default) | INFO | Progress and status updates |
AGENT_ACTIONS_LOG_LEVEL=WARNING | WARNING | Only warnings and errors |
AGENT_ACTIONS_LOG_LEVEL=DEBUG | DEBUG | Full exception chains, context and tracebacks |
Debug Mode
To see the full context of an error, set the AGENT_ACTIONS_LOG_LEVEL environment variable:
bash
BASH
AGENT_ACTIONS_LOG_LEVEL=DEBUG agac run -w my_workflow
Debug mode shows:
- Full exception chains that show where errors started
- Context information (file paths, action names, operations)
- Complete Python tracebacks
For complex problems, send the debug output to a file: AGENT_ACTIONS_LOG_LEVEL=DEBUG agac run -w my_workflow > debug.log 2>&1
Environment Variables
| Variable | Description |
|---|---|
ANTHROPIC_API_KEY | Anthropic API key |
OPENAI_API_KEY | OpenAI API key |
GEMINI_API_KEY | Google Gemini API key |
GROQ_API_KEY | Groq API key |
COHERE_API_KEY | Cohere API key |
OLLAMA_API_KEY | Ollama Cloud API key |
Exit Codes
| Code | Meaning |
|---|---|
0 | Success |
1 | General error |
2 | Usage error (invalid arguments) |
3 | agac run or agac retry finished, but an action holds a failed or exhausted record |
4 | agac run or agac retry paused: a batch is open, or the run stopped before every action ended |
5 | agac run or agac retry stopped because a provider answered that the quota or the credit of the account is at its limit |
75 | Another command of the workflow holds its run lock, so nothing ran. Run the command again later |
130 | The user interrupted the command (Ctrl+C) |
For the full meaning of each code of agac run and agac retry, see Exit codes.
Debug Procedure
- Read the console output at the default level (
INFO) to see the execution flow. - Use
AGENT_ACTIONS_LOG_LEVEL=DEBUGto investigate specific errors. - Examine the exception chains to find the root causes.
- Examine the context information (file paths, action names, operations).
See Also
- run Command: Run workflows
- schema Command: Validate field references before execution