{"id":25735933,"url":"https://github.com/corzed/agentic-framework-translator","last_synced_at":"2025-02-26T05:33:31.348Z","repository":{"id":279452787,"uuid":"938863093","full_name":"Corzed/Agentic-Framework-Translator","owner":"Corzed","description":"Translate code inbetween agentic frameworks","archived":false,"fork":false,"pushed_at":"2025-02-25T16:20:11.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T17:24:31.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Corzed.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}},"created_at":"2025-02-25T16:11:21.000Z","updated_at":"2025-02-25T16:20:14.000Z","dependencies_parsed_at":"2025-02-25T17:24:34.840Z","dependency_job_id":"5c30fe03-f382-4f52-886d-d9e1d8bd56d8","html_url":"https://github.com/Corzed/Agentic-Framework-Translator","commit_stats":null,"previous_names":["corzed/agentic-framework-translator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corzed%2FAgentic-Framework-Translator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corzed%2FAgentic-Framework-Translator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corzed%2FAgentic-Framework-Translator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corzed%2FAgentic-Framework-Translator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Corzed","download_url":"https://codeload.github.com/Corzed/Agentic-Framework-Translator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240800524,"owners_count":19859724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-02-26T05:33:30.218Z","updated_at":"2025-02-26T05:33:31.230Z","avatar_url":"https://github.com/Corzed.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Agent Framework Translator\n\n## Introduction\nThe AI Agent Framework Translator is a tool designed to convert AI agents between different frameworks using AI-powered translation, making it easier for developers to switch frameworks without rewriting code.\n\n## Supported Frameworks\n- LangChain (Docs to be added)\n- CrewAI (Docs to be added)\n- More frameworks can be added by contributors!\n\n## Features\n- **AI-Powered Translation**: Uses OpenAI's chat completion API (via o3-mini-high) to perform accurate translations.\n- **Documentation Context**: Incorporates framework documentation from a JSON file to improve translation accuracy.\n- **Extensible Architecture**: Contributors can easily add support for new frameworks by updating `frameworks_docs.json` and adding custom translation logic in `translators.py`.\n- **Modular Design**: The code is split into separate files for ease of maintenance and contributions.\n\n## Installation\n1. Clone the repository:\n   ```\n   git clone https://github.com/Corzed/Agentic-Framework-Translator.git\n   cd Agentic-Framework-Translator\n   ```\n2. Install dependencies:\n   ```\n   pip install -r requirements.txt\n   ```\n3. Set your OpenAI API key in an environment variable named `OPENAI_API_KEY` or directly in the code.\n\n## Usage\nTo translate an AI agent from one framework to another, run:\n```\npython translate.py --source \u003csource_framework\u003e --target \u003ctarget_framework\u003e --input \u003cinput_file\u003e --output \u003coutput_file\u003e\n```\nExample:\n```\npython translate.py --source langchain --target crewai --input agent_langchain.py --output agent_crewai.py\n```\n\n## Contribution Guidelines\nContributions are more than welcome!\nThis Translator is built upon the contributions of many by providing new frameworks and adding more documentation!\n- **Documentation**: Add or update framework documentation in the `frameworks_docs.json` file.\n- **Translation Logic**: Enhance translation logic in `translators.py`.\n- Please submit a pull request with your changes. For any questions, feel free to open an issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorzed%2Fagentic-framework-translator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorzed%2Fagentic-framework-translator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorzed%2Fagentic-framework-translator/lists"}