pub struct AdvisorGateConfig {
pub reviewer_system_prompt: String,
pub redo_feedback_prefix: String,
pub gate_trigger: GateTrigger,
pub max_reviews: u32,
pub gate_stall_turns: u32,
pub gate_min_tool_results: u32,
pub advisor_max_tokens: u64,
pub advisor_temperature: Option<f64>,
pub transcript_max_chars: usize,
pub fail_open: bool,
}Expand description
Gate knobs; defaults mirror the benchmarked Python advisor configuration.
Fields§
§reviewer_system_prompt: StringSystem prompt for the advisor’s review call; states the APPROVE/REDO contract.
redo_feedback_prefix: StringPrepended to the advisor’s REDO plan when fed back to the executor.
gate_trigger: GateTriggerWhat fires the review.
max_reviews: u32Reviews allowed per budget scope. 1 keeps the original once-per-task gate; higher values re-review later terminal turns, making the gate a sequential best-of-(N+1) with the advisor as judge.
gate_stall_turns: u32When > 0, additionally review (once per conversation, consuming budget) the first request already carrying at least this many assistant turns — a mid-task checkpoint for executors that grind without declaring completion. 0 disables.
gate_min_tool_results: u32For the no_tool_call trigger: only review once the conversation
carries at least this many tool results, skipping early commentary
turns on chatty harnesses. 0 reviews from the first terminal turn.
advisor_max_tokens: u64Cap on the advisor’s output per consult.
advisor_temperature: Option<f64>Sampling temperature for the consult; None omits the field on the wire.
transcript_max_chars: usizeCap on the serialized transcript handed to the advisor; the middle of an over-cap conversation is dropped (task head + recent tail survive).
fail_open: boolWhen true (default), an advisor failure degrades to APPROVE; when false, it propagates as the turn’s error.
Trait Implementations§
Source§impl Clone for AdvisorGateConfig
impl Clone for AdvisorGateConfig
Source§fn clone(&self) -> AdvisorGateConfig
fn clone(&self) -> AdvisorGateConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more