Skip to main content

optional_argument

Function optional_argument 

Source
pub async fn optional_argument<W, T, F>(
    model: Model<W, T>,
    configure: F,
) -> Result<ScenarioReport, ScenarioError>
where W: Wire<Op = Completion>, T: Transport<W>, F: FnOnce(AgentBuilder) -> AgentBuilder,
Available on crate feature test-utils only.
Expand description

Runs the portable optional-argument tool scenario.

configure is deliberately outside the scenario so a provider suite can attach transport-only settings without putting them into the shared model contract.