pub struct Harness {
pub system_prompt: String,
pub skills: Vec<Skill>,
pub rules: Vec<Rule>,
}Expand description
The evolvable harness of an agent: system prompt plus its skills and rules. This is the unit Reef-style self-improvement evolves, versions in Git, and hot-serves back to the running agent.
Fields§
§system_prompt: String§skills: Vec<Skill>§rules: Vec<Rule>Implementations§
Source§impl Harness
impl Harness
Sourcepub fn baseline(agent_name: &str) -> Self
pub fn baseline(agent_name: &str) -> Self
Baseline harness equivalent to the legacy hardcoded system prompt.
Sourcepub fn is_baseline(&self, agent_name: &str) -> bool
pub fn is_baseline(&self, agent_name: &str) -> bool
True when this harness is byte-for-byte the generated baseline.
Sourcepub fn system_text(&self) -> String
pub fn system_text(&self) -> String
Compose the system prompt sent to the model from the harness parts.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Harness
impl<'de> Deserialize<'de> for Harness
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
impl StructuralPartialEq for Harness
Auto Trait Implementations§
impl Freeze for Harness
impl RefUnwindSafe for Harness
impl Send for Harness
impl Sync for Harness
impl Unpin for Harness
impl UnsafeUnpin for Harness
impl UnwindSafe for Harness
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