mirror of
https://github.com/gorules/zen.git
synced 2026-10-07 08:02:21 +00:00
feat: passthrough nodes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user