Valora
API Reference@valora-ai/reactindexFunctions

useAgentSnapshot

function useAgentSnapshot(): {
  agent: VoiceAgent;
  snap: VoiceSnapshot;
};

Defined in: packages/react/src/room.tsx:65

Internal: subscribe to the room agent's snapshot via useSyncExternalStore. Shared by the mirrored hooks (useVoiceAssistant, useTranscriptions, …).

Returns

{
  agent: VoiceAgent;
  snap: VoiceSnapshot;
}

agent

agent: VoiceAgent;

snap

snap: VoiceSnapshot;

On this page

Valora is local-first

No API key, no server — everything in this doc runs on-device.

Star on GitHub