(
&self,
_ctx: Context,
_request: Request,
decision: Arc<dyn Decision>,
)
| 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 |
no test coverage detected