Skip to main content

Module runtime_goal

Module runtime_goal 

Source
Expand description

Goal-loop primitives: GoalStatus, GoalState, GoalVerdict, and the GoalEvaluator judge model.

These types live here so crate::runtime only carries the AgentRuntime impl + its loop method. The actual run_goal_loop body stays in runtime.rs because it mutates private runtime state.

All types are re-exported via crate::runtime::Goal* for backwards compatibility, so external callers (e.g. src/http.rs:496, src/tui/app.rs) continue to work unchanged.

Structs§

GoalEvaluator
Calls the LLM provider to decide whether a goal condition is met.
GoalState
Per-session goal state set by /goal <condition>.
GoalVerdict
Verdict returned by GoalEvaluator::evaluate.

Enums§

GoalStatus
Status of an active goal loop.