How to use a subgraph as a tool?

Yes, the content is 50/50 AI generated, since the input comes from my current knowledge and the examples come from AI - I am too lazy to provide examples on my own in the AI era :laughing:
So your AI was actually right :slight_smile:

Those two approaches are actually idiomatic in LangGraph ecosystem - AFAIK :slight_smile: The examples I gave are general, so the implementation details depend on your case.

Might be that option A doesn’t fit your case I dunno :slight_smile: Provide some more details about what you want to achieve so I can give you a more accurate answer.