{"id":16724522,"url":"https://github.com/yunwei37/langscript","last_synced_at":"2025-03-15T14:41:27.794Z","repository":{"id":164606077,"uuid":"640066627","full_name":"yunwei37/langscript","owner":"yunwei37","description":"The true Natural-language programming with LLM and AutoGPT","archived":false,"fork":false,"pushed_at":"2023-10-09T05:29:55.000Z","size":49,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T04:41:34.484Z","etag":null,"topics":["autogpt","chatgpt","gpt","langchain","llm","programming-language"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yunwei37.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":["rochacbruno"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-05-12T22:42:46.000Z","updated_at":"2024-12-10T15:54:14.000Z","dependencies_parsed_at":"2024-03-22T11:30:55.804Z","dependency_job_id":null,"html_url":"https://github.com/yunwei37/langscript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunwei37%2Flangscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunwei37%2Flangscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunwei37%2Flangscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunwei37%2Flangscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yunwei37","download_url":"https://codeload.github.com/yunwei37/langscript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243746130,"owners_count":20341203,"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":["autogpt","chatgpt","gpt","langchain","llm","programming-language"],"created_at":"2024-10-12T22:45:36.585Z","updated_at":"2025-03-15T14:41:27.788Z","avatar_url":"https://github.com/yunwei37.png","language":"Python","readme":"# langscript\n\n[![codecov](https://codecov.io/gh/yunwei37/langscript/branch/main/graph/badge.svg?token=langscript_token_here)](https://codecov.io/gh/yunwei37/langscript)\n[![CI](https://github.com/yunwei37/langscript/actions/workflows/main.yml/badge.svg)](https://github.com/yunwei37/langscript/actions/workflows/main.yml)\n\n\u003cp align=\"center\"\u003e\n  \u003cbr\u003eThe true natural language programing script.\u003c/br\u003e\n    \u003cbr\u003eNo grammar, no syntax, no rules, no limits, Just write what you want to do in complex instructions.\u003c/br\u003e\n        \u003cbr\u003eTake action with LLM, and have better control than AutoGPT.\u003c/br\u003e\n\u003c/p\u003e\n\n## examples\n\nHello World:\n\n```\nSay hello world to our friends to the outside world!\n```\n\nLoop:\n```\nHere is a sentence, \"Hello World \".\nI want you to add a \"hello \" to the end of the sentence above, and print it out. \nI want the above instructions to be executed 10 times, and you give me the output.\n```\n\nif else:\n```\nIt was Monday the day before yesterday, you went to the supermarket and bought an apple. You have it in your hands today.\n\nIf it's Tuesday today, tell the output \"yes\", and ignore the following instructions.\nelse, read the \"Disclaimer of AutoGPT\", summary it in Chinese, You can call the summary \"Chinese Disclaimer of AutoGPT summary\".\n```\n\nCreate a function or task to do something, and call it:\n\n```\nSure! Here are the revised instructions in English:\n\nI have a task for you called \"Translate and Create Novel Chapters Based on an Outline.\" I will provide you with the chapter outline and background information. Your task is to:\n1. Write the content of the chapter based on the outline and background information provided.\n2. Translate the chapter content into English. The translation should be of high quality and exhibit excellent writing style.\n\nNow, translate and Create Novel Chapters Based on the Outline \"Chapter 1: The Beginning of the End\"\n```\n\nimport a module or use the specify functionality, like file system and network:\n\n```\nI want you to access my file system and network.\n\nNow, search for the news for AI and ML，tell me the one you think is the most interesting.\ntranslate it into Chinese and save it to \"interesting.txt\" in my file system.\n```\n\nA more complex example to write a Project code:\n\n```\nI have a task for you called \"Write Project Code.\" In order to write a single module, we need to know the project's directory structure, the requirements for each module, and the overall project requirements.\n\nWhen writing a module, follow these steps:\n1. Perform requirement analysis to help clarify the corresponding requirements. You can write a paragraph outlining the requirements.\n2. Present the written requirements to me for confirmation. Once I approve them, we can proceed to the next step.\n3. Divide the project into modules and units, and further design the corresponding technical approach.\n4. Based on the technical approach, build a code framework and execute the necessary commands in the command line to create a project.\n5. Next, perform the task \"Write Code for a Single Module\" for each module.\n6. Finally, once all modules have been written, conduct integration testing to ensure the overall functionality of the project.\n\nPlease note that during the process, it's important to write unit tests for each module and ensure they pass before moving on.\n\nNow, please write code to build a website for the langscript project.\n```\n\n## Install it from PyPI\n\n```bash\npip install langscript\n```\n\n## Usage\n\nSetup your OpenAI API key:\n\n```bash\nexport OPENAI_API_KEY=\"...\"\n```\n\nUsing it in your script:\n\n```py\nfrom langscript import BaseClass\nfrom langscript import base_function\n\nBaseClass().base_method()\nbase_function()\n```\n\nRun from bash:\n\n```bash\n$ python -m langscript yourscript.ls\n#or\n$ langscript yourscript.ls\n```\n\n## Development\n\nRead the [CONTRIBUTING.md](CONTRIBUTING.md) file.","funding_links":["https://github.com/sponsors/rochacbruno"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyunwei37%2Flangscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyunwei37%2Flangscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyunwei37%2Flangscript/lists"}