pub struct SessionRpcSkills<'a> { /* private fields */ }Expand description
session.skills.* RPCs.
Implementations§
Source§impl<'a> SessionRpcSkills<'a>
impl<'a> SessionRpcSkills<'a>
Sourcepub async fn list(&self) -> Result<SkillList, Error>
pub async fn list(&self) -> Result<SkillList, Error>
Lists skills available to the session.
Wire method: session.skills.list.
§Returns
Skills available to the session, with their enabled state.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn get_invoked(&self) -> Result<SkillsGetInvokedResult, Error>
pub async fn get_invoked(&self) -> Result<SkillsGetInvokedResult, Error>
Returns the skills that have been invoked during this session.
Wire method: session.skills.getInvoked.
§Returns
Skills invoked during this session, ordered by invocation time (most recent last).
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn enable(&self, params: SkillsEnableRequest) -> Result<(), Error>
pub async fn enable(&self, params: SkillsEnableRequest) -> Result<(), Error>
Enables a skill for the session.
Wire method: session.skills.enable.
§Parameters
params- Name of the skill to enable for the session.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn disable(&self, params: SkillsDisableRequest) -> Result<(), Error>
pub async fn disable(&self, params: SkillsDisableRequest) -> Result<(), Error>
Disables a skill for the session.
Wire method: session.skills.disable.
§Parameters
params- Name of the skill to disable for the session.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn reload(&self) -> Result<SkillsLoadDiagnostics, Error>
pub async fn reload(&self) -> Result<SkillsLoadDiagnostics, Error>
Reloads skill definitions for the session.
Wire method: session.skills.reload.
§Returns
Diagnostics from reloading skill definitions, with warnings and errors as separate lists.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn ensure_loaded(&self) -> Result<(), Error>
pub async fn ensure_loaded(&self) -> Result<(), Error>
Ensures the session’s skill definitions have been loaded from disk.
Wire method: session.skills.ensureLoaded.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Trait Implementations§
Source§impl<'a> Clone for SessionRpcSkills<'a>
impl<'a> Clone for SessionRpcSkills<'a>
Source§fn clone(&self) -> SessionRpcSkills<'a>
fn clone(&self) -> SessionRpcSkills<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more