docs.rs failed to build promptkit_rs-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
promptkit_rs-0.1.5
promptkit-rs
promptkit-rs
is a Rust library for structured prompting, designed to create expressive, reusable prompts and structured output, ideal for AI model interactions.
Features
- 🔧 Custom Prompts – Easily define prompts with clear, structured syntax.
- 🎨 rsx_2! Macro – Write JSX-like prompt templates for easy nesting and readability.
- 📊 Structured Output – Define custom output types for predictable responses.
- 🔌 Composable Components – Use Renderable to build prompts from reusable parts.
Quick Start
use ;
Anything that implements promptkit_rs::Renderable
can be automatically rendered from brackets. By default all the primitives, String
, Vec<impl Renderable>
, &[impl Renderable]
are all also Renderable
.
Building Modular Components
Use Renderable to create structured sub-components, then include them in prompts:
use ;
Combine Author components into a prompt:
Execution
With the prompt ready, execute it using OpenAI or any custom executor:
async