#79 · Primary category: Prompt Engineering Tools

grace

ai functional-programming interpreter llm programming-language prompt-engineering

A prompt engineering functional programming language

Project last updated:06/13/26

GitHub Stars

613

Forks

45

Contributors

13

License

BSD-3-Clause

Why we included this project

Grace is a domain-specific programming language for prompting models, built as a full functional language rather than another wrapper library or template system. Its type checker reasons backwards from how you use the output, so a loop over a list of names or an interpolation into a string tells the interpreter what JSON schema to send to the model, and in many cases you can omit the prompt text entirely. That fits teams building elaborate prompt chains as reusable, type-checked code instead of hand-written strings. The built-in prompt function, code generation that can produce Grace expressions (including functions that themselves call the model), and a browser-based tutorial at trygrace.dev make it easy to get started. Developers comfortable with typed functional languages will find a way of composing prompts and validating structured output that the usual prompt libraries don't offer.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category