@smarthivelabs-devs/react-ai-nexus
v2.3.5
Published
React hooks for the SmartHive AI Nexus SDK
Readme
@smarthivelabs-devs/react-ai-nexus
React hooks and context provider for the SmartHive AI Nexus. Wraps @smarthivelabs-devs/ai-nexus in idiomatic React patterns — loading states, streaming, error handling, and cleanup are all managed for you.
What this package is: A React-specific layer. Use it in any React 18+ app (Vite, Create React App, Remix, etc.). For Next.js, also see @smarthivelabs-devs/next-ai-nexus. For React Native/Expo, see @smarthivelabs-devs/ai-nexus-expo.
Requirements
- React ≥ 18
- The shared AI Nexus client is included and re-exported automatically
livekit-client≥ 2@mediapipe/tasks-vision≥ 0.10 when browser vision is enabled
Private realtime agent with automatic vision context
import { usePrivateAgentSession } from "@smarthivelabs-devs/react-ai-nexus";
export function InterviewRoom() {
const interview = usePrivateAgentSession({
agentId: "interviewer-v1",
behavior: "interviewer",
vision: { preset: "interview" },
onVisionObservation: (observations) => {
// Optional UI-only access. AI context delivery is automatic.
console.log(observations);
},
});
return (
<main>
<p>Signaling: {interview.readiness.signaling}</p>
<p>Agent: {interview.readiness.agent}</p>
<p>Vision: {interview.readiness.vision}</p>
<button onClick={() => void interview.start()}>Start</button>
<button onClick={() => void interview.controller.control("interrupt")}>Stop AI speech</button>
<button onClick={() => void interview.end()}>End</button>
</main>
);
}The hook owns LiveKit, enables the camera and microphone, analyzes the existing local camera track, sends compact structured changes to the agent, and resumes reliable events after a reconnect. Raw frames are not uploaded or retained by the preset.
Plain React builds should provision models once during the build:
npx ai-nexus-models install --platform web --detectors face,object,pose,hand
npx ai-nexus-models verify --detectors face,object,pose,handNext.js projects should use withAiNexus, which performs this step automatically.
Installation
npm install @smarthivelabs-devs/react-ai-nexus
npm install livekit-client @mediapipe/tasks-vision
# or
yarn add @smarthivelabs-devs/react-ai-nexus livekit-client @mediapipe/tasks-vision@smarthivelabs-devs/ai-nexus is bundled as a dependency of this package — do not install it in the app. For Next.js, use withAiNexus from @smarthivelabs-devs/next-ai-nexus, which pins a single resolved copy for Turbopack/webpack.
Environment Setup
Never place a permanent AI Nexus API key in a browser bundle. React hooks use the AiNexus client you provide, so browser applications should point that client at a secured application backend or the Next.js proxy described in @smarthivelabs-devs/next-ai-nexus.
# Never put this in a .env file that ships to the browser (VITE_*, NEXT_PUBLIC_*, etc.)
# For browser-based apps, use next-ai-nexus proxy handler or your own backend relay.
AI_NEXUS_API_KEY=nexus_live_xxxxxxxxxxxxxxxxxxxx
# Optional — only if self-hosting
AI_NEXUS_BASE_URL=https://api.smarthivelabs.devFor pure client-side apps (no server), point the client at a proxied endpoint:
// Calls your backend /api/nexus/* which injects the real key server-side
const nexus = new AiNexus({ apiKey: 'public', baseUrl: '/api/nexus' });Setup — AiNexusProvider
Create one AiNexus client and wrap your app. All hooks read the client from context.
// main.tsx (or _app.tsx in Next.js Pages Router)
import {
AiNexus,
AiNexusProvider,
} from '@smarthivelabs-devs/react-ai-nexus';
// The real AI_NEXUS_API_KEY remains inside your backend/proxy.
const nexus = new AiNexus({
apiKey: 'browser-proxy',
baseUrl: '/api/nexus',
});
export default function Root() {
return (
<AiNexusProvider client={nexus}>
<App />
</AiNexusProvider>
);
}All hooks below must be used inside a component tree wrapped by AiNexusProvider. If you forget, you'll get a clear error:
useAiNexus() must be called inside an <AiNexusProvider>.
Hook: useChat
Streaming chat with full message history, RAG support, and abort control.
import { useChat } from '@smarthivelabs-devs/react-ai-nexus';
function ChatWidget() {
const [input, setInput] = useState('');
const { messages, isLoading, error, append, reload, stop, setMessages } = useChat({
model: 'aeon',
// Optional — tried in order if 'aeon' fails
fallbackModels: ['solaris', 'prism'],
// Optional — inject retrieved documents into each user message automatically
knowledgeBaseId: 'kb_xyz789',
// Optional — prepended as the system message on every request
systemPrompt: 'You are a helpful customer support agent.',
// Optional — seed the conversation with existing messages
initialMessages: [{ role: 'assistant', content: 'Hi! How can I help?' }],
temperature: 0.7, // optional — 0 to 2
maxTokens: 1024, // optional
onFinish: (message) => {
console.log('Assistant finished:', message.content);
},
onError: (err) => {
console.error('Chat error:', err.message);
},
});
return (
<div>
{messages.map((m, i) => (
<div key={i} className={m.role === 'user' ? 'user' : 'assistant'}>
{typeof m.content === 'string' ? m.content : '[multimodal]'}
</div>
))}
{isLoading && <span>Thinking...</span>}
{error && <span className="error">{error.message}</span>}
<input value={input} onChange={e => setInput(e.target.value)} />
<button onClick={() => { append(input); setInput(''); }} disabled={isLoading}>
Send
</button>
<button onClick={stop} disabled={!isLoading}>Stop</button>
<button onClick={reload} disabled={isLoading || messages.length === 0}>Retry</button>
</div>
);
}Return values:
| Field | Type | Description |
|-------|------|-------------|
| messages | ChatMessage[] | Full conversation history including the streaming assistant message |
| isLoading | boolean | true while a request is in flight |
| error | Error \| null | Last error, if any |
| append(content) | (string) => Promise<void> | Add a user message and trigger a completion |
| reload() | () => Promise<void> | Re-run the last user message |
| stop() | () => void | Abort the current streaming response |
| setMessages | Dispatch | Directly update the message list |
Hook: useAgent
Run a named agent with optional session continuity across multiple turns.
import { useAgent } from '@smarthivelabs-devs/react-ai-nexus';
function AgentPanel() {
const { run, output, sessionId, isLoading, error, reset } = useAgent({
agentId: 'agent_abc123',
onFinish: (res) => console.log('Finished. Session:', res.sessionId),
onError: (err) => console.error(err),
});
const handleAsk = async () => {
// Pass custom context to the agent on each turn
await run('What are my open tickets?', { userId: 'user_456', tier: 'pro' });
};
const handleFollowUp = async () => {
// sessionId is preserved automatically — next run continues the same session
await run('Show me only the critical ones.');
};
return (
<div>
{output && <p>{output}</p>}
{sessionId && <small>Session: {sessionId}</small>}
{isLoading && <span>Running agent...</span>}
{error && <span className="error">{error.message}</span>}
<button onClick={handleAsk} disabled={isLoading}>Ask</button>
<button onClick={handleFollowUp} disabled={isLoading || !sessionId}>Follow up</button>
<button onClick={reset}>New session</button>
</div>
);
}Return values:
| Field | Type | Description |
|-------|------|-------------|
| run(input, context?) | (string, object?) => Promise<AgentsRunResponse> | Run the agent. Automatically uses sessionId from previous turn. |
| output | string \| null | Last response text |
| sessionId | string \| null | Current session ID (auto-maintained across turns) |
| isLoading | boolean | true while agent is running |
| error | Error \| null | Last error |
| reset() | () => void | Clear output and start a fresh session next call |
Hook: usePrivateAgentSession (recommended)
usePrivateAgentSession is the high-level browser controller. It creates the Nexus session, owns LiveKit, publishes microphone/camera tracks, registers reliable events, restores the connection, and can automatically deliver structured vision context.
const realtime = usePrivateAgentSession({
agentId: "support-agent-v2",
behavior: {
preset: "support",
overrides: {
language: {
mode: "automatic",
allowed: ["en", "fr", "es"],
allowCodeSwitching: true,
},
silence: {
firstPromptMs: 15_000,
secondPromptMs: 30_000,
endSessionMs: 90_000,
},
},
},
vision: {
preset: "product-support",
overrides: {
targetFps: 4,
contextPolicy: { mode: "signals" },
},
},
onEvent: (event) => {
console.log(event.sequence, event.turnId, event.type);
},
onError: console.error,
});
await realtime.start();Return value:
| Field | Purpose |
|---|---|
| session | Current Nexus session and additive LiveKit credentials |
| events | Last 2,000 ordered nexus.rtc.v1 envelopes |
| readiness | Separate signaling, media, agent, provider, vision, and recording status |
| error | Last connection or session error |
| start() | Creates and connects a private session |
| resume() | Requests fresh credentials and replays missed reliable events |
| end() | Ends the agent and service session |
| controller | Low-level RealtimeRoomSession for media and explicit controls |
Common controls:
await realtime.controller.setMicrophoneEnabled(false);
await realtime.controller.setCameraEnabled(true);
await realtime.controller.setScreenShareEnabled(true);
await realtime.controller.control("interrupt");
await realtime.controller.control("request-vision-frame");For client-executed tools defined on the agent version, register handlers after connection:
import { registerNexusToolHandler } from "@smarthivelabs-devs/react-ai-nexus";
const created = await realtime.start();
const room = realtime.controller.currentRoom;
if (room) {
registerNexusToolHandler(room, {
save_answer: async (call) => {
await saveAnswerSecurely(call.arguments);
return { saved: true };
},
});
}Validate authorization and arguments inside every handler. A model-generated tool call is never authorization by itself.
Transient LiveKit failures are recovered automatically. The SDK resumes with the last applied reliable sequence and ignores replay duplicates.
Vision presets
| Preset | Intended application | Browser status |
|---|---|---|
| interview | Face presence/count and configured objects | Face and object analysis available |
| camera-basic | General face/object context | Available |
| presentation | Face and pose context | Face and pose available; classification may be reduced |
| product-support | Product objects, OCR and classification | Object available; unsupported detectors report reduced |
| whiteboard | OCR and scene changes | Reports reduced until browser OCR is installed |
| accessibility | On-demand object/OCR context | Object available; OCR may be reduced |
| document | On-demand OCR/classification | Reports reduced without a compatible analyzer |
| none | Disable analysis | Off |
The bundled MediaPipe adapter currently implements face, object, pose, and hand observations. Configure workerFactory or workerUrl to run it off the UI thread; the hook drops stale frames and falls back to the main-thread adapter if the worker cannot start. Supply a custom BrowserVisionAnalyzer to add compatible OCR, gesture, segmentation, or classification models. Unsupported requested detectors do not silently report success.
Raw landmarks can be exposed to application UI callbacks, but the realtime coordinator sends only compact counts, labels, boxes, and permitted text to the agent. Raw frames are not uploaded by these presets.
Low-level vision hooks
Use these when vision is not attached to a realtime room:
const vision = useVisionAnalysis({
config: {
detectors: ["face", "object", "pose"],
sources: ["local-camera"],
targetFps: 5,
confidenceThreshold: 0.6,
contextPolicy: { mode: "signals" },
},
onObservations: console.log,
workerFactory: () => new Worker(
new URL("@smarthivelabs-devs/react-ai-nexus/vision-worker", import.meta.url),
{ type: "module" },
),
});
await vision.startAnalysis(videoElement);Aliases are exported for discoverability: useFacialAnalysis, useObjectDetection, usePoseAnalysis, useGestureRecognition, and useRealtimeVisionContext. They share the same generic configuration and normalized output; they do not infer identity, honesty, health, or suitability for the agent.
Configurable coaching / proctoring metrics
Opt in to local UI metrics. These stay in the application — the SDK never mixes them into agent vision context.
import { useFacialAnalysis } from "@smarthivelabs-devs/react-ai-nexus";
const face = useFacialAnalysis({
config: {
detectors: ["face"],
sources: ["local-camera"],
targetFps: 8,
contextPolicy: { mode: "signals" },
},
metrics: {
enabled: true,
profile: "interview", // or "presentation" | "proctoring" | "custom"
// dimensions / events / feedback / summary are fully overridable
},
});
await face.startAnalysis(videoElement);
console.log(face.metrics.eyeContact, face.feedback, face.proctoringWarning);
const summary = face.getSessionSummary(); // serializable wrap-up payloadCustom dimensions example:
metrics: {
enabled: true,
profile: "custom",
dimensions: [
{
key: "eyeContact",
label: "Eye contact",
signals: ["eyeContact", "gaze"],
idealMin: 40,
idealMax: 90,
tipLow: "Look toward the camera a bit more.",
weight: 0.5,
},
{
key: "attentiveness",
label: "Presence",
signals: ["attention", "faceCount"],
tipLow: "Stay framed in the camera.",
weight: 0.5,
},
],
events: { lookAwayHeadDegrees: 40, multiFacePercent: 5 },
}Disable metrics entirely by omitting metrics or setting enabled: false.
Hybrid: backend-minted sessions
When your API mints private sessions (recommended for interview ownership), use useRealtimeAgentSession — no livekit-client imports in app code.
import { useRealtimeAgentSession } from "@smarthivelabs-devs/react-ai-nexus";
const session = useRealtimeAgentSession({
// playRemoteAudio: true by default
onTranscript: (entry) => console.log(entry.role, entry.text, entry.final),
});
await session.connect(creds.livekitUrl, creds.livekitToken);
await session.say("Welcome.");
await session.inject("Stay on the scored script.");
session.setMuted(true);
// Built-in React state: transcript, liveTranscript, localMicTrack, assistantTrack
session.disconnect();Low-level escape hatch: RealtimeRoomSession (same transport: mic, TTS playback, transcripts, vision/metrics, publishData, observer joins with enableMicrophone: false). Prefer usePrivateAgentSession when the browser creates the session through an authenticated Next proxy.
Meeting sessions
useRealtimeMeeting uses meeting topology but should only be enabled when your deployment has the separate multi-participant worker. Private one-person-to-agent sessions should always use usePrivateAgentSession.
Hook: useVoiceCall (legacy credential-level API)
This lower-level compatibility hook creates the Nexus session, returns LiveKit credentials, polls transcript history, and handles recording. It does not own LiveKit media. New applications should use usePrivateAgentSession.
import { useVoiceCall } from '@smarthivelabs-devs/react-ai-nexus';
import { Room } from 'livekit-client';
function VoiceCallPanel() {
const roomRef = useRef<Room | null>(null);
const {
state, // 'idle' | 'connecting' | 'active' | 'ending' | 'ended' | 'error'
sessionId,
livekitUrl, // pass to livekit-client Room.connect()
livekitToken, // pass to livekit-client Room.connect()
isMuted,
toggleMute,
transcript, // TranscriptEntry[] — { role, text, timestamp }[]
error,
start,
end,
startRecording,
stopRecording,
} = useVoiceCall({
agentId: 'agent_abc123',
mode: 'voice', // 'voice' | 'text' | 'duplex'
features: ['transcription', 'tts', 'vad'],
// How often to poll the server for new transcript entries (ms)
// Default: 2000
pollIntervalMs: 2_000,
onTranscript: (entry) => {
console.log(`${entry.role} [${entry.timestamp}]: ${entry.text}`);
},
onError: (err) => console.error('Voice call error:', err),
});
// Connect to LiveKit once the session is active
useEffect(() => {
if (state === 'active' && livekitUrl && livekitToken) {
const room = new Room();
roomRef.current = room;
room.connect(livekitUrl, livekitToken).catch(console.error);
return () => { void room.disconnect(); };
}
}, [state, livekitUrl, livekitToken]);
const handleStopRecording = async () => {
const url = await stopRecording('mp4');
console.log('Recording available at:', url);
};
return (
<div>
<p>Status: <strong>{state}</strong></p>
{state === 'idle' && (
<button onClick={start}>Start call</button>
)}
{state === 'active' && (
<>
<button onClick={end}>End call</button>
<button onClick={toggleMute}>{isMuted ? 'Unmute' : 'Mute'}</button>
<button onClick={startRecording}>Record</button>
<button onClick={handleStopRecording}>Stop recording</button>
</>
)}
{error && <p className="error">{error.message}</p>}
<div className="transcript">
{transcript.map((t, i) => (
<p key={i}><strong>{t.role}</strong>: {t.text}</p>
))}
</div>
</div>
);
}Return values:
| Field | Type | Description |
|-------|------|-------------|
| state | VoiceCallState | Current lifecycle state |
| sessionId | string \| null | Session ID once active |
| livekitUrl | string \| null | WebSocket URL for LiveKit room connection |
| livekitToken | string \| null | JWT token for LiveKit room connection |
| isMuted | boolean | Local mute state (you must wire this to your LiveKit participant) |
| toggleMute() | () => void | Toggles isMuted |
| transcript | TranscriptEntry[] | Running list of conversation turns |
| error | Error \| null | Last error |
| start() | () => Promise<void> | Create session, set livekitUrl/livekitToken, begin polling |
| end() | () => Promise<void> | End session and stop polling |
| startRecording() | () => Promise<void> | Start server-side recording |
| stopRecording(format?) | (format?) => Promise<string \| null> | Stop recording, returns URL |
VoiceCallState transitions:
idle → connecting → active → ending → ended
↘ errorHook: useImages
Generate images with automatic job polling. The hook handles the queued → processing → completed lifecycle.
import { useImages } from '@smarthivelabs-devs/react-ai-nexus';
function ImageGenerator() {
const { generate, job, isLoading, error } = useImages();
const handleGenerate = async () => {
const result = await generate({
prompt: 'A serene Japanese garden at dawn',
size: '1024x1024',
quality: 'hd',
style: 'natural',
});
// result.status === 'completed' here
console.log(result.data?.[0]?.url);
};
return (
<div>
<button onClick={handleGenerate} disabled={isLoading}>
{isLoading ? `Generating... (${job?.status})` : 'Generate'}
</button>
{error && <p className="error">{error.message}</p>}
{job?.status === 'completed' && job.data?.[0]?.url && (
<img src={job.data[0].url} alt="Generated" />
)}
</div>
);
}Return values:
| Field | Type | Description |
|-------|------|-------------|
| generate(params) | (ImagesGenerateParams) => Promise<ImageJob> | Start generation and poll until complete |
| job | ImageJob \| null | Live job state (updates every 2 s during processing) |
| isLoading | boolean | true while generating or polling |
| error | Error \| null | Last error |
Hook: useModeration
Check content before sending it to other APIs or storing it.
import { useModeration } from '@smarthivelabs-devs/react-ai-nexus';
function CommentForm() {
const { moderate, result, isLoading } = useModeration();
const [text, setText] = useState('');
const handleSubmit = async () => {
const check = await moderate({ input: text });
if (check.flagged) {
alert('Content violates policy');
return;
}
// safe to submit
};
return (
<div>
<textarea value={text} onChange={e => setText(e.target.value)} />
{result?.flagged && <p className="warning">Content flagged</p>}
<button onClick={handleSubmit} disabled={isLoading}>Submit</button>
</div>
);
}Hook: useDocuments
Manage a knowledge base: list, ingest, and delete documents.
import { useDocuments } from '@smarthivelabs-devs/react-ai-nexus';
function KnowledgeBasePanel() {
const { documents, ingest, remove, refresh, isLoading, error } = useDocuments({
knowledgeBaseId: 'kb_xyz789', // optional — scope to one KB
autoFetch: true, // auto-load on mount (default: true)
});
const handleIngest = async () => {
await ingest({
storageUrl: 'https://storage.example.com/q1-report.pdf',
knowledgeBaseId: 'kb_xyz789',
metadata: { quarter: 'Q1 2026' },
});
// list refreshes automatically after ingest
};
return (
<div>
<button onClick={handleIngest}>Add Document</button>
<button onClick={refresh}>Refresh</button>
{isLoading && <span>Loading...</span>}
{error && <span className="error">{error.message}</span>}
<ul>
{documents.map(doc => (
<li key={doc.documentId}>
{doc.filename ?? doc.documentId} — {doc.status}
{doc.status === 'completed' && ` (${doc.chunkCount} chunks)`}
<button onClick={() => remove(doc.documentId)}>Delete</button>
</li>
))}
</ul>
</div>
);
}Hook: useEmbeddings
Generate embeddings on demand.
import { useEmbeddings } from '@smarthivelabs-devs/react-ai-nexus';
function EmbeddingsDemo() {
const { embed, data, isLoading, error } = useEmbeddings({
model: 'weave',
// Optional — tried in order if 'weave' fails
fallbackModels: ['weave-pro'],
});
const handleEmbed = async () => {
await embed(['Hello world', 'Goodbye world']);
};
return (
<div>
<button onClick={handleEmbed} disabled={isLoading}>Embed</button>
{data && (
<p>Got {data.data.length} embeddings of size {data.data[0]?.embedding.length}</p>
)}
</div>
);
}Hook: useTranslate
Translate text to any language using the configured translation provider (DeepL etc.).
import { useTranslate } from '@smarthivelabs-devs/react-ai-nexus';
function TranslateWidget() {
const { translate, result, isLoading, error } = useTranslate();
const handleTranslate = async () => {
const res = await translate('Hello, how are you?', 'DE');
// res.translatedText → "Hallo, wie geht es Ihnen?"
// res.detectedSourceLang → "EN"
};
return (
<div>
<button onClick={handleTranslate} disabled={isLoading}>
{isLoading ? 'Translating...' : 'Translate to German'}
</button>
{error && <p className="error">{error.message}</p>}
{result && <p>{result.translatedText}</p>}
</div>
);
}// With a fixed model profile
const { translate } = useTranslate({ model: 'deepl_translate_default' });
await translate('Good morning', 'JA', 'EN'); // → "おはようございます"Return values:
| Field | Type | Description |
|-------|------|-------------|
| translate(text, targetLang, sourceLang?) | (...) => Promise<TranslateResponse> | Translate text. sourceLang is auto-detected if omitted. |
| result | TranslateResponse \| null | Last translation result |
| isLoading | boolean | true while translating |
| error | Error \| null | Last error |
Common target language codes: DE FR ES IT PT-BR JA ZH KO RU AR NL PL SV TR UK
Hook: useVideoUnderstanding
Analyze and describe video content (requires a Twelve Labs pre-indexed video ID).
import { useVideoUnderstanding } from '@smarthivelabs-devs/react-ai-nexus';
function VideoAnalyzer({ videoId }: { videoId: string }) {
const { analyze, result, isLoading, error } = useVideoUnderstanding();
const handleAnalyze = async () => {
const res = await analyze(videoId, 'What are the key moments in this video?');
console.log(res.text); // detailed description
};
return (
<div>
<button onClick={handleAnalyze} disabled={isLoading}>
{isLoading ? 'Analyzing video...' : 'Analyze'}
</button>
{error && <p className="error">{error.message}</p>}
{result && <p className="description">{result.text}</p>}
</div>
);
}Return values:
| Field | Type | Description |
|-------|------|-------------|
| analyze(videoId, query?) | (...) => Promise<VideoUnderstandingResponse> | Analyze a pre-indexed video. query defaults to a generic description prompt. |
| result | VideoUnderstandingResponse \| null | Last analysis result |
| isLoading | boolean | true while analyzing (may take 10–30 s) |
| error | Error \| null | Last error |
Direct Client Access
For anything not covered by the hooks, call the underlying client directly:
import { useAiNexus } from '@smarthivelabs-devs/react-ai-nexus';
function HealthBadge() {
const nexus = useAiNexus();
const [status, setStatus] = useState<string>('checking...');
useEffect(() => {
nexus.health.check().then(h => setStatus(h.status));
}, [nexus]);
return <span className={`badge badge-${status}`}>{status}</span>;
}Realtime security and privacy
- Keep permanent API keys behind an authenticated proxy.
- Treat session IDs and resume tokens as credentials and scope them to the signed-in user.
- Request camera, microphone, screen-share, recording, and raw-frame permissions separately and clearly.
- Default vision presets upload structured signals only. Raw-frame upload/retention must be explicitly configured and audited.
- Client tool handlers must validate arguments and authorization again; an LLM tool call is not proof of user permission.
readiness.vision === "reduced"means one or more requested detectors are unavailable. Build UI that explains the degraded capability.
TypeScript
All hook option and return types are exported:
import type {
UseChatOptions, UseChatReturn,
UseAgentOptions, UseAgentReturn,
UseVoiceCallOptions, UseVoiceCallReturn, VoiceCallState, TranscriptEntry,
UsePrivateAgentSessionOptions,
RealtimeRoomSessionOptions, RealtimeRoomReadiness,
BrowserVisionAnalyzer, BrowserVisionSessionOptions,
UseVisionAnalysisOptions, UseVisionAnalysisReturn,
UseImagesReturn,
UseModerationReturn,
UseDocumentsOptions, UseDocumentsReturn,
UseTranslateOptions, UseTranslateReturn,
UseVideoUnderstandingOptions, UseVideoUnderstandingReturn,
} from '@smarthivelabs-devs/react-ai-nexus';
import type {
ChatMessage, ImageJob, ModelProfile,
RealtimeEnvelope, RealtimeSessionResponse,
ConversationBehaviorProfile, ConversationBehaviorPreset,
VisionAnalysisConfig, VisionConfigInput, VisionObservation,
TranslateResponse, VideoUnderstandingResponse,
} from '@smarthivelabs-devs/react-ai-nexus';License
MIT — © SmartHive Labs
