MCPcopy Create free account
hub / github.com/NVIDIA-NeMo/Switchyard / run

Method run

crates/libsy/src/core/algorithm.rs:710–716  ·  view source on GitHub ↗

Process a request to completion, returning the final [`Response`] and the trace of [`Decision`]s the algorithm made along the way.

(
        self: Arc<Self>,
        ctx: Context,
        request: Request,
    )

Source from the content-addressed store, hash-verified

708 /// [`Decision`]s the algorithm made along the way.
709 ///
710 async fn run(
711 self: Arc<Self>,
712 ctx: Context,
713 request: Request,
714 ) -> Result<(Vec<Arc<dyn Decision>>, Response)> {
715 self.run_observed(ctx, request, None).await
716 }
717
718 /// Process a request to completion while reporting each model call to `observer`.
719 async fn run_observed(

Implementers 13

algorithm.rscrates/libsy/src/core/algorithm.rs
dropping_the_stream_cancels_the_algorithm_taskcrates/libsy/src/core/algorithm.rs
create_run_task_panic_surfaces_as_a_stream_errorcrates/libsy/src/core/algorithm.rs
run_returns_an_error_when_the_algorithm_task_panicscrates/libsy/src/core/algorithm.rs
cancelling_run_cancels_the_algorithm_taskcrates/libsy/src/core/algorithm.rs
fall_through.rscrates/libsy/src/algorithms/fall_throu
llm_class.rscrates/libsy/src/algorithms/llm_class.
passthrough.rscrates/libsy/src/algorithms/passthroug
stage.rscrates/libsy/src/algorithms/stage.rs
noop.rscrates/libsy/src/algorithms/noop.rs
rand.rscrates/libsy/src/algorithms/rand.rs

Calls 1

run_observedMethod · 0.80