pub struct PromptSkill { /* private fields */ }Expand description
A prompt-based skill that uses an LLM.
Implementations§
Trait Implementations§
Source§impl Skill for PromptSkill
impl Skill for PromptSkill
Source§fn config(&self) -> &SkillConfig
fn config(&self) -> &SkillConfig
Get the skill’s configuration.
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 AsyncForgeClient,
input: SkillInput,
) -> Pin<Box<dyn Future<Output = SkillResult<SkillOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 AsyncForgeClient,
input: SkillInput,
) -> Pin<Box<dyn Future<Output = SkillResult<SkillOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute the skill with the given input.
Source§fn validate_input(&self, _input: &SkillInput) -> SkillResult<()>
fn validate_input(&self, _input: &SkillInput) -> SkillResult<()>
Validate input before execution.
Auto Trait Implementations§
impl Freeze for PromptSkill
impl RefUnwindSafe for PromptSkill
impl Send for PromptSkill
impl Sync for PromptSkill
impl Unpin for PromptSkill
impl UnsafeUnpin for PromptSkill
impl UnwindSafe for PromptSkill
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