@agent-inspect/langchain 6.31.0 → 6.31.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1524,7 +1524,12 @@ var AgentInspectCallback = class extends base.BaseCallbackHandler {
1524
1524
  errorMessage
1525
1525
  });
1526
1526
  }
1527
- async handleChainStart(chain, inputs, runId, runType, tags, metadata, runName, parentRunId, _extra) {
1527
+ /**
1528
+ * Match CallbackManager's runtime call order (parentRunId 4th), same as
1529
+ * handleLLMStart / handleToolStart — not the declared CallbackHandlerMethods
1530
+ * TypeScript order that puts runType 4th and parentRunId 8th.
1531
+ */
1532
+ async handleChainStart(chain, inputs, runId, parentRunId, tags, metadata, runType, runName, _extra) {
1528
1533
  this.#prepareCallbackInvocation();
1529
1534
  this.#ensureRoot(runId, parentRunId);
1530
1535
  this.#rememberStart(runId, "CHAIN");