pub struct TooltestInput {Show 17 fields
pub target: TooltestTarget,
pub cases: u32,
pub min_sequence_len: usize,
pub max_sequence_len: usize,
pub lenient_sourcing: bool,
pub mine_text: bool,
pub dump_corpus: bool,
pub log_corpus_deltas: bool,
pub no_lenient_sourcing: bool,
pub state_machine_config: Option<StateMachineConfig>,
pub tool_allowlist: Vec<String>,
pub tool_blocklist: Vec<String>,
pub in_band_error_forbidden: bool,
pub pre_run_hook: Option<TooltestPreRunHook>,
pub full_trace: bool,
pub show_uncallable: bool,
pub uncallable_limit: usize,
}Expand description
Shared tooltest input type for CLI and MCP modes.
Fields§
§target: TooltestTargetTarget MCP transport configuration.
cases: u32Number of proptest cases to execute.
min_sequence_len: usizeMinimum sequence length per generated run.
max_sequence_len: usizeMaximum sequence length per generated run.
lenient_sourcing: boolAllow schema-based generation when corpus lacks required values.
mine_text: boolMine whitespace-delimited text tokens into the state corpus.
dump_corpus: boolDump the final state-machine corpus after the run completes.
log_corpus_deltas: boolLog newly mined corpus values after each tool response.
no_lenient_sourcing: boolDisable schema-based generation when corpus lacks required values.
state_machine_config: Option<StateMachineConfig>State-machine config overrides.
tool_allowlist: Vec<String>Allowlist tool names eligible for invocation generation.
tool_blocklist: Vec<String>Blocklist tool names excluded from invocation generation.
in_band_error_forbidden: boolFail the run when a tool result reports isError = true.
pre_run_hook: Option<TooltestPreRunHook>Pre-run hook configuration.
full_trace: boolInclude tool responses in the trace output.
show_uncallable: boolInclude uncallable tool traces when coverage validation fails.
uncallable_limit: usizeNumber of calls per tool to include in uncallable traces.
Implementations§
Source§impl TooltestInput
impl TooltestInput
Sourcepub fn to_target_config(&self) -> Result<TooltestTargetConfig, String>
pub fn to_target_config(&self) -> Result<TooltestTargetConfig, String>
Builds the target configuration for the run.
Sourcepub fn to_run_config(&self) -> Result<RunConfig, String>
pub fn to_run_config(&self) -> Result<RunConfig, String>
Builds the run configuration for the run.
Sourcepub fn to_runner_options(&self) -> Result<RunnerOptions, String>
pub fn to_runner_options(&self) -> Result<RunnerOptions, String>
Builds the runner options for the run.
Sourcepub fn to_configs(&self) -> Result<TooltestRunConfig, String>
pub fn to_configs(&self) -> Result<TooltestRunConfig, String>
Builds the target configuration, run configuration, and runner options together.
Trait Implementations§
Source§impl Clone for TooltestInput
impl Clone for TooltestInput
Source§fn clone(&self) -> TooltestInput
fn clone(&self) -> TooltestInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TooltestInput
impl Debug for TooltestInput
Source§impl<'de> Deserialize<'de> for TooltestInput
impl<'de> Deserialize<'de> for TooltestInput
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 TooltestInput
impl JsonSchema for TooltestInput
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