SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
import { ChatContext, IChatContext } from '@react/features/ai-chat/contexts/chat';
import { useContext } from 'react';
export const useChatStores = () => useContext(ChatContext);
export const useChatStore = <T extends keyof IChatContext>(state: T): IChatContext[T] => {
const store = useContext(ChatContext);
if (!store) throw new Error('ChatContext not found');
return store[state];
};