(
self: Arc<Self>,
ctx: Context,
driver: Driver,
request: Request,
)
| 952 | } |
| 953 | |
| 954 | async fn create_run_task( |
| 955 | self: Arc<Self>, |
| 956 | ctx: Context, |
| 957 | driver: Driver, |
| 958 | request: Request, |
| 959 | ) -> Result<Response> { |
| 960 | let target = self |
| 961 | .target_set |
| 962 | .targets() |
| 963 | .first() |
| 964 | .ok_or(LibsyError::NoTargets)? |
| 965 | .clone(); |
| 966 | let decision: Arc<dyn Decision> = Arc::new(TestDecision { |
| 967 | model: target.semantic_name.clone(), |
| 968 | }); |
| 969 | driver.info(ctx.clone(), decision.clone()).await?; |
| 970 | driver |
| 971 | .call_llm_target(ctx, &target, request, decision) |
| 972 | .await |
| 973 | } |
| 974 | } |
| 975 | |
| 976 | /// Build a shared `TestAlgo` over the given target set. |
no test coverage detected