Build a session key from RunnableConfig.
Uses thread_id as the base key and appends checkpoint_ns when present. This ensures parallel LangGraph subgraphs get separate sessions even when they share a thread_id.
Examples::
Top-level agent: "thread-001"
Subagent A: "thread-001:research-acme:abc123"
Subagent B: "thread-001:research-beta:def456"
get_session_key(
config: Optional[RunnableConfig] = None,
) -> str| Name | Type | Description |
|---|---|---|
config | Optional[RunnableConfig] | Default: NoneLangGraph |