pub struct PromptFileBuilder { /* private fields */ }Expand description
A fluent builder for test PromptFiles; see prompt_file.
Implementations§
Source§impl PromptFileBuilder
impl PromptFileBuilder
Sourcepub fn description(self, description: &str) -> Self
pub fn description(self, description: &str) -> Self
The skill description shown to users selecting the skill.
Sourcepub fn user_invocable(self, user_invocable: bool) -> Self
pub fn user_invocable(self, user_invocable: bool) -> Self
Whether the user can invoke the skill as a slash command.
Sourcepub fn agent_invocable(self, agent_invocable: bool) -> Self
pub fn agent_invocable(self, agent_invocable: bool) -> Self
Whether the agent can invoke the skill on its own.
Sourcepub fn argument_hint(self, argument_hint: &str) -> Self
pub fn argument_hint(self, argument_hint: &str) -> Self
The argument hint shown to users when invoking the skill.
The skill’s tags.
Sourcepub fn read_triggers(self, patterns: &[&str]) -> Self
pub fn read_triggers(self, patterns: &[&str]) -> Self
Read-trigger glob patterns activating the skill when matching files are read.
Whether the agent authored this skill.
Sourcepub fn ratings(self, helpful: u32, harmful: u32) -> Self
pub fn ratings(self, helpful: u32, harmful: u32) -> Self
The helpful/harmful rating counts collected for this skill.
Sourcepub fn build(self) -> PromptFile
pub fn build(self) -> PromptFile
The finished PromptFile.
Auto Trait Implementations§
impl Freeze for PromptFileBuilder
impl RefUnwindSafe for PromptFileBuilder
impl Send for PromptFileBuilder
impl Sync for PromptFileBuilder
impl Unpin for PromptFileBuilder
impl UnsafeUnpin for PromptFileBuilder
impl UnwindSafe for PromptFileBuilder
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