useAgentSession
Unpublished development API. This package is under development and is not available as a published release.
The session of the nearest AgentProvider: one stable object that behaves
as whichever session is current. Pass it anywhere a session is taken.
import { useAgentSession } from '@threadplane/react';Declaration · overload 1
export declare function useAgentSession<TSession extends object = AgentSession>(): TSession;Type parameters
TSessionobjectDefault:AgentSession
Returns
TSession