prompt_store/api/
mod.rs

1//! High-level fluent API for running prompts and chains.
2
3mod error;
4mod llm_bridge;
5mod runner;
6mod store;
7
8pub use error::{RunError, StoreError};
9pub use llm_bridge::LLMBackendRef;
10pub use runner::{ChainRunner, PromptRunner};
11pub use store::PromptStore;
12
13/// Result of running a prompt or chain.
14#[derive(Debug, Clone)]
15pub enum RunOutput {
16    /// Output of a single prompt run (text content generated or rendered).
17    Prompt(String),
18    /// Outputs of a multi-step chain run (map of step IDs to generated text).
19    Chain(std::collections::HashMap<String, String>),
20}