pub struct HttpFetchSkill { /* private fields */ }Implementations§
Source§impl HttpFetchSkill
impl HttpFetchSkill
Sourcepub fn new(allowed_hosts: HashSet<String>, timeout: Duration) -> Self
pub fn new(allowed_hosts: HashSet<String>, timeout: Duration) -> Self
Create with host allowlist. Empty set = deny all.
pub fn permissive(timeout: Duration) -> Self
pub async fn access_policy(&self) -> AccessPolicy
Trait Implementations§
Source§impl NativeSkill for HttpFetchSkill
impl NativeSkill for HttpFetchSkill
fn execute<'life0, 'async_trait>(
&'life0 self,
invocation: SkillInvocation,
) -> Pin<Box<dyn Future<Output = Result<Value, SkillExecutionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn executor_kind(&self) -> &'static str
fn requires_human_approval(&self) -> bool
Auto Trait Implementations§
impl Freeze for HttpFetchSkill
impl !RefUnwindSafe for HttpFetchSkill
impl Send for HttpFetchSkill
impl Sync for HttpFetchSkill
impl Unpin for HttpFetchSkill
impl UnsafeUnpin for HttpFetchSkill
impl !UnwindSafe for HttpFetchSkill
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