MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / clean_workflow_state

Method clean_workflow_state

trinity/common/models/model.py:870–874  ·  view source on GitHub ↗

Clean the state of workflow using the model.

(self)

Source from the content-addressed store, hash-verified

868 self.workflow_state.update(state)
869
870 async def clean_workflow_state(self) -> None:
871 """Clean the state of workflow using the model."""
872 async with self.state_lock:
873 self.workflow_state = {}
874 self.history.clear()
875
876 async def shutdown(self) -> None:
877 """Shutdown all underlying model actors cleanly."""

Callers 2

_execute_single_runMethod · 0.45
_run_taskMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected