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

Method set_repeat_times

trinity/common/workflows/workflow.py:135–144  ·  view source on GitHub ↗

Set the number of times to repeat the workflow. Args: repeat_times (int): number of times to repeat the workflow (if repeatable). run_id_base (int): base run_id for setting run_id in experiences.

(self, repeat_times: int, run_id_base: int)

Source from the content-addressed store, hash-verified

133 raise NotImplementedError
134
135 def set_repeat_times(self, repeat_times: int, run_id_base: int) -> None:
136 """
137 Set the number of times to repeat the workflow.
138 Args:
139 repeat_times (int): number of times to repeat the workflow (if repeatable).
140 run_id_base (int): base run_id for setting run_id in experiences.
141 """
142 raise NotImplementedError(
143 "set_repeat_times() must be implemented for a repeatable workflow."
144 )
145
146 def run(self) -> List[Experience]:
147 """Run workflow and return a list of experiences."""

Callers 1

_run_taskMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected