Skip to content

Commit

Permalink
refactor: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed May 19, 2024
1 parent 7e8a739 commit daac0e8
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,21 +184,12 @@ public AsyncGenerator<NodeOutput<State>> execute( Map<String, Object> inputs )
"generic", "agent_generic_plantuml" )
);

//workflow.addNode( "agent_review", this::reviewResult );
workflow.addNode( "evaluate_result", this::evaluateResult);
workflow.addEdge("agent_sequence_plantuml", "evaluate_result");
workflow.addEdge("agent_generic_plantuml", "evaluate_result");
workflow.addEdge( "agent_review", "evaluate_result" );
/*
workflow.addConditionalEdges(
"evaluate_result",
edge_async(this::routeEvaluationResult),
mapOf( "OK", END,
"ERROR", "agent_review",
"UNKNOWN", END )
);
*/
workflow.setEntryPoint("agent_describer");
workflow.setFinishPoint("evaluate_result");


var app = workflow.compile();

Expand Down

0 comments on commit daac0e8

Please sign in to comment.