pub struct Manifest {Show 14 fields
pub project: BTreeMap<String, Value>,
pub evals: BTreeMap<String, Value>,
pub candidates: Candidates,
pub tools: BTreeMap<String, Value>,
pub skills: BTreeMap<String, Value>,
pub instructions: BTreeMap<String, Value>,
pub context: BTreeMap<String, Value>,
pub objective: Objective,
pub budget: Budget,
pub enforce: BTreeMap<String, Value>,
pub backend: BTreeMap<String, Value>,
pub target: BTreeMap<String, Value>,
pub harnesses: BTreeMap<String, Value>,
pub source_path: Option<PathBuf>,
}Fields§
§project: BTreeMap<String, Value>§evals: BTreeMap<String, Value>[evals]: the eval packs to measure against. [tasks] is the old name.
candidates: Candidates§tools: BTreeMap<String, Value>§skills: BTreeMap<String, Value>§instructions: BTreeMap<String, Value>§context: BTreeMap<String, Value>§objective: Objective§budget: Budget§enforce: BTreeMap<String, Value>§backend: BTreeMap<String, Value>§target: BTreeMap<String, Value>The harness this lock is for ([target] harness = "claude-code").
harnesses: BTreeMap<String, Value>Project-defined harnesses ([harnesses.<id>]): framework agents and custom scripts.
source_path: Option<PathBuf>Implementations§
Source§impl Manifest
impl Manifest
pub fn load(path: &Path) -> Result<Manifest, Error>
Sourcepub fn root(&self) -> PathBuf
pub fn root(&self) -> PathBuf
The project directory: where the manifest lives (else the working directory). Relative paths in the manifest (eval packs, instructions) resolve against it.
pub fn name(&self) -> String
pub fn eval_packs(&self) -> Vec<String>
pub fn task_packs(&self) -> Vec<String>
👎Deprecated:
renamed to eval_packs
pub fn seeds(&self) -> u64
pub fn backend_target(&self) -> String
Sourcepub fn target_harness(&self) -> Option<String>
pub fn target_harness(&self) -> Option<String>
[target] harness, the harness the lock is meant to run in.
pub fn search_frac(&self) -> f64
Sourcepub fn manifest_hash(&self) -> String
pub fn manifest_hash(&self) -> String
Hash of the manifest (of the source file when loaded, else of its TOML).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Manifest
impl<'de> Deserialize<'de> for Manifest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Manifest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Manifest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Manifest
impl Serialize for Manifest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnsafeUnpin for Manifest
impl UnwindSafe for Manifest
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