Create a fallback goal using heuristic logic (no LLM required)
(prompt: &str)
| 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 { |
nothing calls this directly
no test coverage detected