pub struct AgentHarnessConfig {
pub max_tool_calls_per_turn: usize,
pub max_tool_wall_clock_secs: u64,
pub max_tool_retries: u32,
pub auto_compaction_enabled: bool,
pub auto_compaction_threshold_tokens: Option<u64>,
pub max_budget_usd: Option<f64>,
pub continuation_policy: ContinuationPolicy,
pub event_log_path: Option<String>,
pub orchestration_mode: HarnessOrchestrationMode,
pub max_revision_rounds: usize,
}Fields§
§max_tool_calls_per_turn: usizeMaximum number of tool calls allowed per turn. Set to 0 to disable the cap.
max_tool_wall_clock_secs: u64Maximum wall clock time (seconds) for tool execution in a turn
max_tool_retries: u32Maximum retries for retryable tool errors
auto_compaction_enabled: boolEnable automatic context compaction when token pressure crosses threshold.
Disabled by default. When disabled, no automatic compaction is triggered.
auto_compaction_threshold_tokens: Option<u64>Optional absolute compact threshold (tokens) for Responses server-side compaction.
When unset, VT Code derives a threshold from the provider context window.
max_budget_usd: Option<f64>Optional maximum estimated API cost in USD before VT Code stops the session.
continuation_policy: ContinuationPolicyControls whether harness-managed continuation loops are enabled.
event_log_path: Option<String>Optional JSONL event log path for harness events.
Defaults to ~/.vtcode/sessions/ when unset.
orchestration_mode: HarnessOrchestrationModeSelect the exec/full-auto harness orchestration path.
max_revision_rounds: usizeMaximum generator revision rounds after evaluator rejection.
Trait Implementations§
Source§impl Clone for AgentHarnessConfig
impl Clone for AgentHarnessConfig
Source§fn clone(&self) -> AgentHarnessConfig
fn clone(&self) -> AgentHarnessConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentHarnessConfig
impl Debug for AgentHarnessConfig
Source§impl Default for AgentHarnessConfig
impl Default for AgentHarnessConfig
Source§impl<'de> Deserialize<'de> for AgentHarnessConfig
impl<'de> Deserialize<'de> for AgentHarnessConfig
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>,
Source§impl JsonSchema for AgentHarnessConfig
impl JsonSchema for AgentHarnessConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AgentHarnessConfig
impl RefUnwindSafe for AgentHarnessConfig
impl Send for AgentHarnessConfig
impl Sync for AgentHarnessConfig
impl Unpin for AgentHarnessConfig
impl UnsafeUnpin for AgentHarnessConfig
impl UnwindSafe for AgentHarnessConfig
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more