useAgentThread() is the single-thread hook. It loads one thread by id and exposes the thread-level update, archive, and unarchive helpers for detail pages and editors.
Usage
The following example shows a basic usage of useAgentThread().
Execution-specific state such as pending approvals.
Overview
Use this hook when the UI already knows which thread it wants. It is the smallest thread read surface in the SDK, and it leaves events, assignments, conversation state, filesystem, and task graphs to the specialized hooks that sit beside it.