pub struct ContextKit {
pub format_version: u32,
pub kit: KitMetadata,
pub read: ReadPlan,
pub priority: PriorityPlan,
pub shell: ShellPlan,
pub quality: QualityPlan,
pub system_prompt: SystemPrompt,
}Expand description
A fully parsed Context Kit.
Fields§
§format_version: u32§kit: KitMetadata§read: ReadPlan§priority: PriorityPlan§shell: ShellPlan§quality: QualityPlan§system_prompt: SystemPromptImplementations§
Source§impl ContextKit
impl ContextKit
Sourcepub fn modes_for_path(&self, path: impl AsRef<Path>) -> &[String]
pub fn modes_for_path(&self, path: impl AsRef<Path>) -> &[String]
Returns the ordered read stages for path; the first matching rule wins.
Sourcepub fn preferred_mode_for_path(&self, path: impl AsRef<Path>) -> Option<&str>
pub fn preferred_mode_for_path(&self, path: impl AsRef<Path>) -> Option<&str>
Returns the first automatic mode for path.
Multi-stage plans are intentionally retained by Self::modes_for_path
for agents that request the subsequent, more detailed stage explicitly.
Trait Implementations§
Source§impl Clone for ContextKit
impl Clone for ContextKit
Source§impl Debug for ContextKit
impl Debug for ContextKit
Source§impl<'de> Deserialize<'de> for ContextKit
impl<'de> Deserialize<'de> for ContextKit
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 Forget for ContextKit
impl Freeze for ContextKitwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ReadRule>: Freeze,
PhantomData<ShellCommand>: Freeze,
impl Move for ContextKit
impl RefUnwindSafe for ContextKit
impl Send for ContextKitwhere
RawVecInner: Send,
impl Sync for ContextKitwhere
RawVecInner: Sync,
impl Unpin for ContextKit
impl UnsafeUnpin for ContextKitwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ReadRule>: UnsafeUnpin,
PhantomData<ShellCommand>: UnsafeUnpin,
impl UnwindSafe for ContextKitwhere
RawVecInner: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more