Skip to content

Commit

Permalink
Naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Dec 10, 2024
1 parent 7f9a8f8 commit dd1d086
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions langchain-core/src/messages/tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}

Expand All @@ -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.
Expand Down

0 comments on commit dd1d086

Please sign in to comment.