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

Method fallback_goal

core/src/planning/llm_planner.rs:184–189  ·  view source on GitHub ↗

Create a fallback goal using heuristic logic (no LLM required)

(prompt: &str)

Source from the content-addressed store, hash-verified

182
183 /// Create a fallback goal using heuristic logic (no LLM required)
184 pub fn fallback_goal(prompt: &str) -> AgentGoal {
185 AgentGoal::new(prompt).with_criteria(vec![
186 "Task is completed successfully".to_string(),
187 "All requirements are met".to_string(),
188 ])
189 }
190
191 /// Create a fallback achievement result using heuristic logic (no LLM required)
192 pub fn fallback_check_achievement(goal: &AgentGoal, current_state: &str) -> AchievementResult {

Callers

nothing calls this directly

Calls 1

with_criteriaMethod · 0.80

Tested by

no test coverage detected