pub struct AgentSkill {Show 18 fields
pub name: String,
pub catalog_name: String,
pub schema_name: String,
pub full_name: String,
pub storage_location: String,
pub agent_skill_id: String,
pub agent_skill_type: i32,
pub description: Option<String>,
pub license: Option<String>,
pub allowed_tools: Vec<String>,
pub metadata: HashMap<String, String>,
pub owner: Option<String>,
pub comment: Option<String>,
pub created_at: Option<i64>,
pub created_by: Option<String>,
pub updated_at: Option<i64>,
pub updated_by: Option<String>,
pub metastore_id: Option<String>,
}Expand description
An agent skill registered in Unity Catalog.
Fields§
§name: StringName of the agent skill, relative to parent schema.
Per the Agent Skills spec a skill name is lowercase letters, numbers, and hyphens, but Unity Catalog object names disallow hyphens, so UC stores the catalog object name with underscores; the spec-shaped name lives in the skill’s own SKILL.md.
catalog_name: StringName of parent catalog.
schema_name: StringName of parent schema.
full_name: StringThe three-level (fully qualified) name of the agent skill.
storage_location: StringThe storage location of the skill’s directory (the root that holds
SKILL.md).
agent_skill_id: StringThe unique identifier of the agent skill.
agent_skill_type: i32How the storage location is provisioned (external or managed).
description: Option<String>A human-readable description of what the skill does and when to use it.
Mirrors the Agent Skills spec description frontmatter field.
license: Option<String>SPDX license identifier or free-form license text for the skill.
allowed_tools: Vec<String>The tools the skill is permitted to use, as declared in its SKILL.md.
metadata: HashMap<String, String>Arbitrary additional metadata declared by the skill.
owner: Option<String>Username of current owner of the agent skill.
comment: Option<String>User-provided free-form text description.
created_at: Option<i64>Time at which this agent skill was created, in epoch milliseconds.
created_by: Option<String>Username of agent skill creator.
updated_at: Option<i64>Time at which this agent skill was last updated, in epoch milliseconds.
updated_by: Option<String>Username of user who last modified the agent skill.
metastore_id: Option<String>The unique identifier of the metastore.
Implementations§
Source§impl AgentSkill
impl AgentSkill
Sourcepub fn qualified_name(&self) -> String
pub fn qualified_name(&self) -> String
Returns the fully-qualified dot-separated name computed from component fields.
Source§impl AgentSkill
impl AgentSkill
Sourcepub fn agent_skill_type(&self) -> AgentSkillType
pub fn agent_skill_type(&self) -> AgentSkillType
Returns the enum value of agent_skill_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_agent_skill_type(&mut self, value: AgentSkillType)
pub fn set_agent_skill_type(&mut self, value: AgentSkillType)
Sets agent_skill_type to the provided enum value.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description, or the default value if description is unset.
Sourcepub fn license(&self) -> &str
pub fn license(&self) -> &str
Returns the value of license, or the default value if license is unset.
Sourcepub fn owner(&self) -> &str
pub fn owner(&self) -> &str
Returns the value of owner, or the default value if owner is unset.
Sourcepub fn comment(&self) -> &str
pub fn comment(&self) -> &str
Returns the value of comment, or the default value if comment is unset.
Sourcepub fn created_at(&self) -> i64
pub fn created_at(&self) -> i64
Returns the value of created_at, or the default value if created_at is unset.
Sourcepub fn created_by(&self) -> &str
pub fn created_by(&self) -> &str
Returns the value of created_by, or the default value if created_by is unset.
Sourcepub fn updated_at(&self) -> i64
pub fn updated_at(&self) -> i64
Returns the value of updated_at, or the default value if updated_at is unset.
Sourcepub fn updated_by(&self) -> &str
pub fn updated_by(&self) -> &str
Returns the value of updated_by, or the default value if updated_by is unset.
Sourcepub fn metastore_id(&self) -> &str
pub fn metastore_id(&self) -> &str
Returns the value of metastore_id, or the default value if metastore_id is unset.
Trait Implementations§
Source§impl Clone for AgentSkill
impl Clone for AgentSkill
Source§fn clone(&self) -> AgentSkill
fn clone(&self) -> AgentSkill
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentSkill
impl Debug for AgentSkill
Source§impl Default for AgentSkill
impl Default for AgentSkill
§impl<'de> Deserialize<'de> for AgentSkill
impl<'de> Deserialize<'de> for AgentSkill
§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>,
Source§impl From<AgentSkill> for Resource
impl From<AgentSkill> for Resource
Source§fn from(v: AgentSkill) -> Self
fn from(v: AgentSkill) -> Self
Source§impl Message for AgentSkill
impl Message for AgentSkill
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.