createAgent() has a .graph property that returns its internal CompiledStateGraph, which means you can plug agents directly into a StateGraph workflow! No wrappers… ![]()
We’ve tested this setup pretty thoroughly and it works great.
But… there’s no mention of this pattern in the docs.
Questions
- Are others using
.graphfor composition? - Is this an intended API or just a happy accident?
- Will this be documented officially?
- Is there a better or “official” way to compose
StateGraph+createAgent?
Thank you for any insights ![]()