Skip to main content

run_with_session

Function run_with_session 

Source
pub async fn run_with_session(
    session: &SessionDriver,
    config: &RunConfig,
    options: RunnerOptions,
) -> RunResult
Expand description

Execute a tooltest run using a pre-initialized session.

Runs apply default assertions that fail on MCP protocol errors, schema-invalid responses, and (when configured) tool result error responses, plus any user-supplied assertion rules.

Requires a multi-thread Tokio runtime; current-thread runtimes are rejected.