Expand description
query_task tool - inspect the status of async background tasks.
Async tools (e.g. generate_image) return a pending placeholder and finish
in the background. Their final result is reinjected into the conversation
as a system notification when they complete, so the LLM normally doesn’t
need to poll. This tool exists for the cases where the LLM wants to check
what is still running or re-read a task’s final status (e.g. after several
tasks were launched in parallel).
The tool is stateless: it reads the per-Agent TaskRegistry supplied via
ToolContext, so a single shared instance works across every session.