pub struct SkillRef {
pub skill_id: String,
}Expand description
Reference to a skill package.
Skills are pre-built capability packages that the runtime can load and attach to an agent.
§Wire Shape (CANON §3.9)
{"skill_id": "code-review-v2"}§Example
use adk_managed::types::SkillRef;
let skill = SkillRef { skill_id: "code-review-v2".to_string() };
let json = serde_json::to_string(&skill).unwrap();
assert_eq!(json, r#"{"skill_id":"code-review-v2"}"#);Fields§
§skill_id: StringThe skill package identifier.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SkillRef
impl<'de> Deserialize<'de> for SkillRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SkillRef
impl RefUnwindSafe for SkillRef
impl Send for SkillRef
impl Sync for SkillRef
impl Unpin for SkillRef
impl UnsafeUnpin for SkillRef
impl UnwindSafe for SkillRef
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