Configuring Background Mode
Thebackground_mode parameter controls when a runnable (tool) executes asynchronously. It has three values:
"never"(default)"always""auto": The LLM decides whether to run it in the background or not.
Bash tool is an example of a background task. When configured with background_mode="auto", the Agent determines whether to run the shell command in the background or synchronously.