GenAIScript
GenAIScript, scripting for Generative AI.
GenAIScript
GenAIScript is a JavaScript/TypeScript library and environment to build productive script using LLMs.
Markdown Documentation
All pages of the documentation have a markdown route by adding '.md' to the URL. For example, the markdown for https://microsoft.github.io/genaiscript/reference/scripts is at https://microsoft.github.io/genaiscript/reference/scripts.md
Guidance for Code Generation
- GenAIScript programs are meant to be executed through the genaiscript cli (https://www.npmjs.com/package/genaiscript).
- When generating code for GenAIScript, always target TypeScript, Node.JS, ESM. Prefer await/async, keep it simple.
- ambient types and definitions defined in "genaiscript.d.ts" are preloaded at runtime. you do not need to import them.
- you keep the code simple, avoid exception handlers or error checking.
- you add TODOs where you are unsure so that the user can review them
- you use the global types in genaiscript.d.ts are already loaded in the global context, no need to import them.
- save generated code in the "./genaisrc" folder with ".genai.mts" extension
Documentation Sets
- Abridged documentation: a compact version of the documentation for GenAIScript, with non-essential content removed
- Complete documentation: the full documentation for GenAIScript
- Getting Started: Sequence of short tutorials on how to get started with GenAIScript
- Configuration: Configure access to LLMs and other services
- Reference: full reference documentation (runtime and cli)
- Reference Scripts: full reference documentation for the runtime
- Reference CLI: full reference documentation for the command line interface and Node.JS runtime
- Guides: Guides on various LLM programming topics
Notes
- The complete documentation includes all content from the official documentation
- The content is automatically generated from the same source as the official documentation
Meet the modern standard for public facing documentation. Beautiful out of the box, easy to maintain, and optimized for user engagement.
Search through billions of items for similar matches to any object, in milliseconds. It’s the next generation of search, an API call away.
Build and deploy reliable background jobs with no timeouts and no infrastructure to manage.
Get the simple developer experience of SQLite in production, and scale your multi-tenant backend with unlimited databases.
Upstash is a serverless data platform providing low latency and high scalability for real-time applications.
One-click deployments built for teams, tuned for Laravel, loaded with tools and goodies you're going to love.