{"_id":"@agentinsights/openai","name":"@agentinsights/openai","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agentinsights/openai","version":"0.1.0","description":"AgentInsight integration for OpenAI SDK","type":"module","sideEffects":false,"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"author":{"name":"AgentInsight"},"license":"MIT","keywords":["agentinsight","observability","openai","tracing","ai","llm","gpt"],"homepage":"https://agent.goldebridge.com","bugs":{"url":"https://github.com/AgentInsightSDK/agentinsight-js/issues"},"repository":{"type":"git","url":"git+https://github.com/agentinsight/agentinsight-js.git","directory":"packages/openai"},"dependencies":{"@agentinsights/core":"^0.1.0","@agentinsights/tracing":"^0.1.0"},"devDependencies":{"openai":"^5.0.0"},"scripts":{"build":"tsup","test":"vitest run","test:watch":"vitest","format":"prettier --write \"src/**/*.ts\"","format:check":"prettier --check \"src/**/*.ts\"","clean":"rm -rf dist"},"_id":"@agentinsights/openai@0.1.0","_integrity":"sha512-8Ht2SPWU1Oj1hcgRHUcxDNzOAETEIyYZ7P6+rQmNHPPsEq70h/fPRQOxtp6X2roikRiKrane+LJiCR5wKxXc8Q==","_resolved":"C:\\Users\\Yingn\\AppData\\Local\\Temp\\392ca16c9bb7824a00909b5e8d9899ee\\agentinsights-openai-0.1.0.tgz","_from":"file:agentinsights-openai-0.1.0.tgz","_nodeVersion":"26.1.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-8Ht2SPWU1Oj1hcgRHUcxDNzOAETEIyYZ7P6+rQmNHPPsEq70h/fPRQOxtp6X2roikRiKrane+LJiCR5wKxXc8Q==","shasum":"c0616fdc71bdef616666d2f8836e777a7bfae7c5","tarball":"https://registry.npmjs.org/@agentinsights/openai/-/openai-0.1.0.tgz","fileCount":9,"unpackedSize":103793,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDMi+MzeXTszaPHBME7p5rE0sa8q8450iAbkYQP5SCG1AiB9Py885EZqtejfkG/F0b26uTU1ysk/HGnpUSk0WMrqnA=="}]},"_npmUser":{"name":"agentinsightcn","email":"agentinsightcn@gmail.com"},"directories":{},"maintainers":[{"name":"agentinsightcn","email":"agentinsightcn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/openai_0.1.0_1780406604060_0.35890268339814835"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-02T13:23:23.919Z","0.1.0":"2026-06-02T13:23:24.211Z","modified":"2026-06-02T13:23:24.459Z"},"maintainers":[{"name":"agentinsightcn","email":"agentinsightcn@gmail.com"}],"description":"AgentInsight integration for OpenAI SDK","homepage":"https://agent.goldebridge.com","keywords":["agentinsight","observability","openai","tracing","ai","llm","gpt"],"repository":{"type":"git","url":"git+https://github.com/agentinsight/agentinsight-js.git","directory":"packages/openai"},"author":{"name":"AgentInsight"},"bugs":{"url":"https://github.com/AgentInsightSDK/agentinsight-js/issues"},"license":"MIT","readme":"# @agentinsight/openai\r\n\r\n[![NPM](https://img.shields.io/npm/v/@agentinsight/openai.svg)](https://www.npmjs.com/package/@agentinsight/openai)\r\n\r\nAgentInsight OpenAI SDK 集成 / AgentInsight OpenAI SDK Integration\r\n\r\n提供 `observeOpenAI` 包装器，自动追踪 OpenAI API 调用。\r\n\r\nProvides `observeOpenAI` wrapper to automatically trace OpenAI API calls.\r\n\r\n## 安装 / Installation\r\n\r\n```bash\r\nnpm install @agentinsight/openai\r\n```\r\n\r\n## 快速开始 / Quick Start\r\n\r\n```typescript\r\nimport { observeOpenAI } from \"@agentinsight/openai\";\r\nimport OpenAI from \"openai\";\r\n\r\nconst client = new OpenAI();\r\n\r\nconst result = await observeOpenAI(client, \"my-chat\", () =>\r\n  client.chat.completions.create({\r\n    model: \"gpt-4\",\r\n    messages: [{ role: \"user\", content: \"Hello!\" }],\r\n  }),\r\n);\r\n```\r\n\r\n## 文档 / Documentation\r\n\r\n- [AgentInsight 平台 / Platform](https://agent.goldebridge.com/platform)\r\n- [API 参考 / API Reference](https://agent.goldebridge.com/docs)\r\n\r\n## 许可证 / License\r\n\r\n[MIT](../../LICENSE)\r\n","readmeFilename":"README.md","_rev":"1-c1eeeb653cc5787f4b6cd9ff04fcb080"}