langchain.js
    Preparing search index...
    • Checks if a namespace indicates a subagent/subgraph message.

      Subagent namespaces contain a "tools:" segment indicating they originate from a tool call that spawned a subgraph.

      Parameters

      • namespace: undefined | string | string[]

        The namespace array from stream events (or checkpoint_ns string)

      Returns boolean

      True if this is a subagent namespace