MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / useChatRuntime

Function useChatRuntime

apps/start/src/components/chat/chat-runtime.tsx:231–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229}
230
231export function useChatRuntime(): ChatRuntimeValue {
232 const value = useContext(ChatRuntimeContext);
233 if (!value) {
234 throw new Error('useChatRuntime must be used inside <ChatRuntimeProvider>');
235 }
236 return value;
237}

Callers 3

ChatDrawerEmptyFunction · 0.90
ChatDrawerFooterFunction · 0.90
ChatDrawerBodyFunction · 0.90

Calls 1

useContextFunction · 0.85

Tested by

no test coverage detected