Skip to content

Commit b196a15

Browse files
authored
fix(core): set status for tool message (#8664)
1 parent e70dab6 commit b196a15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

langchain-core/src/tools/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,7 @@ function _formatToolOutput<TOutput extends ToolOutputType>(params: {
721721
content.every((item) => typeof item === "object"))
722722
) {
723723
return new ToolMessage({
724+
status: "success",
724725
content,
725726
artifact,
726727
tool_call_id: toolCallId,
@@ -729,6 +730,7 @@ function _formatToolOutput<TOutput extends ToolOutputType>(params: {
729730
});
730731
} else {
731732
return new ToolMessage({
733+
status: "success",
732734
content: _stringify(content),
733735
artifact,
734736
tool_call_id: toolCallId,

0 commit comments

Comments
 (0)