MCPcopy Create free account
hub / github.com/AI45Lab/Code / parse_goal_response

Method parse_goal_response

core/src/planning/llm_planner.rs:345–350  ·  view source on GitHub ↗
(text: &str)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

contextMethod · 0.80
with_criteriaMethod · 0.80

Tested by

no test coverage detected