pub struct ScenarioConfig {Show 18 fields
pub base_url: Option<String>,
pub llm_url: Option<String>,
pub llm_model: Option<String>,
pub llm_api_key: Option<String>,
pub llm_headers: HashMap<String, String>,
pub browser_headless: Option<bool>,
pub timeout_secs: Option<u64>,
pub viewport_width: Option<u32>,
pub viewport_height: Option<u32>,
pub start_url: Option<String>,
pub auto_navigate: bool,
pub temperature: f64,
pub thinking: Option<bool>,
pub model_params: HashMap<String, Value>,
pub endpoints: HashMap<String, EndpointConfig>,
pub budgets: BudgetsConfig,
pub mcp_server: Option<McpServerConfig>,
pub a2a_server: Option<A2aServerConfig>,
}Expand description
Global scenario configuration with per-test overridable fields.
Fields§
§base_url: Option<String>Base URL for relative navigation.
llm_url: Option<String>LLM server base URL (deprecated; prefer [config.endpoints]).
llm_model: Option<String>LLM model name (deprecated; prefer [config.endpoints]).
llm_api_key: Option<String>LLM API key (Bearer token).
llm_headers: HashMap<String, String>Custom HTTP headers as JSON key-value pairs.
browser_headless: Option<bool>Run browser in headless mode.
timeout_secs: Option<u64>HTTP / browser action timeout in seconds.
viewport_width: Option<u32>Browser viewport width.
viewport_height: Option<u32>Browser viewport height.
start_url: Option<String>Default URL every test auto-navigates to before running its steps.
Whether to auto-navigate to start_url before test steps.
Disable when a test starts with click-based navigation.
temperature: f64LLM temperature (0.0–1.0). Lower = more deterministic.
thinking: Option<bool>Enable thinking/reasoning tokens. None means the provider default
is used (no thinking key is sent). Set to true/false to
explicitly enable or disable.
model_params: HashMap<String, Value>Provider-specific model parameters merged into the chat completion
request body (e.g. effort = "high" for Anthropic).
endpoints: HashMap<String, EndpointConfig>Named endpoints (LLM, MCP, A2A agents) with pricing.
budgets: BudgetsConfigGlobal and per-test budgets for cost/token/call limits.
mcp_server: Option<McpServerConfig>MCP server exposure configuration.
a2a_server: Option<A2aServerConfig>A2A agent server exposure configuration.
Trait Implementations§
Source§impl Clone for ScenarioConfig
impl Clone for ScenarioConfig
Source§fn clone(&self) -> ScenarioConfig
fn clone(&self) -> ScenarioConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more