@langchain/langgraph-sdk 0.0.82 → 0.0.84
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/types.messages.d.ts +8 -0
- 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/types.messages.d.ts
CHANGED
|
@@ -66,6 +66,14 @@ export type ToolMessage = {
|
|
|
66
66
|
tool_call_id: string;
|
|
67
67
|
additional_kwargs?: MessageAdditionalKwargs | undefined;
|
|
68
68
|
response_metadata?: Record<string, unknown> | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Artifact of the Tool execution which is not meant to be sent to the model.
|
|
71
|
+
*
|
|
72
|
+
* Should only be specified if it is different from the message content, e.g. if only
|
|
73
|
+
* a subset of the full tool output is being passed as message content but the full
|
|
74
|
+
* output is needed in other parts of the code.
|
|
75
|
+
*/
|
|
76
|
+
artifact?: any;
|
|
69
77
|
};
|
|
70
78
|
export type SystemMessage = {
|
|
71
79
|
type: "system";
|