@langchain/langgraph-sdk 0.0.81 → 0.0.83
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/client.cjs +6 -1
- package/dist/client.js +6 -1
- package/dist/react-ui/types.cjs +6 -3
- package/dist/react-ui/types.d.ts +1 -1
- package/dist/react-ui/types.js +6 -3
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -626,7 +626,12 @@ class RunsClient extends BaseClient {
|
|
|
626
626
|
after_seconds: payload?.afterSeconds,
|
|
627
627
|
if_not_exists: payload?.ifNotExists,
|
|
628
628
|
checkpoint_during: payload?.checkpointDuring,
|
|
629
|
-
langsmith_tracer: payload?._langsmithTracer
|
|
629
|
+
langsmith_tracer: payload?._langsmithTracer
|
|
630
|
+
? {
|
|
631
|
+
project_name: payload?._langsmithTracer?.projectName,
|
|
632
|
+
example_id: payload?._langsmithTracer?.exampleId,
|
|
633
|
+
}
|
|
634
|
+
: undefined,
|
|
630
635
|
};
|
|
631
636
|
const [run, response] = await this.fetch(`/threads/${threadId}/runs`, {
|
|
632
637
|
method: "POST",
|
package/dist/client.js
CHANGED
|
@@ -619,7 +619,12 @@ export class RunsClient extends BaseClient {
|
|
|
619
619
|
after_seconds: payload?.afterSeconds,
|
|
620
620
|
if_not_exists: payload?.ifNotExists,
|
|
621
621
|
checkpoint_during: payload?.checkpointDuring,
|
|
622
|
-
langsmith_tracer: payload?._langsmithTracer
|
|
622
|
+
langsmith_tracer: payload?._langsmithTracer
|
|
623
|
+
? {
|
|
624
|
+
project_name: payload?._langsmithTracer?.projectName,
|
|
625
|
+
example_id: payload?._langsmithTracer?.exampleId,
|
|
626
|
+
}
|
|
627
|
+
: undefined,
|
|
623
628
|
};
|
|
624
629
|
const [run, response] = await this.fetch(`/threads/${threadId}/runs`, {
|
|
625
630
|
method: "POST",
|
package/dist/react-ui/types.cjs
CHANGED
|
@@ -27,9 +27,12 @@ function uiMessageReducer(state, update) {
|
|
|
27
27
|
}
|
|
28
28
|
const index = state.findIndex((ui) => ui.id === event.id);
|
|
29
29
|
if (index !== -1) {
|
|
30
|
-
newState[index] =
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
newState[index] =
|
|
31
|
+
typeof event.metadata === "object" &&
|
|
32
|
+
event.metadata != null &&
|
|
33
|
+
event.metadata.merge
|
|
34
|
+
? { ...event, props: { ...state[index].props, ...event.props } }
|
|
35
|
+
: event;
|
|
33
36
|
}
|
|
34
37
|
else {
|
|
35
38
|
newState.push(event);
|
package/dist/react-ui/types.d.ts
CHANGED
package/dist/react-ui/types.js
CHANGED
|
@@ -22,9 +22,12 @@ export function uiMessageReducer(state, update) {
|
|
|
22
22
|
}
|
|
23
23
|
const index = state.findIndex((ui) => ui.id === event.id);
|
|
24
24
|
if (index !== -1) {
|
|
25
|
-
newState[index] =
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
newState[index] =
|
|
26
|
+
typeof event.metadata === "object" &&
|
|
27
|
+
event.metadata != null &&
|
|
28
|
+
event.metadata.merge
|
|
29
|
+
? { ...event, props: { ...state[index].props, ...event.props } }
|
|
30
|
+
: event;
|
|
28
31
|
}
|
|
29
32
|
else {
|
|
30
33
|
newState.push(event);
|