# promptforge-core
[](https://crates.io/crates/promptforge-core)
[](https://docs.rs/promptforge-core)
[](LICENSE)
A Rust library that turns Markdown files into executable AI prompt pipelines. You write a prompt as a document - YAML frontmatter for metadata, embedded Lua for logic, prose blocks for model instructions - and the library parses it into a validated representation, then executes it against any OpenAI-compatible endpoint. Structured multi-section prompts with tool dispatch, model orchestration, concurrent fanout, and a virtual filesystem, all driven from a single `run` call that returns a string.
## Usage
```toml
[dependencies]
promptforge-core = "0.1"
```
```rust
use promptforge_core::{Prompt, RunConfig};
let prompt = Prompt::parse_file("prompts/hello.md")?;
let result = prompt.run(&config).await?;
println!("{result}");
```
See the [PromptForge User Guide](https://cppalliance.github.io/promptforge/) for full documentation.
## Minimum Rust Version
Rust 1.89 or later.
## License
Licensed under the [Boost Software License 1.0](LICENSE).