isMiddlewareInjected
isMiddlewareInjected(
message):boolean
Defined in: packages/agent/src/middleware/middlewareInjectedMarker.ts:68
Whether this message carries the mark.
Duck-typed on purpose — no instanceof, no class identity. A consumer resolving a second
@langchain/core copy across a file:-dep boundary (RC-21) must still read the mark, because a
marked message read as unmarked puts the shadow straight back.
Parameters
Section titled “Parameters”message
Section titled “message”BaseMessage<MessageStructure<MessageToolSet>, MessageType> | null | undefined
Returns
Section titled “Returns”boolean