Const
Accesses the current state of the agent.
function AgentStateComponent() { const { initialized, initializing } = useAgentState(); return ( {initialized ? 'Agent is initialized.' : initializing ? 'Agent is initializing...' : 'Agent is not initialized.'} ); } Copy
function AgentStateComponent() { const { initialized, initializing } = useAgentState(); return ( {initialized ? 'Agent is initialized.' : initializing ? 'Agent is initializing...' : 'Agent is not initialized.'} ); }
Accesses the current state of the agent.