pub struct GoldConfig {
pub enabled: bool,
pub auto_answer_enabled: bool,
pub auto_continue_enabled: bool,
pub model_name: Option<String>,
pub goal: Option<String>,
pub evaluation_prompt: Option<String>,
pub max_output_tokens: u32,
pub max_auto_continuations: u32,
pub min_auto_continue_confidence: GoldConfidence,
}Fields§
§enabled: boolMaster switch for Gold observe-only evaluation.
auto_answer_enabled: boolIndependent switch for Phase 2 low-risk auto-answer.
Kept separate from enabled so Phase 1 observe-only users do not
implicitly opt into automatic clarification responses.
auto_continue_enabled: boolIndependent switch for Phase 3 server-side auto-continue.
Kept separate from both enabled and auto_answer_enabled so users can
opt into terminal auto-resume explicitly without enabling other Gold
automation behaviors.
model_name: Option<String>Optional dedicated model for Gold evaluation. Falls back to fast model, then the main chat model when absent.
goal: Option<String>The user’s goal for this session.
Unlike evaluation_prompt (which only tunes the judge), the goal is
surfaced to the main executing agent as a persistent system-prompt
block so it actively works toward it. The Gold evaluator also measures
progress against this text.
evaluation_prompt: Option<String>Optional custom prompt suffix appended to the built-in Gold evaluator prompt. This tunes the judge only; it does not set the goal.
max_output_tokens: u32Output token limit for the Gold evaluator call.
max_auto_continuations: u32Maximum number of automatic Gold continuations allowed per session.
min_auto_continue_confidence: GoldConfidenceMinimum evaluator confidence required before Gold auto-continues or
auto-answers. Defaults to medium so the loop fires on reasonably
confident verdicts rather than only high.
Implementations§
Source§impl GoldConfig
impl GoldConfig
Sourcepub fn effective_goal(&self) -> Option<&str>
pub fn effective_goal(&self) -> Option<&str>
The session goal text, falling back to the legacy evaluation_prompt
for sessions created before the dedicated goal field existed.
Returns None when neither field holds non-empty text.
Trait Implementations§
Source§impl Clone for GoldConfig
impl Clone for GoldConfig
Source§fn clone(&self) -> GoldConfig
fn clone(&self) -> GoldConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GoldConfig
impl Debug for GoldConfig
Source§impl Default for GoldConfig
impl Default for GoldConfig
Source§impl<'de> Deserialize<'de> for GoldConfigwhere
GoldConfig: Default,
impl<'de> Deserialize<'de> for GoldConfigwhere
GoldConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for GoldConfig
Source§impl PartialEq for GoldConfig
impl PartialEq for GoldConfig
Source§fn eq(&self, other: &GoldConfig) -> bool
fn eq(&self, other: &GoldConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for GoldConfig
impl Serialize for GoldConfig
impl StructuralPartialEq for GoldConfig
Auto Trait Implementations§
impl Freeze for GoldConfig
impl RefUnwindSafe for GoldConfig
impl Send for GoldConfig
impl Sync for GoldConfig
impl Unpin for GoldConfig
impl UnsafeUnpin for GoldConfig
impl UnwindSafe for GoldConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.