{"id":1035009,"date":"2024-05-16T11:41:56","date_gmt":"2024-05-16T18:41:56","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/research\/?post_type=msr-project&#038;p=1035009"},"modified":"2024-05-17T12:17:42","modified_gmt":"2024-05-17T19:17:42","slug":"genaiscript-scripting-for-generative-ai","status":"publish","type":"msr-project","link":"https:\/\/www.microsoft.com\/en-us\/research\/project\/genaiscript-scripting-for-generative-ai\/","title":{"rendered":"GenAIScript: Scripting for Generative AI"},"content":{"rendered":"<section class=\"mb-3 moray-highlight\">\n\t<div class=\"card-img-overlay mx-lg-0\">\n\t\t<div class=\"card-background  has-background-grey card-background--inset-right\">\n\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"764\" height=\"764\" src=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/05\/GenAI-Script_logo.png\" class=\"attachment-full size-full\" alt=\"genAI design element\" style=\"\" srcset=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/05\/GenAI-Script_logo.png 764w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/05\/GenAI-Script_logo-300x300.png 300w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/05\/GenAI-Script_logo-150x150.png 150w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/05\/GenAI-Script_logo-180x180.png 180w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/05\/GenAI-Script_logo-360x360.png 360w\" sizes=\"auto, (max-width: 764px) 100vw, 764px\" \/>\t\t<\/div>\n\t\t<!-- Foreground -->\n\t\t<div class=\"card-foreground d-flex mt-md-n5 my-lg-5 px-g px-lg-0\">\n\t\t\t<!-- Container -->\n\t\t\t<div class=\"container d-flex mt-md-n5 my-lg-5 \">\n\t\t\t\t<!-- Card wrapper -->\n\t\t\t\t<div class=\"w-100 w-lg-col-5\">\n\t\t\t\t\t<!-- Card -->\n\t\t\t\t\t<div class=\"card material-md-card py-5 px-md-5\">\n\t\t\t\t\t\t<div class=\"card-body \">\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\n<h4 class=\"wp-block-heading\" id=\"genaiscript-scripting-for-generative-ai-1\">GenAIScript: Scripting for Generative AI<\/h4>\n\n\n\n<p>GenAIScript is open source<\/p>\n\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/section>\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-genaiscript\">What is GenAIScript?<\/h2>\n\n\n\n<p><a class=\"msr-external-link glyph-append glyph-append-open-in-new-tab glyph-append-xsmall\" href=\"https:\/\/microsoft.github.io\/genaiscript\/\" target=\"_blank\" rel=\"noopener noreferrer\">GenAIScript<span class=\"sr-only\"> (opens in new tab)<\/span><\/a> is scripting language where AI and foundation models are first-class entities, enabling a wide range of users to enhance their workflows with AI capabilities. GenAIScript provides support for authoring and debugging scripts that incorporate calls to foundation models and LLMs in their execution. With deep integration in a VS Code extension, users can author, debug, and deploy their GenAIScripts leveraging a state-of-the-art user experience. GenAIScript supports importing AI context from many different sources (.pdf, .docx, .csv, etc.) and generating multiple forms of output from LLM generations, such as files, edits, and structured data.<\/p>\n\n\n\n<p>In addition to enhancing productivity, GenAIScript is a research vehicle for building an AI-aware programming language runtime system and integrating it into a next-generation system stack that incorporates AI foundation models from first principles. For more thoughts about System Stack 2.0, read our SIGPLAN\/SIGARCH blog article: <a class=\"msr-external-link glyph-append glyph-append-open-in-new-tab glyph-append-xsmall\" href=\"https:\/\/blog.sigplan.org\/2024\/04\/23\/ai-software-should-be-more-like-plain-old-software\/\" target=\"_blank\" rel=\"noopener noreferrer\">AI Software Should be More Like Plain Old Software | SIGPLAN Blog<span class=\"sr-only\"> (opens in new tab)<\/span><\/a><\/p>\n\n\n\n<p>You can start using it by downloading it from the VS Code Extensions or visiting: <a class=\"msr-external-link glyph-append glyph-append-open-in-new-tab glyph-append-xsmall\" href=\"https:\/\/microsoft.github.io\/genaiscript\/\" target=\"_blank\" rel=\"noopener noreferrer\">Generative AI Scripting | GenAIScript (microsoft.github.io)<span class=\"sr-only\"> (opens in new tab)<\/span><\/a><\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a data-bi-type=\"button\" class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/microsoft.github.io\/genaiscript\/\" target=\"_blank\" rel=\"noreferrer noopener\">Get the code<\/a><\/div>\n\n\n\n<div class=\"wp-block-button is-style-fill-github\"><a data-bi-type=\"button\" class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/github.com\/microsoft\/genaiscript\" target=\"_blank\" rel=\"noreferrer noopener\">Visit the GitHub repo<\/a><\/div>\n<\/div>\n\n\n","protected":false},"excerpt":{"rendered":"<p>GenAIScript is scripting language where AI and foundation models are first-class entities, enabling a wide range of users to enhance their workflows with AI capabilities.<\/p>\n","protected":false},"featured_media":1035165,"template":"","meta":{"msr-url-field":"","msr-podcast-episode":"","msrModifiedDate":"","msrModifiedDateEnabled":false,"ep_exclude_from_search":false,"_classifai_error":"","footnotes":""},"research-area":[13556,13560],"msr-locale":[268875],"msr-impact-theme":[],"msr-pillar":[],"class_list":["post-1035009","msr-project","type-msr-project","status-publish","has-post-thumbnail","hentry","msr-research-area-artificial-intelligence","msr-research-area-programming-languages-software-engineering","msr-locale-en_us","msr-archive-status-active"],"msr_project_start":"","related-publications":[],"related-downloads":[],"related-videos":[],"related-groups":[],"related-events":[],"related-opportunities":[],"related-posts":[],"related-articles":[],"tab-content":[],"slides":[],"related-researchers":[{"type":"user_nicename","display_name":"Peli de Halleux","user_id":32253,"people_section":"Related people","alias":"jhalleux"},{"type":"user_nicename","display_name":"Ben Zorn","user_id":35154,"people_section":"Related people","alias":"zorn"},{"type":"user_nicename","display_name":"Madan Musuvathi","user_id":32766,"people_section":"Related people","alias":"madanm"}],"msr_research_lab":[199565],"msr_impact_theme":[],"_links":{"self":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-project\/1035009","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-project"}],"about":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/types\/msr-project"}],"version-history":[{"count":15,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-project\/1035009\/revisions"}],"predecessor-version":[{"id":1102020,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-project\/1035009\/revisions\/1102020"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/media\/1035165"}],"wp:attachment":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/media?parent=1035009"}],"wp:term":[{"taxonomy":"msr-research-area","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/research-area?post=1035009"},{"taxonomy":"msr-locale","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-locale?post=1035009"},{"taxonomy":"msr-impact-theme","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-impact-theme?post=1035009"},{"taxonomy":"msr-pillar","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-pillar?post=1035009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}