pub struct Extraction {
pub cleaned: String,
pub workflows: Vec<Value>,
pub skills: Vec<InlineSkill>,
pub config: Value,
}Expand description
What instruction-surface extraction produces.
Fields§
§cleaned: StringThe text with directive machinery removed: workflow/skill blocks
replaced by a one-line note (so prose and machinery cannot
double-speak), context/example bodies kept, delimited with tags a
model reads well.
workflows: Vec<Value>:::workflow bodies, parsed to documents ready for workflows:.
skills: Vec<InlineSkill>:::skill{name} bodies for the catalogue.
config: ValueThe config fragment the document’s :::config / :::mcp /
:::stream / :::tools blocks assemble — a v2 document subtree that
merges UNDER the explicit config (an explicit key always wins), so a
single instruction file can define the whole agent while a config
file, env, or flag can still override any of it.
Trait Implementations§
Source§impl Debug for Extraction
impl Debug for Extraction
Source§impl Default for Extraction
impl Default for Extraction
Source§fn default() -> Extraction
fn default() -> Extraction
Returns the “default value” for a type. Read more
Source§impl PartialEq for Extraction
impl PartialEq for Extraction
impl StructuralPartialEq for Extraction
Auto Trait Implementations§
impl Freeze for Extraction
impl RefUnwindSafe for Extraction
impl Send for Extraction
impl Sync for Extraction
impl Unpin for Extraction
impl UnsafeUnpin for Extraction
impl UnwindSafe for Extraction
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