()
| 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() { |
nothing calls this directly
no test coverage detected