mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-22 15:25:09 +00:00
chore: drop redundant seam comments from execution-boundary wiring
Removes two inline comments narrating the OUTPUT/EXECUTION_END dispatch ordering in `crew.py` and the flow runtime, plus a stray sentence about enterprise adapters in the conformance-suite docstring. Comment-only cleanup, no behavior change.
This commit is contained in:
@@ -1918,10 +1918,6 @@ class Crew(FlowTrackable, BaseModel):
|
||||
token_usage=self.token_usage,
|
||||
)
|
||||
|
||||
# OUTPUT/EXECUTION_END run before the kickoff-completed event (mirroring
|
||||
# the flow OUTPUT-before-FlowFinishedEvent ordering) so a HookAborted
|
||||
# prevents a spurious completed signal and any payload replacement is
|
||||
# honored on the returned output.
|
||||
output_ctx = OutputContext(crew=self, output=crew_output, payload=crew_output)
|
||||
dispatch(InterceptionPoint.OUTPUT, output_ctx)
|
||||
crew_output = output_ctx.payload
|
||||
|
||||
@@ -1476,9 +1476,6 @@ class Flow(BaseModel, Generic[T], metaclass=FlowMeta):
|
||||
else (resumed_method_output if emit else result)
|
||||
)
|
||||
|
||||
# A resumed flow completes here rather than in kickoff_async, so the
|
||||
# OUTPUT/EXECUTION_END seams must fire on this path too (before
|
||||
# FlowFinishedEvent) to expose the final result to policy hooks.
|
||||
from crewai.hooks.contexts import ExecutionEndContext, OutputContext
|
||||
from crewai.hooks.dispatch import InterceptionPoint, dispatch
|
||||
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
|
||||
For each wired point this suite asserts the shared contract: the probe hook
|
||||
sees a well-shaped payload, an in-place/returned modification is honored, and a
|
||||
:class:`HookAborted` interrupts the step. Enterprise / ACS adapters build
|
||||
against these guarantees.
|
||||
:class:`HookAborted` interrupts the step.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
Reference in New Issue
Block a user