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

Method call

crates/libsy/src/core/algorithm.rs:909–923  ·  view source on GitHub ↗
(
            &self,
            _ctx: Context,
            _request: Request,
            decision: Arc<dyn Decision>,
        )

Source from the content-addressed store, hash-verified

907 #[async_trait]
908 impl RoutedLlmClient for EchoClient {
909 async fn call(
910 &self,
911 _ctx: Context,
912 _request: Request,
913 decision: Arc<dyn Decision>,
914 ) -> std::result::Result<Response, LlmClientError> {
915 // Echo back the model the algorithm routed to (the decision's selection).
916 Ok(Response {
917 llm_response: LlmResponse::Agg(text_response(
918 None,
919 decision.selected_model().to_string(),
920 )),
921 metadata: None,
922 })
923 }
924 }
925
926 /// Trivial decision + algo used only to exercise the orchestrator: calls the

Callers 2

serveMethod · 0.45

Calls 3

text_responseFunction · 0.85
selected_modelMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected