hanzo_protocol/custom_prompts.rs
1use serde::Deserialize;
2use serde::Serialize;
3use std::path::PathBuf;
4use ts_rs::TS;
5
6/// Base namespace for custom prompt slash commands (without trailing colon).
7/// Example usage forms constructed in code:
8/// - Command token after '/': `"{PROMPTS_CMD_PREFIX}:name"`
9/// - Full slash prefix: `"/{PROMPTS_CMD_PREFIX}:"`
10pub const PROMPTS_CMD_PREFIX: &str = "prompts";
11
12#[derive(Serialize, Deserialize, Debug, Clone, TS)]
13pub struct CustomPrompt {
14 pub name: String,
15 pub path: PathBuf,
16 pub content: String,
17 pub description: Option<String>,
18 pub argument_hint: Option<String>,
19}