@visibe.ai/node 0.1.25 → 0.1.26
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.
|
@@ -23,8 +23,19 @@ function extractTokenUsage(output) {
|
|
|
23
23
|
outputTokens: usage?.completionTokens ?? usage?.output_tokens ?? 0,
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
// Internal LangGraph
|
|
27
|
-
|
|
26
|
+
// Internal LangGraph/LangChain node names — never emit agent_start spans for these.
|
|
27
|
+
// Includes LangGraph system nodes and LangChain Runnable primitives that wrap
|
|
28
|
+
// routing functions (e.g. addConditionalEdges wraps the condition in a RunnableLambda).
|
|
29
|
+
exports.LANGGRAPH_INTERNAL_NODES = new Set([
|
|
30
|
+
'__start__',
|
|
31
|
+
'__end__',
|
|
32
|
+
'LangGraph',
|
|
33
|
+
'RunnableLambda',
|
|
34
|
+
'RunnableSequence',
|
|
35
|
+
'RunnableParallel',
|
|
36
|
+
'RunnablePassthrough',
|
|
37
|
+
'RunnableBranch',
|
|
38
|
+
]);
|
|
28
39
|
// ---------------------------------------------------------------------------
|
|
29
40
|
// LangChainCallback
|
|
30
41
|
// ---------------------------------------------------------------------------
|
|
@@ -18,8 +18,19 @@ function extractTokenUsage(output) {
|
|
|
18
18
|
outputTokens: usage?.completionTokens ?? usage?.output_tokens ?? 0,
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
// Internal LangGraph
|
|
22
|
-
|
|
21
|
+
// Internal LangGraph/LangChain node names — never emit agent_start spans for these.
|
|
22
|
+
// Includes LangGraph system nodes and LangChain Runnable primitives that wrap
|
|
23
|
+
// routing functions (e.g. addConditionalEdges wraps the condition in a RunnableLambda).
|
|
24
|
+
export const LANGGRAPH_INTERNAL_NODES = new Set([
|
|
25
|
+
'__start__',
|
|
26
|
+
'__end__',
|
|
27
|
+
'LangGraph',
|
|
28
|
+
'RunnableLambda',
|
|
29
|
+
'RunnableSequence',
|
|
30
|
+
'RunnableParallel',
|
|
31
|
+
'RunnablePassthrough',
|
|
32
|
+
'RunnableBranch',
|
|
33
|
+
]);
|
|
23
34
|
// ---------------------------------------------------------------------------
|
|
24
35
|
// LangChainCallback
|
|
25
36
|
// ---------------------------------------------------------------------------
|
package/package.json
CHANGED