Skip to main content

process

Function process 

Source
pub fn process(
    cfg: &GatewayConfig,
    server: &GatewayServer,
    tool: &str,
    text: String,
    project_root: &str,
) -> String
Expand description

Apply the configured output post-processing to one scrubbed downstream result, returning the (possibly transformed) text for the model.

text is the already-redacted downstream output, server owns the call, tool is the downstream tool name, and project_root scopes L3 indexing (empty = no project scope, so indexing is skipped).