use async_trait::async_trait;
use serde::{Deserialize, Serialize};
use serde_json::Value;
use crate::Result;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Prompt {
pub id: String,
pub name: String,
pub description: String,
pub template: String,
pub parameters: Option<Value>,
}
#[async_trait]
pub trait PromptManager: Send + Sync {
async fn list_prompts(&self) -> Result<Vec<Prompt>>;
async fn get_prompt(&self, id: &str) -> Result<Prompt>;
async fn execute_prompt(&self, id: &str, params: Option<Value>) -> Result<Value>;
}