pub struct AdvisorConfig {
pub enabled: bool,
pub model: String,
pub max_uses: Option<u32>,
pub max_tokens: Option<u32>,
pub caching: Option<AdvisorCachingConfig>,
}Expand description
Configuration for the Claude Advisor server-side tool.
The advisor tool is only valid for Anthropic providers and models. When
enabled is true, vtcode injects an advisor_20260301 tool into the
Anthropic request and sends the advisor-tool-2026-03-01 beta header. The
executor model must form a valid pair with the configured advisor model
(see vtcode_config::constants::models::anthropic::advisor_compatibility).
Fields§
§enabled: boolMaster toggle for the Anthropic server-side advisor tool.
model: StringAdvisor model id (must be an Anthropic/Claude model at least as capable as the executor). Empty or omitted falls back to a sensible default advisor for the executor model.
max_uses: Option<u32>Maximum number of advisor invocations per request. None means
unlimited (the API default). Once the executor reaches this cap, further
advisor calls return an advisor_tool_result_error.
max_tokens: Option<u32>Caps the advisor’s total output (thinking plus text) per call. Minimum
1024. None lets the advisor model choose its own output cap.
caching: Option<AdvisorCachingConfig>Enables prompt caching for the advisor’s own transcript across calls within a conversation. Only worthwhile for long agent loops (three or more expected advisor calls).
Trait Implementations§
Source§impl Clone for AdvisorConfig
impl Clone for AdvisorConfig
Source§impl Debug for AdvisorConfig
impl Debug for AdvisorConfig
Source§impl Default for AdvisorConfig
impl Default for AdvisorConfig
Source§impl<'de> Deserialize<'de> for AdvisorConfig
impl<'de> Deserialize<'de> for AdvisorConfig
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 AdvisorConfig
impl JsonSchema for AdvisorConfig
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 more