Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agentica core is not work with TypeGuardError #162

Closed
sunrabbit123 opened this issue Mar 20, 2025 · 3 comments · Fixed by #180
Closed

Agentica core is not work with TypeGuardError #162

sunrabbit123 opened this issue Mar 20, 2025 · 3 comments · Fixed by #180
Assignees
Labels
bug Something isn't working

Comments

@sunrabbit123
Copy link
Collaborator

openai/openai-node#1402

if you get a next issue, it is openai >=4.87.4 version issue

/Users/sunrabbit/Desktop/personal/arixv-chat/node_modules/.pnpm/typia@8.0.3_@samchon+openapi@3.1.0_typescript@5.8.2/node_modules/typia/src/internal/_assertGuard.ts:10
    else throw new TypeGuardError(props);
               ^
TypeGuardError: Error on json.assertParse(): invalid type on $input.usage, expect to be (CompletionUsage | undefined)
    at Object._assertGuard (/Users/sunrabbit/Desktop/personal/arixv-chat/node_modules/.pnpm/typia@8.0.3_@samchon+openapi@3.1.0_typescript@5.8.2/node_modules/typia/src/internal/_assertGuard.ts:10:16)
    at _ao0 (/Users/sunrabbit/Desktop/personal/arixv-chat/node_modules/.pnpm/@agentica+core@0.12.9_@samchon+openapi@3.1.0_openai@4.87.3_typescript@5.8.2/node_modules/@agentica/core/lib/chatgpt/ChatGptCompletionMessageUtil.js:96:152)
    at /Users/sunrabbit/Desktop/personal/arixv-chat/node_modules/.pnpm/@agentica+core@0.12.9_@samchon+openapi@3.1.0_openai@4.87.3_typescript@5.8.2/node_modules/@agentica/core/lib/chatgpt/ChatGptCompletionMessageUtil.js:409:39
    at __assert (/Users/sunrabbit/Desktop/personal/arixv-chat/node_modules/.pnpm/@agentica+core@0.12.9_@samchon+openapi@3.1.0_openai@4.87.3_typescript@5.8.2/node_modules/@agentica/core/lib/chatgpt/ChatGptCompletionMessageUtil.js:414:35)
    at /Users/sunrabbit/Desktop/personal/arixv-chat/node_modules/.pnpm/@agentica+core@0.12.9_@samchon+openapi@3.1.0_openai@4.87.3_typescript@5.8.2/node_modules/@agentica/core/src/chatgpt/ChatGptCompletionMessageUtil.ts:19:5
    at Object.ChatGptCompletionMessageUtil.transformCompletionChunk (/Users/sunrabbit/Desktop/personal/arixv-chat/node_modules/.pnpm/@agentica+core@0.12.9_@samchon+openapi@3.1.0_openai@4.87.3_typescript@5.8.2/node_modules/@agentica/core/src/chatgpt/ChatGptCompletionMessageUtil.ts:19:5)
    at /Users/sunrabbit/Desktop/personal/arixv-chat/node_modules/.pnpm/@agentica+core@0.12.9_@samchon+openapi@3.1.0_openai@4.87.3_typescript@5.8.2/node_modules/@agentica/core/src/Agentica.ts:258:42
    at /Users/sunrabbit/Desktop/personal/arixv-chat/node_modules/.pnpm/@agentica+core@0.12.9_@samchon+openapi@3.1.0_openai@4.87.3_typescript@5.8.2/node_modules/@agentica/core/src/internal/StreamUtil.ts:57:30
    at Generator.next (<anonymous>)
    at fulfilled (/Users/sunrabbit/Desktop/personal/arixv-chat/node_modules/.pnpm/@agentica+core@0.12.9_@samchon+openapi@3.1.0_openai@4.87.3_typescript@5.8.2/node_modules/@agentica/core/lib/internal/StreamUtil.js:5:58) {
  method: 'json.assertParse',
  path: '$input.usage',
  expected: '(CompletionUsage | undefined)',
  value: null
}
@sunrabbit123 sunrabbit123 added the bug Something isn't working label Mar 20, 2025
@sunrabbit123 sunrabbit123 self-assigned this Mar 20, 2025
@sunrabbit123 sunrabbit123 pinned this issue Mar 20, 2025
@sunrabbit123 sunrabbit123 unpinned this issue Mar 20, 2025
@sunrabbit123 sunrabbit123 pinned this issue Mar 20, 2025
@sunrabbit123 sunrabbit123 changed the title Agentica core is not work! Agentica core is not work with TypeGuardError Mar 20, 2025
@kakasoo
Copy link
Contributor

kakasoo commented Mar 20, 2025

@sunrabbit123
Copy link
Collaborator Author

#180

@sunrabbit123
Copy link
Collaborator Author

resolve agentica version >= 0.12.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants