pub struct SearchCodePrompts;Expand description
Prompt provider for search_code tool
This is the ONLY way to provide prompts for search_code - tools cannot implement inline. The PromptProvider trait is sealed and can only be implemented in kodegen-mcp-schema.
Trait Implementations§
Source§impl PromptProvider for SearchCodePrompts
impl PromptProvider for SearchCodePrompts
Source§type PromptArgs = SearchCodePromptArgs
type PromptArgs = SearchCodePromptArgs
Prompt arguments type - what customization does the prompt accept?
Source§fn generate_prompts(args: &Self::PromptArgs) -> Vec<PromptMessage>
fn generate_prompts(args: &Self::PromptArgs) -> Vec<PromptMessage>
Generate prompt messages - ONLY schema can implement. Read more
Source§fn prompt_arguments() -> Vec<PromptArgument>
fn prompt_arguments() -> Vec<PromptArgument>
What arguments does the teaching prompt accept? Read more
impl Sealed for SearchCodePrompts
Auto Trait Implementations§
impl Freeze for SearchCodePrompts
impl RefUnwindSafe for SearchCodePrompts
impl Send for SearchCodePrompts
impl Sync for SearchCodePrompts
impl Unpin for SearchCodePrompts
impl UnsafeUnpin for SearchCodePrompts
impl UnwindSafe for SearchCodePrompts
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