()
| 229 | } |
| 230 | |
| 231 | export 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 | } |
no test coverage detected