Skip to content

Commit 60e5950

Browse files
acastellsArnau Castellsjacoblee93
authored
fix(core): add artifact to ToolMessage and ToolMessageChunk for RemoteRunnable (#7763)
Co-authored-by: Arnau Castells <[email protected]> Co-authored-by: jacoblee93 <[email protected]>
1 parent 79467fb commit 60e5950

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

langchain-core/src/runnables/remote.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ function revive(obj: any): any {
8787
content: obj.content,
8888
tool_call_id: obj.tool_call_id,
8989
status: obj.status,
90+
artifact: obj.artifact,
9091
});
9192
}
9293
if (obj.type === "AIMessage" || obj.type === "ai") {
@@ -121,6 +122,7 @@ function revive(obj: any): any {
121122
content: obj.content,
122123
tool_call_id: obj.tool_call_id,
123124
status: obj.status,
125+
artifact: obj.artifact,
124126
});
125127
}
126128
if (obj.type === "AIMessageChunk") {

0 commit comments

Comments
 (0)