chore: fix typos in packages/components/src/agents.ts (#5415)

Fix typos in packages/components/src/agents.ts
This commit is contained in:
Lê Nam Khánh 2025-11-05 20:00:24 +07:00 committed by GitHub
parent 0f8d45d25c
commit 3d731664f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1021,7 +1021,7 @@ export class JsonOutputToolsParser extends BaseLLMOutputParser<ParsedToolCall[]>
const parsedToolCalls = []
if (!toolCalls) {
// @ts-expect-error name and arguemnts are defined by Object.defineProperty
// @ts-expect-error name and arguments are defined by Object.defineProperty
const parsedToolCall: ParsedToolCall = {
type: 'undefined',
args: {}
@ -1047,7 +1047,7 @@ export class JsonOutputToolsParser extends BaseLLMOutputParser<ParsedToolCall[]>
const clonedToolCalls = JSON.parse(JSON.stringify(toolCalls))
for (const toolCall of clonedToolCalls) {
if (toolCall.function !== undefined) {
// @ts-expect-error name and arguemnts are defined by Object.defineProperty
// @ts-expect-error name and arguments are defined by Object.defineProperty
const parsedToolCall: ParsedToolCall = {
type: toolCall.function.name,
args: JSON.parse(toolCall.function.arguments)