Hey folks, I’m trying to develop the right mindset for building graphs properly, and right now my reasoning is context-based — if the context is different, I create a new graph dedicated to that context. This approach works great for me so far. For example, if I have LinkedIn support, I create a LinkedIn graph; if I have X support, I create an X graph.
I’m now building a client where I stream responses from these graphs. My question is: can I have two useStream hooks, one for each graph (LinkedInGraph and XGraph), then simply merge the messages and display them to the client?
The issue I’m stuck on is with sending messages, because right now I submit like this:
``
thread.submit({
messages: [{ type: ‘human’, content: message }],
});
``
…and this is connected to a specific graph. How can I properly submit messages to the right graph (LinkedIn or X) without the user having to manually choose the platform in the client?
Would an orchestrator be the best option here? If so, wouldn’t that always become a bottleneck as the single entry point — especially if there are many users and many subgraphs (e.g., multiple social platforms)? Would it scale well?