()
| 365 | |
| 366 | #[tokio::test] |
| 367 | async fn agent_runs_a_single_step() { |
| 368 | let wf = Workflow::builder(Arc::new(EchoExecutor::new())).build(); |
| 369 | let out = wf.agent(spec("a", "explore", "hello")).await; |
| 370 | assert_eq!(out.task_id, "a"); |
| 371 | assert_eq!(out.output, "hello"); |
| 372 | assert!(out.success); |
| 373 | } |
| 374 | |
| 375 | #[tokio::test] |
| 376 | async fn parallel_preserves_order_and_isolates_failure() { |