From dd1d0864b681e6e6908ac79cc7270647166cf34c Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Tue, 10 Dec 2024 13:12:10 -0800 Subject: [PATCH] Naming --- langchain-core/src/messages/tool.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/langchain-core/src/messages/tool.ts b/langchain-core/src/messages/tool.ts index 98fc17a87149..6cef2293927a 100644 --- a/langchain-core/src/messages/tool.ts +++ b/langchain-core/src/messages/tool.ts @@ -28,15 +28,15 @@ export interface ToolMessageFieldsWithToolCallId extends BaseMessageFields { } export interface DirectToolOutput { - readonly lc_tool_output: boolean; + readonly lc_direct_tool_output: boolean; } export function isDirectToolOutput(x: unknown): x is DirectToolOutput { return ( x != null && typeof x === "object" && - "lc_tool_output" in x && - x.lc_tool_output === true + "lc_direct_tool_output" in x && + x.lc_direct_tool_output === true ); } @@ -53,7 +53,7 @@ export class ToolMessage extends BaseMessage implements DirectToolOutput { return { tool_call_id: "tool_call_id" }; } - lc_tool_output = true; + lc_direct_tool_output = true; /** * Status of the tool invocation.