Skip to main content

CopilotParser

Struct CopilotParser 

Source
pub struct CopilotParser;

Trait Implementations§

Source§

impl AgentsParser for CopilotParser

Source§

impl AgentsWriter for CopilotParser

Source§

fn name(&self) -> AgentName

Source§

fn write_agent(&self, root: &Path, agent: &Agent) -> Result<PathBuf>

Write a single agent to <root>/<agent-dir>/agents/<agent.name>.agent.md. Returns the path of the written file.
Source§

impl Detector for CopilotParser

Source§

fn name(&self) -> AgentName

Source§

fn detect(&self, root: &Path) -> Option<DetectedAgent>

Source§

impl FrontMatterMapper for CopilotParser

Source§

impl FrontMatterWriter for CopilotParser

Source§

fn format_permission(&self, perm: &Permission) -> Option<String>

Convert a canonical Permission to the agent-native token. Returns None if the permission has no representation in this agent (e.g. NotebookEdit for Copilot).
Source§

fn format_frontmatter(&self, fm: &FrontMatter) -> String

Serialise a FrontMatter into a YAML string (without the --- fences).
Source§

impl SkillsParser for CopilotParser

Source§

impl SkillsWriter for CopilotParser

Source§

fn name(&self) -> AgentName

Source§

fn write_skill(&self, root: &Path, skill: &Skill) -> Result<PathBuf>

Write a single skill to <root>/<agent-dir>/skills/<skill.name>/SKILL.md. Returns the path of the written file.
Source§

impl AgentParser for CopilotParser

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.