@@ -66,14 +66,8 @@ class GraphState:
6666
6767@dataclass
6868class GraphResult (MultiAgentResult ):
69- """Result from graph execution - extends MultiAgentResult with graph-specific details.
69+ """Result from graph execution - extends MultiAgentResult with graph-specific details."""
7070
71- The status field represents the outcome of the graph execution:
72- - COMPLETED: The graph execution was successfully accomplished
73- - FAILED: The graph execution failed or produced an error
74- """
75-
76- status : Status = Status .PENDING
7771 total_nodes : int = 0
7872 completed_nodes : int = 0
7973 failed_nodes : int = 0
@@ -468,12 +462,12 @@ def _build_node_input(self, node: GraphNode) -> str:
468462 def _build_result (self ) -> GraphResult :
469463 """Build graph result from current state."""
470464 return GraphResult (
465+ status = self .state .status ,
471466 results = self .state .results ,
472467 accumulated_usage = self .state .accumulated_usage ,
473468 accumulated_metrics = self .state .accumulated_metrics ,
474469 execution_count = self .state .execution_count ,
475470 execution_time = self .state .execution_time ,
476- status = self .state .status ,
477471 total_nodes = self .state .total_nodes ,
478472 completed_nodes = len (self .state .completed_nodes ),
479473 failed_nodes = len (self .state .failed_nodes ),
0 commit comments