pub struct SessionResources {
pub skill_paths: Vec<String>,
pub prompt_paths: Vec<String>,
pub metadata: Vec<ResourceSource>,
pub system_prompt: Option<String>,
pub append_system_prompt: Vec<String>,
pub home: String,
}Fields§
§skill_paths: Vec<String>resolve()’s enabled skills in precedence order. They are files already (mapSkillPath has nothing to map:
the resolver lists a skill directory’s SKILL.md).
prompt_paths: Vec<String>resolve()’s enabled prompt templates in precedence order.
metadata: Vec<ResourceSource>metadataByPath in insertion order: every resolved resource (enabled or not); the first entry of a path
kept.
system_prompt: Option<String>The discovered SYSTEM.md’s text (getSystemPrompt), if any.
append_system_prompt: Vec<String>The discovered APPEND_SYSTEM.md’s text (getAppendSystemPrompt).
home: StringThe session’s home directory, which a leading ~ in a skill or prompt path names.
Trait Implementations§
Source§impl Clone for SessionResources
impl Clone for SessionResources
Source§impl Debug for SessionResources
impl Debug for SessionResources
Source§impl Default for SessionResources
impl Default for SessionResources
impl Eq for SessionResources
Source§impl PartialEq for SessionResources
impl PartialEq for SessionResources
impl StructuralPartialEq for SessionResources
Auto Trait Implementations§
impl Forget for SessionResources
impl Freeze for SessionResources
impl Move for SessionResources
impl RefUnwindSafe for SessionResources
impl Send for SessionResources
impl Sync for SessionResources
impl Unpin for SessionResources
impl UnsafeUnpin for SessionResources
impl UnwindSafe for SessionResources
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.