# Define an Adapter for Different State Schema of Subgraphs Hurts Visulization \[Solved\]

**URL:** <https://forum.langchain.com/t/define-an-adapter-for-different-state-schema-of-subgraphs-hurts-visulization-solved/1640>\
**Category:** LangGraph\
**Tags:** product-feedback, python-help\
**Created:** [September 25, 2025, 9:18am UTC](https://forum.langchain.com/t/define-an-adapter-for-different-state-schema-of-subgraphs-hurts-visulization-solved/1640 "2025-09-25T09:18:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BEATING-HEART](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/beating-heart/32/1087_2.png) [@BEATING-HEART](https://forum.langchain.com/u/BEATING-HEART)\
**Post date:** [September 25, 2025, 9:18am UTC](https://forum.langchain.com/t/define-an-adapter-for-different-state-schema-of-subgraphs-hurts-visulization-solved/1640/1 "2025-09-25T09:18:09Z")

</div>

I’ve noticed that in both LangGraph v0.6 and v1-alpha, when invoking subgraphs with different state schemas, it’s necessary to define an adapter node in the parent graph. However, this approach negatively affects the visualization, since the parent graph only sees the adapter node. I wonder if it would be possible to add parameters such as `InputSchema` and `adapter_hook` to the `create_agent` method to handle this more seamlessly.

[Use subgraphs - Docs by LangChain](https://docs.langchain.com/oss/python/langgraph/use-subgraphs#different-state-schemas)

[Use subgraphs](https://langchain-ai.github.io/langgraph/how-tos/subgraph/#different-state-schemas)

---

<div class="post-metadata">

**Author:** ![BEATING-HEART](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/beating-heart/32/1087_2.png) [@BEATING-HEART](https://forum.langchain.com/u/BEATING-HEART)\
**Post date:** [September 25, 2025, 10:41am UTC](https://forum.langchain.com/t/define-an-adapter-for-different-state-schema-of-subgraphs-hurts-visulization-solved/1640/2 "2025-09-25T10:41:57Z")

</div>

Fine, this could be solved by passing private states between nodes.

[Use the Graph API](https://langchain-ai.github.io/langgraph/how-tos/graph-api/?h=privat#pass-private-state-between-nodes)

[Use the graph API - Docs by LangChain](https://docs.langchain.com/oss/python/langgraph/use-graph-api#pass-private-state-between-nodes)
