nolantait/prompt_schema

Generate BAML style prompts from dry-schema that can get and check structured responses from LLMs

21
/ 100
Experimental

This library helps Ruby developers define expected data structures for responses from Large Language Models (LLMs). You provide a `dry-schema` definition, and it generates a BAML-style JSON schema prompt string to guide the LLM. It also allows you to validate the LLM's output against your original `dry-schema` for reliable data handling. Ruby developers building applications that interact with LLMs would use this tool.

No commits in the last 6 months.

Use this if you are a Ruby developer and want to reliably get structured data from LLMs using your existing `dry-schema` definitions, complete with descriptions and examples.

Not ideal if you are not a Ruby developer, or if you don't need to generate prompts or validate LLM output using `dry-schema`.

LLM-integration Ruby-development data-validation prompt-engineering application-development
Stale 6m No Package No Dependents
Maintenance 2 / 25
Adoption 4 / 25
Maturity 15 / 25
Community 0 / 25

How are scores calculated?

Stars

8

Forks

Language

Ruby

License

MIT

Last pushed

Jul 31, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/nolantait/prompt_schema"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.