Skip to main content

Troubleshooting

Agent Actions gives error messages that tell you what to do. It also has many debug options.

Logging Levels​

Environment VariableLevelShows
(default)INFOProgress and status updates
AGENT_ACTIONS_LOG_LEVEL=WARNINGWARNINGOnly warnings and errors
AGENT_ACTIONS_LOG_LEVEL=DEBUGDEBUGFull 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​

VariableDescription
ANTHROPIC_API_KEYAnthropic API key
OPENAI_API_KEYOpenAI API key
GEMINI_API_KEYGoogle Gemini API key
GROQ_API_KEYGroq API key
COHERE_API_KEYCohere API key
OLLAMA_API_KEYOllama Cloud API key

Exit Codes​

CodeMeaning
0Success
1General error
2Usage error (invalid arguments)
3agac run or agac retry finished, but an action holds a failed or exhausted record
4agac run or agac retry paused: a batch is open, or the run stopped before every action ended
5agac run or agac retry stopped because a provider answered that the quota or the credit of the account is at its limit
75Another command of the workflow holds its run lock, so nothing ran. Run the command again later
130The user interrupted the command (Ctrl+C)

For the full meaning of each code of agac run and agac retry, see Exit codes.

Debug Procedure​

  1. Read the console output at the default level (INFO) to see the execution flow.
  2. Use AGENT_ACTIONS_LOG_LEVEL=DEBUG to investigate specific errors.
  3. Examine the exception chains to find the root causes.
  4. Examine the context information (file paths, action names, operations).

See Also​