MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_parse_multi_step_plan

Function test_parse_multi_step_plan

atomic-repository/src/query_plan.rs:571–583  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

569
570 #[test]
571 fn test_parse_multi_step_plan() {
572 let json = r#"{
573 "schema_version": 1,
574 "steps": [
575 {"type": "kg_search", "query": "deploy blocked", "bind": "blockers"},
576 {"type": "filter", "input": "blockers", "field": "type", "equals": "https://atomic.dev/ns/workflow#WorkIntent", "bind": "blocking_intents"},
577 {"type": "kg_neighbors", "node_id": "$blocking_intents", "depth": 1, "bind": "context"},
578 {"type": "read_content", "sources": ["$blocking_intents"], "max_chars": 1000}
579 ]
580 }"#;
581 let plan = parse_plan(json).unwrap();
582 assert_eq!(plan.steps.len(), 4);
583 }
584
585 #[test]
586 fn test_parse_vector_search() {

Callers

nothing calls this directly

Calls 2

parse_planFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected