(text: &str)
| 343 | } |
| 344 | |
| 345 | fn parse_goal_response(text: &str) -> Result<AgentGoal> { |
| 346 | let parsed: GoalResponse = Self::parse_json_lenient(text) |
| 347 | .context("Failed to parse goal JSON from LLM response")?; |
| 348 | |
| 349 | Ok(AgentGoal::new(parsed.description).with_criteria(parsed.success_criteria)) |
| 350 | } |
| 351 | |
| 352 | fn parse_achievement_response(text: &str) -> Result<AchievementResult> { |
| 353 | let parsed: AchievementResponse = Self::parse_json_lenient(text) |
nothing calls this directly
no test coverage detected