Skip to content
providerkit
GitHub

useAgentRun

function useAgentRun(options): AgentRunValue;

Defined in: react/src/hooks.ts:146

A run to watch and answer, such as a background agent’s: the same store as useChat, without sending. Open it mid-run and it catches up from the host; open it after the run ended and it shows how it ended.

Parameter Type
options UseAgentRunOptions

AgentRunValue