Skip to content

Commit 3d73166

Browse files
chore: fix typos in packages/components/src/agents.ts (FlowiseAI#5415)
Fix typos in packages/components/src/agents.ts
1 parent 0f8d45d commit 3d73166

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/components/src/agents.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ export class JsonOutputToolsParser extends BaseLLMOutputParser<ParsedToolCall[]>
10211021
const parsedToolCalls = []
10221022

10231023
if (!toolCalls) {
1024-
// @ts-expect-error name and arguemnts are defined by Object.defineProperty
1024+
// @ts-expect-error name and arguments are defined by Object.defineProperty
10251025
const parsedToolCall: ParsedToolCall = {
10261026
type: 'undefined',
10271027
args: {}
@@ -1047,7 +1047,7 @@ export class JsonOutputToolsParser extends BaseLLMOutputParser<ParsedToolCall[]>
10471047
const clonedToolCalls = JSON.parse(JSON.stringify(toolCalls))
10481048
for (const toolCall of clonedToolCalls) {
10491049
if (toolCall.function !== undefined) {
1050-
// @ts-expect-error name and arguemnts are defined by Object.defineProperty
1050+
// @ts-expect-error name and arguments are defined by Object.defineProperty
10511051
const parsedToolCall: ParsedToolCall = {
10521052
type: toolCall.function.name,
10531053
args: JSON.parse(toolCall.function.arguments)

0 commit comments

Comments
 (0)