{"id":26190285,"url":"https://github.com/digitalkin-ai/kin-kernel","last_synced_at":"2026-03-05T02:32:26.213Z","repository":{"id":210876120,"uuid":"727624122","full_name":"DigitalKin-ai/kin-kernel","owner":"DigitalKin-ai","description":"This package is designed to enable developers to create Cells","archived":false,"fork":false,"pushed_at":"2024-11-07T08:58:13.000Z","size":3687,"stargazers_count":5,"open_issues_count":8,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-15T02:09:53.449Z","etag":null,"topics":["artificial-intelligence","digitalkin","kin-kernel","multi-agent-systems"],"latest_commit_sha":null,"homepage":"https://digitalkin-ai.github.io/kin-kernel/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DigitalKin-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-05T08:39:59.000Z","updated_at":"2024-12-02T01:37:14.000Z","dependencies_parsed_at":"2024-01-23T15:00:38.001Z","dependency_job_id":"cb839c29-166a-4f0d-bedc-dbd6404dd772","html_url":"https://github.com/DigitalKin-ai/kin-kernel","commit_stats":null,"previous_names":["digitalkin-ai/kin-kernel"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/DigitalKin-ai/kin-kernel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigitalKin-ai%2Fkin-kernel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigitalKin-ai%2Fkin-kernel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigitalKin-ai%2Fkin-kernel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigitalKin-ai%2Fkin-kernel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DigitalKin-ai","download_url":"https://codeload.github.com/DigitalKin-ai/kin-kernel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigitalKin-ai%2Fkin-kernel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30107212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T01:39:18.192Z","status":"online","status_checked_at":"2026-03-05T02:00:06.710Z","response_time":93,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artificial-intelligence","digitalkin","kin-kernel","multi-agent-systems"],"created_at":"2025-03-12T00:53:13.640Z","updated_at":"2026-03-05T02:32:26.196Z","avatar_url":"https://github.com/DigitalKin-ai.png","language":"Python","readme":"# 📖 DigitalKin.ai - KinKernel\n\n[![PyPI version](https://badge.fury.io/py/kin-kernel.svg)](https://badge.fury.io/py/kin-kernel)\n[![Python version](https://img.shields.io/pypi/pyversions/kin-kernel.svg)](https://pypi.python.org/pypi/kin-kernel/)\n[![codecov](https://codecov.io/gh/DigitalKin-ai/kin-kernel/graph/badge.svg?token=65F0SB839V)](https://codecov.io/gh/DigitalKin-ai/kin-kernel)\n[![License: CC BY-NC-SA 4.0](https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg)](http://creativecommons.org/licenses/by-nc-sa/4.0/)\n[![DigitalKin](https://img.shields.io/badge/DigitalKin-connect-001945)](https://vision.digitalkin.ai)\n[![Discord](https://img.shields.io/badge/Discord-join-blue)](https://discord.com/invite/yVstHVcx)\nWelcome to the DigitalKin KinKernel ! This package is designed to enable developers to create Cells, which are autonomous agents that can be integrated into the Internet of Agents (IoA) ecosystem powered by DigitalKin.\n\n## 👀 Overview\n\nThe KinKernel provides a framework for creating and managing Cells. Each Cell represents a distinct autonomous agent with a specific role and behavior within the IoA. The KinKernel ensures that all Cells adhere to a standard interface and can communicate effectively within the ecosystem.\n\n## 💡 Features\n\n- Abstract base classes for standardizing Cell creation\n- Response models for consistent communication\n- Helper methods for schema information access\n- Configuration management\n- Example Cell implementation\n\n## 🛠️ Installation\n\nBefore installing the KinKernel, ensure you have Python installed on your system. This package requires Python 3.10 or higher.\n\nTo install the KinKernel\nWith pipy:\n\n```shell\npip install kin-kernel\n```\n\nOr clone the repository and install the dependencies:\n\n```shell\ngit clone https://github.com/DigitalKin/kin-kernel.git\ncd kin-kernel-kit\npip install -r requirements/prod.txt\n```\n\nFor development purposes, you may also want to install the development dependencies:\n\n```shell\npip install -r requirements/dev.txt\n```\n\n## ✨ Linter\n\nExecute linters:\n\n```bash\n   flake8 kinkernel\n   black kinkernel --check --diff\n   black kinkernel\n   mypy kinkernel\n   pylint kinkernel\n```\n\n## 💻 Usage\n\nTo create a new Cell, you'll need to subclass the `Cell` class provided in the kinKernel and implement the required methods and properties.\n\nHere's a simple example of a Cell that processes input data:\n\n```python\nfrom pydantic import BaseModel\n\nfrom kinkernel import Cell\nfrom kinkernel.config import ConfigModel, EnvVar\n\n\nclass MyInputModel(BaseModel):\n    value1: int\n    value2: str\n\n\nclass MyOutputModel(BaseModel):\n    processed_value: int\n\n\nclass MyCell(Cell[MyInputModel, MyOutputModel]):\n    role = \"Processor\"\n    description = \"Processes input data\"\n    input_format = MyInputModel\n    output_format = MyOutputModel\n    config = ConfigModel(\n        env_vars=[\n            EnvVar(key=\"ENV_VAR_1\", value=\"value1\"),\n            EnvVar(key=\"ENV_VAR_2\", value=\"value2\"),\n        ]\n    )\n\n    async def _execute(self, input_data: MyInputModel) -\u003e MyOutputModel:\n        # Process the input_data as needed\n        exec_result = {\"processed_value\": input_data.value1 * 2}\n        return MyOutputModel(**exec_result)\n```\n\nYou can then instantiate and execute your Cell as follows:\n\n```python\nmy_cell = MyCell()\ninput_data = MyInputModel(value1=10, value2=\"example\")\noutput_data = my_cell.execute(input_data)\nprint(output_data)\n```\n\nFor a more detailed example, refer to the `examples/simple_cell_example.py` file in the repository.\n\n## 🧪 Testing\n\nThe CDK comes with a set of unit tests to ensure that your Cells work as expected. To run the tests, execute the following command:\n\n```shell\npytest\n```\n\n## 👥 Contribution\n\nContributions to the KinKernel are welcome! If you have suggestions for improvements or find any issues, please open an issue on our GitHub repository.\n\n## 🤗 Support\n\nIf you have any questions or need support with the KinKernel, please reach out to us at contact@digitalkin.ai.\n\nThank you for using the DigitalKin Cell Development Kit. We look forward to seeing the innovative Cells you'll create for the Internet of Agents!\n\n---\n\nKin-kernel © 2023 by DigitalKin is licensed under CC BY-NC-SA 4.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalkin-ai%2Fkin-kernel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalkin-ai%2Fkin-kernel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalkin-ai%2Fkin-kernel/lists"}