MCPcopy
hub / github.com/OpenBMB/ChatDev / _ensure_not_cancelled

Method _ensure_not_cancelled

runtime/node/executor/base.py:143–146  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

141 return [message.clone() for message in messages]
142
143 def _ensure_not_cancelled(self) -> None:
144 event = getattr(self.context, "cancel_event", None)
145 if event is not None and event.is_set():
146 raise WorkflowCancelledError("Workflow execution cancelled")

Callers 9

executeMethod · 0.80
_invoke_providerMethod · 0.80
_handle_tool_callsMethod · 0.80
_execute_tool_batchMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80

Calls 1

Tested by

no test coverage detected