feat: passthrough nodes

This commit is contained in:
Stefan
2024-10-18 20:09:58 +02:00
parent 8a7e72bf53
commit 302e82afbd
20 changed files with 325 additions and 189 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ impl FunctionHandler {
}
}
pub async fn handle(&self, request: &NodeRequest<'_>) -> NodeResult {
pub async fn handle(&self, request: NodeRequest) -> NodeResult {
let content = match &request.node.kind {
DecisionNodeKind::FunctionNode { content } => match content {
FunctionNodeContent::Version2(content) => Ok(content),
@@ -58,7 +58,7 @@ impl<Loader: DecisionLoader + 'static, Adapter: CustomNodeAdapter + 'static> Run
let load_result = loader.load(key.as_str()).await;
let decision_content = load_result.or_throw(&ctx)?;
let mut sub_tree = DecisionGraph::try_new(DecisionGraphConfig {
content: &decision_content,
content: decision_content,
max_depth,
loader,
adapter,