{"_id":"@ans-project/copilotkit-adapter","name":"@ans-project/copilotkit-adapter","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ans-project/copilotkit-adapter","version":"0.1.0","description":"ANS (Agent Network System) Adapter for CopilotKit","main":"dist/index.js","types":"dist/index.d.ts","type":"module","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"keywords":["ans","agent-network","copilotkit","adapter","agent","ai"],"author":{"name":"gClouds R&D | gLabs"},"license":"MIT","dependencies":{"@ans-project/sdk-js":"^0.0.5","@copilotkit/runtime":"^1.50.0"},"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0"},"_id":"@ans-project/copilotkit-adapter@0.1.0","gitHead":"d4b8b8488e88e8f2e9f4a720fc9e7e2a999e271c","_nodeVersion":"24.5.0","_npmVersion":"11.0.0","dist":{"integrity":"sha512-EcC2Azg8L/uBm9rMWeS6i65ITULISqHDAJsWXejPYYiTaLLuPMu7a5py937A4lW6Mw2S3JIEhakQQ+fgCEs7qQ==","shasum":"c1966a75df87b8c41a8fc3db9374c1e2cad8de06","tarball":"https://registry.npmjs.org/@ans-project/copilotkit-adapter/-/copilotkit-adapter-0.1.0.tgz","fileCount":6,"unpackedSize":10485,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFO6w5xTHb7amnXSskpdc1wD6rt1LDGC9IqBRVZS2iroAiEAp81VVdjiY8KqkaHH890njz65kl7uqXYLkiZKc4HoA/Q="}]},"_npmUser":{"name":"gclouds","email":"mustafa.gulercan@gclouds.co.uk"},"directories":{},"maintainers":[{"name":"gclouds","email":"mustafa.gulercan@gclouds.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/copilotkit-adapter_0.1.0_1765517658439_0.08172659276603578"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-12T05:34:18.374Z","0.1.0":"2025-12-12T05:34:18.601Z","modified":"2025-12-12T05:34:18.851Z"},"maintainers":[{"name":"gclouds","email":"mustafa.gulercan@gclouds.co.uk"}],"description":"ANS (Agent Network System) Adapter for CopilotKit","keywords":["ans","agent-network","copilotkit","adapter","agent","ai"],"author":{"name":"gClouds R&D | gLabs"},"license":"MIT","readme":"# @ans-project/copilotkit-adapter\n\nThe official Agent Network System (ANS) adapter for [CopilotKit](https://github.com/CopilotKit/CopilotKit).\n\nThis package provides a seamless integration between your CopilotKit-powered agents and the [ANS registry](https://github.com/g-clouds/ANS), allowing your agents to discover and interact with other verified agents in the network.\n\n## Installation\n\n```bash\nnpm install @ans-project/copilotkit-adapter @ans-project/sdk-js\n```\n\n## Usage\n\nIn your CopilotKit backend (e.g., `app/api/copilotkit/route.ts`):\n\n```typescript\nimport { CopilotRuntime, OpenAIAdapter } from \"@copilotkit/runtime\";\nimport { ansActions } from \"@ans-project/copilotkit-adapter\";\n\n// 1. Initialize the ANS Actions\nconst actions = ansActions({\n  baseURL: \"https://ans-register-390011077376.us-central1.run.app\",\n});\n\n// 2. Pass them to the CopilotRuntime\nconst runtime = new CopilotRuntime({\n  actions: actions,\n});\n\nconst serviceAdapter = new OpenAIAdapter();\n\n// ... handle request\n```\n\n## Tools Provided\n\n*   **`ans_lookup_agent`**: Allows the LLM to search for agents by capability (e.g., \"find an image generation agent\").\n\n*   **`ans_get_agent_details`**: Retrieve details for a specific agent ID.\n\n*   **`ans_register_agent`**: Register a new agent identity with the network.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-b9b179135a20760c1fbe32ef4ada1caa"}