AgentOps-AI / AgentOps-AI/agentops-ts

CommonJS Compilation Errors

未關閉
#18 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
10
分支
4
PR 合併指標
30 天內沒有已合併 PR

描述

Hi! My team and I recently started adopting the new OpenAI Agents SDK into our project, and we were planning on using AgentOps for tracing, as it is currently suggested by the OpenAI docs. However, we've encountered a compatibility issue during implementation.

**The Problem:**
- Our project uses `"@openai/agents": "^0.0.9"`
- The current published AgentOps npm package (v0.1.0) depends on `"@openai/agents": "^0.0.1"`
- While your GitHub repo shows the dependency has been updated to `"@openai/agents": "^0.0.8"`, this hasn't been published to npm yet

**Technical Details:**
The newer versions of `@openai/agents` (0.0.8+) are ESM-only, while earlier versions (0.0.1) used CommonJS. This causes compilation errors when AgentOps tries to import from the newer version using CommonJS `require()` statements:

```
SyntaxError: Cannot use import statement outside a module at Object. (/node_modules/agentops/dist/instrumentation/openai-agents/index.js:4:18)
```

**Question:**
Is there a timeline for publishing a new AgentOps version that includes the `@openai/agents` dependency upgrade? We'd love to use AgentOps for tracing but currently can't get onboarded due to this compatibility issue.

Thanks in advance!

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。