pub struct SkillsApi { /* private fields */ }Expand description
Skills API operations
Implementations§
Source§impl SkillsApi
impl SkillsApi
Sourcepub async fn list(
&self,
pagination: Option<PaginationParams>,
) -> ApiResult<PaginatedResponse<SkillSummary>>
pub async fn list( &self, pagination: Option<PaginationParams>, ) -> ApiResult<PaginatedResponse<SkillSummary>>
List all installed skills with pagination
Sourcepub async fn list_all(&self) -> ApiResult<Vec<SkillSummary>>
pub async fn list_all(&self) -> ApiResult<Vec<SkillSummary>>
List all skills (no pagination)
Sourcepub async fn get(&self, name: &str) -> ApiResult<SkillDetail>
pub async fn get(&self, name: &str) -> ApiResult<SkillDetail>
Get details for a specific skill
Sourcepub async fn install(
&self,
request: &InstallSkillRequest,
) -> ApiResult<InstallSkillResponse>
pub async fn install( &self, request: &InstallSkillRequest, ) -> ApiResult<InstallSkillResponse>
Install a skill from a source
Sourcepub async fn install_from_git(
&self,
url: &str,
git_ref: Option<&str>,
force: bool,
) -> ApiResult<InstallSkillResponse>
pub async fn install_from_git( &self, url: &str, git_ref: Option<&str>, force: bool, ) -> ApiResult<InstallSkillResponse>
Install a skill from a git URL
Sourcepub async fn install_with_name(
&self,
source: &str,
name: &str,
) -> ApiResult<InstallSkillResponse>
pub async fn install_with_name( &self, source: &str, name: &str, ) -> ApiResult<InstallSkillResponse>
Install a skill with a custom name
Sourcepub async fn get_tools(&self, skill_name: &str) -> ApiResult<Vec<ToolInfo>>
pub async fn get_tools(&self, skill_name: &str) -> ApiResult<Vec<ToolInfo>>
Get the tools for a skill
Sourcepub async fn get_instances(
&self,
skill_name: &str,
) -> ApiResult<Vec<InstanceInfo>>
pub async fn get_instances( &self, skill_name: &str, ) -> ApiResult<Vec<InstanceInfo>>
Get instances for a skill
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SkillsApi
impl RefUnwindSafe for SkillsApi
impl !Send for SkillsApi
impl !Sync for SkillsApi
impl Unpin for SkillsApi
impl UnwindSafe for SkillsApi
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.