Skip to content

Commit

Permalink
update message uti;s
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Jul 30, 2024
1 parent 56e1425 commit 1389225
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions langchain-core/src/runnables/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ function revive(obj: any): any {
return new ToolMessage({
content: obj.content,
tool_call_id: obj.tool_call_id,
status: obj.status,
});
}
if (obj.type === "AIMessage" || obj.type === "ai") {
Expand Down Expand Up @@ -119,6 +120,7 @@ function revive(obj: any): any {
return new ToolMessageChunk({
content: obj.content,
tool_call_id: obj.tool_call_id,
status: obj.status,
});
}
if (obj.type === "AIMessageChunk") {
Expand Down

0 comments on commit 1389225

Please sign in to comment.