Skip to main content

execute

Function execute 

Source
pub async fn execute(config: &Config, claude: &Claude) -> Result<QueryResult>
Expand description

Build the QueryCommand for config – through the one proven apply_session mapper – and run it non-streaming, returning the typed result. The single build+execute path shared by run and the CLI’s non-streaming branch (run_ask), which both hand this the same Config, so there is no parallel copy to drift.

Schema surfacing is the caller’s job – the CLI shares it with its --trace path, and run does it after this returns.