()
| 1436 | |
| 1437 | #[test] |
| 1438 | fn test_parse_agent_md() { |
| 1439 | let md = r#"--- |
| 1440 | name: md-agent |
| 1441 | description: Agent from markdown |
| 1442 | max_steps: 15 |
| 1443 | --- |
| 1444 | # System Prompt |
| 1445 | |
| 1446 | You are a helpful agent. |
| 1447 | Do your best work. |
| 1448 | "#; |
| 1449 | let agent = parse_agent_md(md).unwrap(); |
| 1450 | assert_eq!(agent.name, "md-agent"); |
| 1451 | assert_eq!(agent.description, "Agent from markdown"); |
| 1452 | assert_eq!(agent.max_steps, Some(15)); |
| 1453 | assert!(agent.prompt.is_some()); |
| 1454 | assert!(agent.prompt.unwrap().contains("helpful agent")); |
| 1455 | } |
| 1456 | |
| 1457 | #[test] |
| 1458 | fn test_parse_agent_md_with_prompt_in_frontmatter() { |
nothing calls this directly
no test coverage detected