Background tasks enable runnables to execute asynchronously, allowing your agent to continue working on other tasks while long-running operations complete in the background. A unique task ID is assigned to each background task, which can be used to check status and retrieve results.Documentation Index
Fetch the complete documentation index at: https://docs.timbal.ai/llms.txt
Use this file to discover all available pages before exploring further.
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.