{"_id":"@agent-orch/llm","_rev":"2-9627b4cd65f1918d411022257480dda2","name":"@agent-orch/llm","dist-tags":{"beta":"0.0.1-beta.0","latest":"0.0.1"},"versions":{"0.0.1-beta.0":{"name":"@agent-orch/llm","version":"0.0.1-beta.0","_id":"@agent-orch/llm@0.0.1-beta.0","maintainers":[{"name":"yuliang.fe","email":"yulight4512@gmail.com"}],"dist":{"shasum":"03897cd5313ba9a39063f9ab2d13bf3559b4a306","tarball":"https://registry.npmjs.org/@agent-orch/llm/-/llm-0.0.1-beta.0.tgz","fileCount":49,"integrity":"sha512-QVr64EKoaZadIsLiwhxTDBZi3M9JvrCLnRKkv0FP2+zOzKKP8pZwPOQsXqL+ONPd6D8rPFRNp/jWJmVjU+FTfg==","signatures":[{"sig":"MEUCIDb8SVa9cuWihMz/BdF/eUprif2i1rLjKIJ4IKve5VuSAiEAkVlXRm8hsrC6AEAN5qtLj1GfP/s3e7p2/IbV30bc76s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":95809},"main":"./dist/cjs/index.cjs","type":"module","types":"./dist/esm/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","source":"./src/index.ts","require":"./dist/cjs/index.cjs"}},"gitHead":"89c385cc357c523f7ea354d50636c3097378ce2b","scripts":{"dev":"rslib build --watch","lint":"eslint src/","test":"vitest run","build":"rslib build","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"yuliang.fe","email":"yulight4512@gmail.com"},"_npmVersion":"11.6.1","description":"LLM provider implementations with a unified interface for the Agent Harness framework. Currently supports OpenAI (using the Responses API with streaming) and Anthropic (using the Messages API with streaming).","directories":{},"_nodeVersion":"24.11.0","dependencies":{"zod":"^3.24.0","openai":"^4.80.0","@agent-orch/core":"^0.0.1-beta.1","@anthropic-ai/sdk":"^0.40.1","zod-to-json-schema":"^3.25.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.1.0","typescript":"^5.8.0","@rslib/core":"^0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/llm_0.0.1-beta.0_1775307963983_0.5934904385680733","host":"s3://npm-registry-packages-npm-production"}},"0.0.1":{"name":"@agent-orch/llm","version":"0.0.1","type":"module","exports":{".":{"source":"./src/index.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"main":"./dist/cjs/index.cjs","module":"./dist/esm/index.js","types":"./dist/esm/index.d.ts","scripts":{"build":"rslib build","dev":"rslib build --watch","test":"vitest run","typecheck":"tsc --noEmit","clean":"rm -rf dist","lint":"eslint src/"},"dependencies":{"@agent-orch/core":"^0.0.1-beta.3","@anthropic-ai/sdk":"^0.40.1","openai":"^4.80.0","zod":"^3.24.0","zod-to-json-schema":"^3.25.2"},"devDependencies":{"@rslib/core":"^0.6.0","typescript":"^5.8.0","vitest":"^3.1.0"},"gitHead":"89c385cc357c523f7ea354d50636c3097378ce2b","_id":"@agent-orch/llm@0.0.1","description":"LLM provider implementations with a unified interface for the Agent Orch framework. Currently supports OpenAI (using the Responses API with streaming) and Anthropic (using the Messages API with streaming).","_nodeVersion":"24.11.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-MNOVxjj80eYSAxcGrAPTHJQTG0PwiNov9xAePvrM7FNScwKpxOUUWZZtD/iDj/jx6FUApfOVGu6xjBZG0c82rQ==","shasum":"eb83ed928fff33ac4b6e4ebaed1944933f25dd33","tarball":"https://registry.npmjs.org/@agent-orch/llm/-/llm-0.0.1.tgz","fileCount":49,"unpackedSize":99927,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDTOaUIdaTQ44zjZh+srmUO7THaBAXplxLaqf7Qmv+q8QIhAOCnD83deD578QuYdzqj6ABmw225U3arNPW7AwKB8+/S"}]},"_npmUser":{"name":"yuliang.fe","email":"yulight4512@gmail.com"},"directories":{},"maintainers":[{"name":"yuliang.fe","email":"yulight4512@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/llm_0.0.1_1775311878799_0.14561268321705967"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-04T13:06:03.828Z","modified":"2026-04-04T14:11:19.111Z","0.0.1-beta.0":"2026-04-04T13:06:04.184Z","0.0.1":"2026-04-04T14:11:18.976Z"},"description":"LLM provider implementations with a unified interface for the Agent Orch framework. Currently supports OpenAI (using the Responses API with streaming) and Anthropic (using the Messages API with streaming).","maintainers":[{"name":"yuliang.fe","email":"yulight4512@gmail.com"}],"readme":"# @agent-orch/llm\n\nLLM provider implementations with a unified interface for the Agent Orch framework. Currently supports OpenAI (using the Responses API with streaming) and Anthropic (using the Messages API with streaming).\n\n## Installation\n\n```bash\npnpm add @agent-orch/llm\n```\n\n## Key API\n\n| Export | Description |\n|--------|-------------|\n| `createLLM` | Factory function that creates an LLM instance from a model ID |\n| `OpenAILLM` | OpenAI provider implementation with streaming support |\n| `AnthropicLLM` | Anthropic provider implementation with streaming support |\n\n## Usage\n\n```typescript\nimport { createLLM } from \"@agent-orch/llm\";\n\nconst llm = createLLM({\n  modelId: \"openai/gpt-4o\",\n  apiKey: process.env.OPENAI_API_KEY,\n});\n\nconst stream = llm.stream(messages, tools);\n\nfor await (const event of stream) {\n  console.log(event);\n}\n```\n\nThe `modelId` format is `\"provider/model\"` — the prefix selects the provider and the suffix is passed as the model name.\n\n### Supported Providers\n\n| Provider | Prefix | Example |\n|----------|--------|---------|\n| OpenAI | `openai/` | `openai/gpt-4o` |\n| Anthropic | `anthropic/` | `anthropic/claude-3-5-sonnet-20241022` |\n\n## Dependencies\n\n| Package | Purpose |\n|---------|---------|\n| `@agent-orch/core` | Core types and interfaces |\n| `openai` | Official OpenAI SDK |\n| `@anthropic-ai/sdk` | Official Anthropic SDK |\n| `zod` | Runtime schema validation |\n| `zod-to-json-schema` | Zod to JSON Schema conversion |\n\n## Documentation\n\nSee the [Agent Orch docs](../../../README.md) for full framework documentation.\n","readmeFilename":"README.md"}