{"_id":"agentops","_rev":"9-3c75e7f22d93f9a5b890147e85d20ebd","name":"agentops","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.2":{"name":"agentops","version":"0.0.2","keywords":["ai","agents","LLM","SDK","AgentOps"],"author":{"name":"Siyang Qiu"},"license":"MIT","_id":"agentops@0.0.2","maintainers":[{"name":"siyangqiu","email":"siyangqiu@gmail.com"}],"homepage":"https://github.com/AgentOps-AI/agentops-node#readme","bugs":{"url":"https://github.com/AgentOps-AI/agentops-node/issues"},"dist":{"shasum":"50a41f5281cc729fa7a158d1041497f212ee2de7","tarball":"https://registry.npmjs.org/agentops/-/agentops-0.0.2.tgz","fileCount":18,"integrity":"sha512-6Hq+DbcHxHWogCQ+2vbiBUhEHYjYM+xtbpNGHJWGMajcRY3+NhW+q7aG2NYR1DK7Fv7BwLeUgslmD2q6kRPyDg==","signatures":[{"sig":"MEUCIHEtmMZtc+A1yzJ5A7/tkx6WCmlu4evfmKOA3Blr28Y4AiEA+dN8VMxc+9hRGFD2eTvRwH8nd8cUC/SlH+NACDI2yLk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40455},"main":"dist/app.js","types":"./dist/app.d.ts","gitHead":"57a2ec8ad9e79b0775817fbcaeba2a7376ee1065","scripts":{"build":"npx tsc"},"_npmUser":{"name":"siyangqiu","email":"siyangqiu@gmail.com"},"repository":{"url":"git+https://github.com/AgentOps-AI/agentops-node.git","type":"git"},"_npmVersion":"10.2.4","description":"AI agents suck. We are fixing that.","directories":{},"_nodeVersion":"21.2.0","dependencies":{"uuid":"^9.0.1","axios":"^1.6.1","dotenv":"^16.3.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.9.0","@types/uuid":"^9.0.7"},"peerDependencies":{"openai":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentops_0.0.2_1701373865849_0.4260373511625182","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"agentops","version":"0.0.3","keywords":["ai","agents","LLM","SDK","AgentOps"],"author":{"name":"Siyang Qiu"},"license":"MIT","_id":"agentops@0.0.3","maintainers":[{"name":"siyangqiu","email":"siyangqiu@gmail.com"}],"homepage":"https://github.com/AgentOps-AI/agentops-node#readme","bugs":{"url":"https://github.com/AgentOps-AI/agentops-node/issues"},"dist":{"shasum":"c946028f674d51eb31bdd30f7ae52712b992a6cb","tarball":"https://registry.npmjs.org/agentops/-/agentops-0.0.3.tgz","fileCount":18,"integrity":"sha512-wkPYPnooRA+5UYMY6hERuU9aP0Ou3Jf5EKni47+FsYdrOz74sk0TmO+jv5F+v5Ly7OIdbBdXi2Ai1SuL92RW+Q==","signatures":[{"sig":"MEQCIGxCfNBTCmDnV9kXdqwsNa8jn8yumqsIEvIgfl7cF+ODAiB0JWUfwB8VnUdjWGw/Watzq9YZFax9hqO6djXeuxYRqA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41036},"main":"dist/app.js","types":"./dist/app.d.ts","gitHead":"efdfc40a7d233402cc7c579b3010edbc2b32154b","scripts":{"build":"npx tsc"},"_npmUser":{"name":"siyangqiu","email":"siyangqiu@gmail.com"},"repository":{"url":"git+https://github.com/AgentOps-AI/agentops-node.git","type":"git"},"_npmVersion":"10.2.4","description":"AI agents suck. We are fixing that.","directories":{},"_nodeVersion":"21.2.0","dependencies":{"uuid":"^9.0.1","axios":"^1.6.1","dotenv":"^16.3.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.9.0","@types/uuid":"^9.0.7"},"peerDependencies":{"openai":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentops_0.0.3_1702332575613_0.009217839160179597","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"agentops","version":"0.0.4","keywords":["ai","agents","LLM","SDK","AgentOps"],"author":{"name":"Siyang Qiu"},"license":"MIT","_id":"agentops@0.0.4","maintainers":[{"name":"siyangqiu","email":"siyangqiu@gmail.com"}],"homepage":"https://github.com/AgentOps-AI/agentops-node#readme","bugs":{"url":"https://github.com/AgentOps-AI/agentops-node/issues"},"dist":{"shasum":"b0e05d461a6bdd448dee2999e0fc73141681e4e6","tarball":"https://registry.npmjs.org/agentops/-/agentops-0.0.4.tgz","fileCount":18,"integrity":"sha512-GvIvgEHMIojez1fnvuMox9Y+sguq+was7op0+U/jUe66IyR6I67C6v20iYBsWkAKq4l84jQjO3Ntes1E6B0yIg==","signatures":[{"sig":"MEYCIQDKq+qLtiD1n/ZtGf8mGRC7+PV6qbhrINZVm78zTZXnKwIhAIyMCigPrrV1XHpGcklLSY+8Zw8jKcEv2Rle65a7nRAd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41061},"main":"dist/app.js","types":"./dist/app.d.ts","gitHead":"fa980b2839677ada8df26242806a95e5960d9e22","scripts":{"build":"npx tsc"},"_npmUser":{"name":"siyangqiu","email":"siyangqiu@gmail.com"},"repository":{"url":"git+https://github.com/AgentOps-AI/agentops-node.git","type":"git"},"_npmVersion":"10.3.0","description":"AI agents suck. We are fixing that.","directories":{},"_nodeVersion":"21.5.0","dependencies":{"uuid":"^9.0.1","axios":"^1.6.1","dotenv":"^16.3.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.9.0","@types/uuid":"^9.0.7"},"peerDependencies":{"openai":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentops_0.0.4_1705989980926_0.42233727477929306","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"agentops","version":"0.1.0","description":"TypeScript implementation of the AgentOps SDK","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","dev":"tsc --watch","test":"jest","lint":"eslint src/**/*.ts","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"keywords":["opentelemetry","instrumentation","genai","agents","observability"],"author":{"name":"AgentOps"},"homepage":"https://agentops.ai","contributors":[{"name":"Travis Dent","email":"tcdent@gmail.com"},{"name":"Braelyn Boynton","email":"bboynton97@gmail.com"}],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/AgentOps-AI/agentops-ts.git"},"dependencies":{"@openai/agents":"^0.0.1","@opentelemetry/api":"^1.8.0","@opentelemetry/exporter-trace-otlp-http":"^0.52.1","@opentelemetry/instrumentation":"^0.52.1","@opentelemetry/sdk-node":"^0.52.1","@opentelemetry/semantic-conventions":"^1.25.1","@opentelemetry/sdk-trace-base":"^1.25.1","@opentelemetry/resources":"^1.25.1","@opentelemetry/sdk-trace-node":"^1.25.1","debug":"^4.4.1"},"devDependencies":{"@types/debug":"^4.1.12","@types/jest":"^29.5.14","@types/node":"^20.17.57","@typescript-eslint/eslint-plugin":"^7.0.0","@typescript-eslint/parser":"^7.0.0","eslint":"^8.57.0","jest":"^29.7.0","ts-jest":"^29.1.5","typescript":"^5.6.0"},"engines":{"node":">=16.0.0"},"_id":"agentops@0.1.0","gitHead":"b910b31ffb692034d590fbcee4928e8fe3bdf564","bugs":{"url":"https://github.com/AgentOps-AI/agentops-ts/issues"},"_nodeVersion":"23.11.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-GnMsLnPTJS9ZyxSo9WTHJIKEcRvyf62uuZLKBDdMPWkZAI5sZkRO/i75lM0RC3iipceUJzCSw7AEopcJW4kqMg==","shasum":"1cbd63e73600af512e9b8a70ad9ed62856618075","tarball":"https://registry.npmjs.org/agentops/-/agentops-0.1.0.tgz","fileCount":139,"unpackedSize":209938,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCD0++AD9wwst+dWrqI0THhhu+3xJ5hzTTIkuKcxHGk9AIhALBkwwFzn48GoZAmVTZeG258MhzRl1qT9CEH66Ubd3SE"}]},"_npmUser":{"name":"tcdent","email":"tcdent@gmail.com"},"directories":{},"maintainers":[{"name":"tcdent","email":"tcdent@gmail.com"},{"name":"reibs","email":"areibman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agentops_0.1.0_1749146610174_0.30824364618204747"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-30T19:47:08.372Z","modified":"2025-06-05T18:03:30.576Z","0.0.1":"2023-11-30T19:47:08.560Z","0.0.2":"2023-11-30T19:51:06.074Z","0.0.3":"2023-12-11T22:09:35.795Z","0.0.4":"2024-01-23T06:06:21.083Z","0.1.0":"2025-06-05T18:03:30.392Z"},"bugs":{"url":"https://github.com/AgentOps-AI/agentops-ts/issues"},"author":{"name":"AgentOps"},"license":"MIT","homepage":"https://agentops.ai","keywords":["opentelemetry","instrumentation","genai","agents","observability"],"repository":{"type":"git","url":"git+https://github.com/AgentOps-AI/agentops-ts.git"},"description":"TypeScript implementation of the AgentOps SDK","maintainers":[{"name":"tcdent","email":"tcdent@gmail.com"},{"name":"reibs","email":"areibman@gmail.com"}],"readme":"# AgentOps TypeScript SDK\n\n<div align=\"center\">\n  <a href=\"https://agentops.ai?ref=gh\">\n    <img src=\"docs/images/logo/github-banner.png\" alt=\"Logo\">\n  </a>\n</div>\n\n<div align=\"center\">\n  <em>Observability and DevTool platform for AI Agents</em>\n</div>\n\n<br />\n\n<div align=\"center\">\n  <a href=\"https://github.com/agentops-ai/agentops/issues\">\n  <img src=\"https://img.shields.io/github/commit-activity/m/agentops-ai/agentops-ts\" alt=\"git commit activity\">\n  </a>\n  <img src=\"https://img.shields.io/pypi/v/agentops?&color=3670A0\" alt=\"PyPI - Version\">\n  <a href=\"https://opensource.org/licenses/MIT\">\n    <img src=\"https://img.shields.io/badge/License-MIT-yellow.svg?&color=3670A0\" alt=\"License: MIT\">\n  </a>\n</div>\n\n<p align=\"center\">\n  <a href=\"https://twitter.com/agentopsai/\">\n    <img src=\"https://img.shields.io/twitter/follow/agentopsai?style=social\" alt=\"Twitter\" style=\"height: 20px;\">\n  </a>\n  <a href=\"https://discord.gg/FagdcwwXRR\">\n    <img src=\"https://img.shields.io/badge/discord-7289da.svg?style=flat-square&logo=discord\" alt=\"Discord\" style=\"height: 20px;\">\n  </a>\n  <a href=\"https://app.agentops.ai/?ref=gh\">\n    <img src=\"https://img.shields.io/badge/Dashboard-blue.svg?style=flat-square\" alt=\"Dashboard\" style=\"height: 20px;\">\n  </a>\n  <a href=\"https://docs.agentops.ai/introduction\">\n    <img src=\"https://img.shields.io/badge/Documentation-orange.svg?style=flat-square\" alt=\"Documentation\" style=\"height: 20px;\">\n  </a>\n  <a href=\"https://entelligence.ai/AgentOps-AI&agentops\">\n    <img src=\"https://img.shields.io/badge/Chat%20with%20Docs-green.svg?style=flat-square\" alt=\"Chat with Docs\" style=\"height: 20px;\">\n  </a>\n</p>\n\nA TypeScript implementation of the AgentOps SDK that exports GenAI conventional OpenTelemetry data to standards-compliant OTel collectors. This SDK provides automatic instrumentation for multiple agent frameworks and AI libraries.\n\n<div align=\"center\">\n  <video src=\"https://github.com/user-attachments/assets/dfb4fa8d-d8c4-4965-9ff6-5b8514c1c22f\" width=\"650\" autoplay loop muted></video>\n</div>\n\n## Features\n\n- 🔌 **Plugin Architecture**: Dynamic loading and configuration of instrumentors\n- 🤖 **GenAI Support**: Built-in support for OpenTelemetry GenAI semantic conventions\n- 📊 **Standards Compliant**: Exports to any OpenTelemetry-compatible collector\n- 🛠️ **Framework Agnostic**: Instrument multiple agent frameworks simultaneously\n- 🔧 **TypeScript First**: Full TypeScript support with comprehensive type definitions\n- 💸 **LLM Cost Management**: Track spend with LLM foundation model providers\n- 🧪 **Agent Benchmarking**: Test your agents against 1,000+ evals\n- 🔐 **Compliance and Security**: Detect common prompt injection and data exfiltration exploits\n\n## Installation\n\n```bash\nnpm install agentops\n```\n\n## Quick Start\n\n### 1. Set your API key (recommended)\n\n```bash\nexport AGENTOPS_API_KEY=your-api-key\n```\n\n### 2. Initialize the SDK\n\n```typescript\nimport { agentops } from 'agentops';\n\nawait agentops.init();\n\n// Your AI agent code here - instrumentation happens automatically!\n```\n\n### Alternative: Pass API key explicitly\n\n```typescript\nimport { agentops } from 'agentops';\n\nawait agentops.init({\n  apiKey: 'your-api-key'\n});\n```\n\n## Building\n\nTo build the project from source:\n\n```bash\nnpm install\nnpm run build\n```\n\nThis will compile the TypeScript source code to JavaScript in the `dist/` directory.\n\n## Running the Example\n\nThe repository includes an OpenAI Agents example that demonstrates the SDK in action:\n\n1. First, create a `.env` file in the `examples/openai-agents-example` directory:\n\n```bash\ncd examples/openai-agents-example\ncat > .env << EOF\nAGENTOPS_API_KEY=your-agentops-api-key\nOPENAI_API_KEY=your-openai-api-key\nEOF\n```\n\n2. Then run the example:\n\n```bash\nnpm install\nnpm run dev\n```\n\nThe example will:\n1. Initialize AgentOps instrumentation\n2. Create a weather assistant agent with tool calling capabilities\n3. Execute a sample query\n4. Export telemetry data to the AgentOps platform\n\n## OpenAI Agents Support\n\nAgentOps provides first-class support for the [OpenAI Agents SDK](https://github.com/openai/openai-agents-js/), automatically instrumenting:\n\n- **Agent Lifecycle**: Track agent creation, execution, and completion\n- **LLM Generation**: Capture model requests, responses, and token usage\n- **Function Calls**: Monitor tool usage and function execution\n- **Audio Processing**: Observe speech-to-text and text-to-speech operations\n- **Handoffs**: Track agent-to-agent communication and workflow transitions\n- **Custom Events**: Capture domain-specific agent behaviors\n\n### Automatic Instrumentation\n\nSimply initialize AgentOps before using the OpenAI Agents SDK:\n\n```typescript\nimport { agentops } from 'agentops';\nimport { Agent, run } from '@openai/agents';\n\n// Initialize AgentOps first\nawait agentops.init();\n\n// Create your agent with tools and instructions\nconst agent = new Agent({\n  name: 'My Assistant',\n  instructions: 'You are a helpful assistant.',\n  tools: [/* your tools */],\n});\n\n// Run the agent - instrumentation happens automatically\nconst result = await run(agent, \"Hello, how can you help me?\");\nconsole.log(result.finalOutput);\n```\n\nAll agent interactions will be automatically captured and exported to your AgentOps dashboard with full OpenTelemetry semantic conventions.\n\n## Debug Logging\n\nTo see detailed instrumentation and tracing logs:\n\n```bash\nDEBUG=agentops:* node your-app.js\n```\n\n## Why AgentOps? 🤔\n\nWithout the right tools, AI agents are slow, expensive, and unreliable. Our mission is to bring your agent from prototype to production. Here's why AgentOps stands out:\n\n- **Comprehensive Observability**: Track your AI agents' performance, user interactions, and API usage.\n- **Real-Time Monitoring**: Get instant insights with session replays, metrics, and live monitoring tools.\n- **Cost Control**: Monitor and manage your spend on LLM and API calls.\n- **Failure Detection**: Quickly identify and respond to agent failures and multi-agent interaction issues.\n- **Tool Usage Statistics**: Understand how your agents utilize external tools with detailed analytics.\n- **Session-Wide Metrics**: Gain a holistic view of your agents' sessions with comprehensive statistics.\n\nAgentOps is designed to make agent observability, testing, and monitoring easy.\n\n## Star History\n\nCheck out our growth in the community:\n\n<img src=\"https://api.star-history.com/svg?repos=AgentOps-AI/agentops&type=Date\" style=\"max-width: 500px\" width=\"50%\" alt=\"Logo\">\n\n","readmeFilename":"README.md","contributors":[{"name":"Travis Dent","email":"tcdent@gmail.com"},{"name":"Braelyn Boynton","email":"bboynton97@gmail.com"}]}