runtime: switch executor to adapter registry

This commit is contained in:
github-ops
2026-05-14 18:28:19 +00:00
parent d9065a737d
commit 8ddcb213a3
12 changed files with 226 additions and 334 deletions
@@ -51,6 +51,34 @@ impl RuntimeRequestContext {
}
}
impl From<ResponseCacheScope> for crank_core::ResponseCacheScope {
fn from(value: ResponseCacheScope) -> Self {
Self {
workspace_key: value.workspace_key,
agent_key: value.agent_key,
}
}
}
impl From<&ResponseCacheScope> for crank_core::ResponseCacheScope {
fn from(value: &ResponseCacheScope) -> Self {
Self {
workspace_key: value.workspace_key.clone(),
agent_key: value.agent_key.clone(),
}
}
}
impl From<&RuntimeRequestContext> for crank_core::RuntimeRequestContext {
fn from(value: &RuntimeRequestContext) -> Self {
Self {
request_id: value.request_id.clone(),
correlation_id: value.correlation_id.clone(),
response_cache_scope: value.response_cache_scope.as_ref().map(Into::into),
}
}
}
#[cfg(test)]
mod tests {
use super::RuntimeRequestContext;