pub struct PromptRegistry {
prompts: HashMap<String, PromptDefinition>,
}Expand description
Registry of pre-defined prompts.
Fields§
§prompts: HashMap<String, PromptDefinition>Available prompts.
Implementations§
Source§impl PromptRegistry
impl PromptRegistry
Sourcefn all_prompts() -> Vec<PromptDefinition>
fn all_prompts() -> Vec<PromptDefinition>
Returns all prompt definitions.
fn tutorial_prompt() -> PromptDefinition
fn capture_assistant_prompt() -> PromptDefinition
fn review_prompt() -> PromptDefinition
fn document_decision_prompt() -> PromptDefinition
fn search_help_prompt() -> PromptDefinition
fn browse_prompt() -> PromptDefinition
fn list_prompt() -> PromptDefinition
fn intent_search_prompt() -> PromptDefinition
fn query_suggest_prompt() -> PromptDefinition
fn context_capture_prompt() -> PromptDefinition
fn discover_prompt() -> PromptDefinition
Sourcepub fn list_prompts(&self) -> Vec<&PromptDefinition>
pub fn list_prompts(&self) -> Vec<&PromptDefinition>
Returns all prompt definitions.
Sourcepub fn get_prompt(&self, name: &str) -> Option<&PromptDefinition>
pub fn get_prompt(&self, name: &str) -> Option<&PromptDefinition>
Gets a prompt definition by name.
Sourcepub fn get_prompt_messages(
&self,
name: &str,
arguments: &Value,
) -> Option<Vec<PromptMessage>>
pub fn get_prompt_messages( &self, name: &str, arguments: &Value, ) -> Option<Vec<PromptMessage>>
Generates prompt messages for a given prompt and arguments.
Sourcefn generate_tutorial_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
fn generate_tutorial_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
Generates the tutorial prompt.
Sourcefn generate_capture_assistant_prompt(
&self,
arguments: &Value,
) -> Vec<PromptMessage>
fn generate_capture_assistant_prompt( &self, arguments: &Value, ) -> Vec<PromptMessage>
Generates the capture assistant prompt.
Sourcefn generate_review_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
fn generate_review_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
Generates the review prompt.
Sourcefn generate_decision_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
fn generate_decision_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
Generates the decision documentation prompt.
Sourcefn generate_search_help_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
fn generate_search_help_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
Generates the search help prompt.
Sourcefn generate_browse_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
fn generate_browse_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
Generates the browse prompt (discovery dashboard).
Sourcefn generate_list_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
fn generate_list_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
Generates the list prompt (formatted inventory).
Sourcefn generate_intent_search_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
fn generate_intent_search_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
Generates the intent search prompt.
Sourcefn generate_query_suggest_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
fn generate_query_suggest_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
Generates the query suggest prompt.
Sourcefn generate_context_capture_prompt(
&self,
arguments: &Value,
) -> Vec<PromptMessage>
fn generate_context_capture_prompt( &self, arguments: &Value, ) -> Vec<PromptMessage>
Generates the context capture prompt.
Sourcefn generate_discover_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
fn generate_discover_prompt(&self, arguments: &Value) -> Vec<PromptMessage>
Generates the discover prompt.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PromptRegistry
impl RefUnwindSafe for PromptRegistry
impl Send for PromptRegistry
impl Sync for PromptRegistry
impl Unpin for PromptRegistry
impl UnwindSafe for PromptRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more