prompty 2.0.0-beta.1

Prompty is an asset class and format for LLM prompts
Documentation
// Code generated by Prompty emitter; DO NOT EDIT.

#![allow(
    unused_imports,
    dead_code,
    non_camel_case_types,
    unused_variables,
    clippy::all
)]

use super::super::agent::prompty::Prompty;

/// Renders a template string with input values to produce the final prompt text.
#[async_trait::async_trait]
pub trait Renderer: Send + Sync {
    /// Render the template string with input values
    async fn render(
        &self,
        agent: &Prompty,
        template: &String,
        inputs: &serde_json::Value,
    ) -> Result<String, Box<dyn std::error::Error + Send + Sync>>;
}