Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed src/openhuman/flows/node_contracts.rs

Steven Enamakela5dd2a29d3ca
diff --git a/src/openhuman/flows/node_contracts.rs b/src/openhuman/flows/node_contracts.rs
index cbd383d5cd..4d7573a9af 100644
--- a/src/openhuman/flows/node_contracts.rs
+++ b/src/openhuman/flows/node_contracts.rs
@@ -340,7 +340,7 @@ mod prompt_index_tests {
.expect("the prompt carries a node-kind index");
let missing: Vec<&str> = NODE_KINDS
.iter()
- .map(|contract| contract.kind.as_str())
+ .copied()
.filter(|kind| !table.contains(&format!("`{kind}`")))
.collect();
assert!(
@@ -361,10 +361,7 @@ mod prompt_index_tests {
.nth(1)
.and_then(|rest| rest.split("\n### ").next())
.expect("the index table is delimited by the next subsection");
- let known: Vec<&str> = NODE_KINDS
- .iter()
- .map(|contract| contract.kind.as_str())
- .collect();
+ let known: Vec<&str> = NODE_KINDS.to_vec();
for line in table.lines().filter(|l| l.starts_with("| `")) {
let kind = line
.trim_start_matches("| `")