-
Notifications
You must be signed in to change notification settings - Fork 643
Open
Description
When I tried to bring in @ag-ui/mastra to my project I'm getting all sorts of strange build issues:
- complaining that openai can't be found in the root node_modules (it is only used by a package, so it's found in our project in
packages/core/node_modules
- even when I forcibly install openai at the root (just to see if it works)I start getting errors about p-retry
but when it comes down to it it seems like this is all because @ag-ui/mastra is dependent on @copilotkit/runtime which seems totally unnecessary. The stack I get is something like this. We don't even use langchain!
'/.../node_modules/@langchain/core/dist/runnables/base.cjs',
'/.../node_modules/@langchain/core/dist/messages/transformers.cjs',
'/.../node_modules/@langchain/core/dist/messages/index.cjs',
'/.../node_modules/@langchain/core/messages.cjs',
'/.../node_modules/@copilotkit/runtime/dist/index.js',
'/.../node_modules/@ag-ui/mastra/dist/index.js',
'/.../apps/api/dist/packages/backend/src/services/llm/agent-client.js',
'/.../apps/api/dist/packages/backend/src/index.js',
'/.../apps/api/dist/apps/api/src/threads/threads.service.js',
'/.../apps/api/dist/apps/api/src/threads/threads.controller.js',
'/.../apps/api/dist/apps/api/src/threads/threads.module.js',
'/.../apps/api/dist/apps/api/src/app.module.js',
'/.../apps/api/dist/apps/api/src/main.js'
it seems like the only reason this is for some utilities in https://github.com/ag-ui-protocol/ag-ui/blob/main/typescript-sdk/integrations/mastra/src/utils.ts - and even then it's really just registerCopilotKit()
- this feels irrelevant to this project, is there a way to move that utility function to another package?
pranetrameshcn
Metadata
Metadata
Assignees
Labels
No labels