{"_id":"@agentxin-ai/plugin-gemini","_rev":"2-4d62a44ccb547cbc0f45bf01f9e8b4c6","name":"@agentxin-ai/plugin-gemini","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.2":{"name":"@agentxin-ai/plugin-gemini","version":"0.0.2","author":{"url":"https://agentxinai.cn","name":"AgentXinAI"},"license":"AGPL-3.0","_id":"@agentxin-ai/plugin-gemini@0.0.2","maintainers":[{"name":"agentxin-ai","email":"1304040880@qq.com"}],"homepage":"https://github.com/agentxin-ai/agentxin-plugins#readme","bugs":{"url":"https://github.com/agentxin-ai/agentxin-plugins/issues"},"dist":{"shasum":"d18d6c21d0c016a08fe43d9d78a14cc9b00c7634","tarball":"https://registry.npmjs.org/@agentxin-ai/plugin-gemini/-/plugin-gemini-0.0.2.tgz","fileCount":52,"integrity":"sha512-Re3OK2fP9GRReAqi2pVvrbd6cuF1vbzjML/gaNP/vm5BEQg8FKySK7eY9sQcgX2dzPSwI3UbCBF41r8PESFnSQ==","signatures":[{"sig":"MEUCIEjoLbYFwpsDK0O1+3SrhAbKKwZ3QRWC+kKbCLrH5U08AiEAzq/3wGfdSqjkBbB98VhObAL9Q6FxxsuUYcMGJzojDLU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":84652},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","@agentxin-plugins-starter/source":"./src/index.ts"},"./package.json":"./package.json"},"scripts":{"test":"jest","prepack":"node ./scripts/copy-assets.mjs"},"_npmUser":{"name":"agentxin-ai","email":"1304040880@qq.com"},"repository":{"url":"git+https://github.com/agentxin-ai/agentxin-plugins.git","type":"git"},"_npmVersion":"10.9.4","description":"`@agentxin-ai/plugin-gemini` connects [Google Gemini](https://ai.google.dev/) models to the [AgentXinAI](https://github.com/agentxin-ai/agentxin) platform. The plugin integrates Google's Generative AI SDK so AgentXinAI agents can call the latest Gemini mo","directories":{},"_nodeVersion":"22.22.0","dependencies":{"tslib":"^2.3.0","@langchain/google-genai":"^0.2.18"},"_hasShrinkwrap":false,"peerDependencies":{"zod":"3.25.67","chalk":"4.1.2","lodash-es":"4.17.21","@nestjs/common":"^11.1.6","@nestjs/config":"^4.0.2","@metad/contracts":"^3.6.2","@agentxin-ai/plugin-sdk":"^3.6.5"},"_npmOperationalInternal":{"tmp":"tmp/plugin-gemini_0.0.2_1773917598713_0.8864170964525095","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@agentxin-ai/plugin-gemini","version":"0.0.3","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":{"test":"jest"},"dependencies":{"@langchain/google-genai":"^0.2.18","tslib":"^2.3.0"},"peerDependencies":{"@metad/contracts":"^3.6.2","@nestjs/common":"^11.1.6","@nestjs/config":"^4.0.2","@agentxin-ai/plugin-sdk":"^3.6.5","lodash-es":"4.17.21","chalk":"4.1.2","zod":"3.25.67"},"_id":"@agentxin-ai/plugin-gemini@0.0.3","description":"`@agentxin-ai/plugin-gemini` connects [Google Gemini](https://ai.google.dev/) models to the [AgentXinAI](https://github.com/agentxin-ai/agentxin) platform. The plugin integrates Google's Generative AI SDK so AgentXinAI agents can call the latest Gemini mo","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-DW4EHkHGi/NH9qW5X8YWFqnSg06YgfsA2DkhP9sdc0cJQ0cactcxO/bE5APOYdYrIxaZ4QByH9Vzi9c4SbjjKg==","shasum":"5c146d984adc3821f3d79267d73e6c5a92764191","tarball":"https://registry.npmjs.org/@agentxin-ai/plugin-gemini/-/plugin-gemini-0.0.3.tgz","fileCount":67,"unpackedSize":96394,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFx/iXwtHMlhanMESisKi4yEj4xk3q4f0aVVWk/sQ4AnAiEAz7/ZOleItT2+2L0GdfSkbRcA2QSZFXrC4WTpOc23nYI="}]},"_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-gemini_0.0.3_1775125087893_0.1312773029779395"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-19T10:53:18.609Z","modified":"2026-04-02T10:18:08.134Z","0.0.2":"2026-03-19T10:53:18.850Z","0.0.3":"2026-04-02T10:18:08.042Z"},"description":"`@agentxin-ai/plugin-gemini` connects [Google Gemini](https://ai.google.dev/) models to the [AgentXinAI](https://github.com/agentxin-ai/agentxin) platform. The plugin integrates Google's Generative AI SDK so AgentXinAI agents can call the latest Gemini mo","maintainers":[{"name":"agentxin-ai","email":"1304040880@qq.com"}],"readme":"# AgentXin Plugin: Gemini\n\n## Overview\n\n`@agentxin-ai/plugin-gemini` connects [Google Gemini](https://ai.google.dev/) models to the [AgentXinAI](https://github.com/agentxin-ai/agentxin) platform. The plugin integrates Google's Generative AI SDK so AgentXinAI agents can call the latest Gemini models (e.g., Gemini 1.5 Pro, Gemini 1.5 Flash) with support for multimodal inputs and function calling.\n\n## Core Features\n\n- Ships `GeminiModule`, which registers the NestJS provider strategy, lifecycle hooks, and configuration schema required by the plugin runtime.\n- Implements `GeminiLargeLanguageModel`, a LangChain-powered adapter that supports streaming chat completions, function calling, and token accounting callbacks for agent telemetry.\n- Shares a console-ready `gemini.yaml` that drives the AgentXinAI UI forms (icons, help links, credential prompts) for quick operator onboarding.\n\n## Installation\n\n```bash\nnpm install @agentxin-ai/plugin-gemini\n```\n\n> **Peer Dependencies**: Ensure your host service also provides `@agentxin-ai/plugin-sdk`, `@nestjs/common`, `@nestjs/config`, `@metad/contracts`, `@langchain/google-genai`, `lodash-es`, `chalk`, `zod`, and `tslib`. Refer to `package.json` for exact versions.\n\n## Enabling in AgentXinAI\n\n1. Declare the plugin before bootstrapping the AgentXinAI server:\n   ```bash\n   PLUGINS=@agentxin-ai/plugin-gemini\n   ```\n2. In the AgentXinAI admin console (or config file), create a model provider pointing to `gemini`, then add individual models that map to the specific Gemini versions you want to use.\n\n## Credentials & Model Configuration\n\nThe `gemini.yaml` schema backs the form fields you see in the console:\n\n| Field             | Description                                                                          |\n| ----------------- | ------------------------------------------------------------------------------------ |\n| `google_api_key`  | Required. Your Google AI Studio API Key.                                             |\n| `google_base_url` | Optional. Base URL if you need to route requests through a proxy or custom endpoint. |\n| `file_url`        | Optional. Local FILES URL prefix to optimize upload performance.                     |\n\nDuring validation, the plugin instantiates the Google Generative AI client against the provided credentials to ensure connectivity and permissions.\n\n## Model Capabilities\n\n- **Conversational Models**: `GeminiLargeLanguageModel` merges provider credentials with per-model overrides, turns on streaming, and registers token usage callbacks so agent telemetry stays accurate. It supports the full range of Gemini models including `gemini-1.5-pro`, `gemini-1.5-flash`, and their experimental variants.\n\n## Development & Debugging\n\nFrom the repo root, run Nx commands for this package:\n\n```bash\ncd agentxinai\nnpx nx build @agentxin-ai/plugin-gemini\nnpx nx test @agentxin-ai/plugin-gemini\n```\n\nArtifacts land in `agentxinai/models/gemini/dist`. Jest settings live in `jest.config.ts`, and the asset copier runs via `npm run prepack` before publishing.\n\n## License\n\nThis plugin is distributed under the [AGPL-3.0 License](../../../LICENSE) located at the repository root.\n","readmeFilename":"README.md"}