
GenAIScript
Prompting is Coding
Programmatically assemble prompts for LLMs using JavaScript. Orchestrate LLMs, tools, and data in code.
-
JavaScript toolbox to work with prompts
-
Abstraction to make it easy and productive
-
Seamless Visual Studio Code integration or flexible command line
-
Built-in support for GitHub Copilot and GitHub Models, OpenAI, Azure OpenAI, Anthropic, and more
-
📄 Read the ONLINE DOCUMENTATION at microsoft.github.io/genaiscript
-
💬 Join the Discord server
-
📝 Read the blog for the latest news
-
📺 Watch Mr. Maeda's Cozy AI Kitchen
-
🤖 Agents - read the llms-full.txt
Hello world
Say to you want to create an LLM script that generates a 'hello world' poem. You can write the following script:
$`Write a 'hello world' poem.`
The $ function is a template tag that creates a prompt. The prompt is then sent to the LLM (you configured), which generates the poem.