{"_id":"@agentxin-ai/plugin-anthropic","name":"@agentxin-ai/plugin-anthropic","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.2":{"name":"@agentxin-ai/plugin-anthropic","version":"0.0.2","author":{"name":"AgentXinAI","url":"https://agentxinai.cn"},"license":"AGPL-3.0","repository":{"type":"git","url":"git+https://github.com/agentxin-ai/agentxin-plugins.git"},"bugs":{"url":"https://github.com/agentxin-ai/agentxin-plugins/issues"},"type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"@agentxin-plugins-starter/source":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"prepack":"node ./scripts/copy-assets.mjs"},"dependencies":{"@langchain/anthropic":"^0.3.0","tslib":"^2.3.0"},"peerDependencies":{"@langchain/core":"^0.3.72","@metad/contracts":"^3.7.0","@nestjs/common":"^11.1.6","@nestjs/config":"^4.0.2","@agentxin-ai/plugin-sdk":"^3.7.1","chalk":"4.1.2","zod":"3.25.67"},"_id":"@agentxin-ai/plugin-anthropic@0.0.2","description":"`@agentxin-ai/plugin-anthropic` provides a model adapter for connecting Anthropic's Claude models to the [AgentXinAI](https://github.com/agentxin-ai/agentxin) platform. The plugin enables agents to invoke Claude series models with support for streaming, t","homepage":"https://github.com/agentxin-ai/agentxin-plugins#readme","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-mZ/8Hfd8zi1DtKIFpNTD+HFmyIzwewNhceUM/QKeR94mv1hibFO8bq9CY6Ds227m35AzUT+ghhv3I8bQPbQ34A==","shasum":"7d4831c2cd0a9281b0d6fb626ad4fb03497d24b0","tarball":"https://registry.npmjs.org/@agentxin-ai/plugin-anthropic/-/plugin-anthropic-0.0.2.tgz","fileCount":10,"unpackedSize":24885,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFaQk6J0Q0OCbx/qbyB/DZ2qkxMSrwTc5nG2qlDobkDtAiBgyhPEN/R0qU0R2TrLi2PSxSBwkM5iKqLJ/dSGw9aBsA=="}]},"_npmUser":{"name":"agentxin-ai","email":"1304040880@qq.com"},"directories":{},"maintainers":[{"name":"agentxin-ai","email":"1304040880@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-anthropic_0.0.2_1773917585258_0.8321114252247817"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-19T10:53:05.126Z","0.0.2":"2026-03-19T10:53:05.399Z","modified":"2026-03-19T10:53:05.599Z"},"maintainers":[{"name":"agentxin-ai","email":"1304040880@qq.com"}],"description":"`@agentxin-ai/plugin-anthropic` provides a model adapter for connecting Anthropic's Claude models to the [AgentXinAI](https://github.com/agentxin-ai/agentxin) platform. The plugin enables agents to invoke Claude series models with support for streaming, t","homepage":"https://github.com/agentxin-ai/agentxin-plugins#readme","repository":{"type":"git","url":"git+https://github.com/agentxin-ai/agentxin-plugins.git"},"author":{"name":"AgentXinAI","url":"https://agentxinai.cn"},"bugs":{"url":"https://github.com/agentxin-ai/agentxin-plugins/issues"},"license":"AGPL-3.0","readme":"# AgentXin Plugin: Anthropic\n\n## Overview\n\n`@agentxin-ai/plugin-anthropic` provides a model adapter for connecting Anthropic's Claude models to the [AgentXinAI](https://github.com/agentxin-ai/agentxin) platform. The plugin enables agents to invoke Claude series models with support for streaming, tool calling, and vision capabilities within a unified AgentXinAI agentic workflow.\n\n## Core Features\n\n- Provides the `AnthropicPlugin` NestJS module, which automatically registers model providers, lifecycle logging, and configuration validation logic.\n- Wraps Anthropic's Claude models as AgentXinAI's `LargeLanguageModel` via `AnthropicLargeLanguageModel`, supporting function calling (tool use), streaming output, and agent token statistics.\n- Supports vision capabilities for vision-enabled Claude models.\n- Integrates seamlessly with AgentXinAI's agent workflow system.\n\n## Installation\n\n```bash\nnpm install @agentxin-ai/plugin-anthropic\n```\n\n> **Peer Dependencies**: The host project must also provide libraries such as `@agentxin-ai/plugin-sdk`, `@nestjs/common`, `@nestjs/config`, `@metad/contracts`, `@langchain/anthropic`, `chalk`, and `zod`. Please refer to `package.json` for version requirements.\n\n## Enabling in AgentXinAI\n\n1. Add the plugin package to your system dependencies and ensure it is resolvable by Node.js.\n2. Before starting the service, declare the plugin in your environment variables:\n   ```bash\n   PLUGINS=@agentxin-ai/plugin-anthropic\n   ```\n3. Add a new model provider in the AgentXinAI admin interface or configuration file, and select `anthropic`.\n\n## Credentials & Model Configuration\n\nThe form fields defined in `anthropic.yaml` cover common Anthropic deployment scenarios:\n\n- **API Key**: Your Anthropic API key (required)\n- **Model Name**: The Claude model identifier (e.g., `claude-sonnet-4-6`, `claude-opus-4-6`, `claude-haiku-4-5`)\n- **Context Size**: Maximum context window size (default: 200000)\n- **Max Tokens**: Maximum tokens to generate (default: 4096)\n- **Function Calling**: Enable/disable tool calling support\n- **Vision Support**: Enable/disable vision capabilities\n- **Streaming**: Enable/disable streaming output\n\n## Supported Model Types\n\n- **Large Language Models (LLM)**: Claude series models with support for:\n  - Conversational interactions\n  - Tool calling (function calling)\n  - Streaming output\n  - Vision capabilities (for vision-enabled models)\n\n## Model Examples\n\nCommon Claude model identifiers:\n\n- `claude-sonnet-4-6` - Latest Claude Sonnet 4.6\n- `claude-opus-4-6` - Latest Claude Opus 4.6\n- `claude-haiku-4-5` - Latest Claude Haiku 4.5\n\nThe plugin supports all available Claude models from Anthropic. You can use any valid model identifier from the Anthropic API. For the latest model list, refer to [Anthropic's documentation](https://docs.anthropic.com/claude/docs/models-overview).\n\n## Configuration Example\n\nWhen configuring a model provider in AgentXinAI:\n\n1. Select provider type: `anthropic`\n2. Enter your Anthropic API key\n3. Specify the model name (e.g., `claude-sonnet-4-6`)\n4. Set context size (default: 200000)\n5. Configure max tokens (default: 4096)\n6. Enable/disable features as needed:\n   - Function calling: `tool_call`\n   - Vision support: `support`\n   - Streaming: `supported`\n\n## Development\n\nThis plugin is built using:\n\n- TypeScript\n- NestJS\n- LangChain Anthropic SDK\n- AgentXinAI Plugin SDK\n\n## License\n\nSee the main repository LICENSE file.\n","readmeFilename":"README.md","_rev":"1-68b656e7894f1b550b931e15f111b1fe"}