(obj: unknown)
| 366 | } |
| 367 | |
| 368 | static isInstance(obj: unknown): obj is BaseMessage { |
| 369 | return ( |
| 370 | typeof obj === "object" && |
| 371 | obj !== null && |
| 372 | MESSAGE_SYMBOL in obj && |
| 373 | (obj as Record<symbol, unknown>)[MESSAGE_SYMBOL] === true && |
| 374 | isMessage(obj) |
| 375 | ); |
| 376 | } |
| 377 | |
| 378 | // this private method is used to update the ID for the runtime |
| 379 | // value as well as in lc_kwargs for serialisation |
no test coverage detected