pub struct ResolvedSelection {
pub package: Option<ResolvedPackage>,
pub selection: ResourceSelection,
pub skills: Vec<PathBuf>,
pub extensions: Vec<PathBuf>,
pub instructions: Vec<(PathBuf, String, String)>,
pub transition: Option<ResourceTransition>,
/* private fields */
}Fields§
§package: Option<ResolvedPackage>§selection: ResourceSelection§skills: Vec<PathBuf>§extensions: Vec<PathBuf>§instructions: Vec<(PathBuf, String, String)>§transition: Option<ResourceTransition>Implementations§
Source§impl ResolvedSelection
impl ResolvedSelection
pub fn load( args: &Args, cwd: &Path, trusted: bool, ) -> Result<Option<Self>, String>
pub fn load_for( home: &AgentHome, args: &Args, cwd: &Path, trusted: bool, ) -> Result<Option<Self>, String>
pub fn active_tools(&self, registered: &[String]) -> Result<Vec<String>, String>
pub fn provenance(&self) -> Value
Trait Implementations§
Source§impl Clone for ResolvedSelection
impl Clone for ResolvedSelection
Auto Trait Implementations§
impl Forget for ResolvedSelection
impl Freeze for ResolvedSelectionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<PathBuf>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(PathBuf, String, String)>: Freeze,
*const LeafNode<String, PromptCommand> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, PromptCommand)>>: Freeze,
PhantomData<Skill>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
impl Move for ResolvedSelection
impl RefUnwindSafe for ResolvedSelection
impl Send for ResolvedSelection
impl Sync for ResolvedSelection
impl Unpin for ResolvedSelection
impl UnsafeUnpin for ResolvedSelectionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(PathBuf, String, String)>: UnsafeUnpin,
*const LeafNode<String, PromptCommand> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, PromptCommand)>>: UnsafeUnpin,
PhantomData<Skill>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
impl UnwindSafe for ResolvedSelectionwhere
RawVecInner: UnwindSafe,
BTreeMap<String, PromptCommand>: UnwindSafe,
NonNull<u8>: UnwindSafe,
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