mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-28 07:57:44 +00:00
07c228ef9f
* feat: add interactor classes and user interaction handling for experiments * update code * use fragment retry mechanism instead of rerun() * fix a bug * integrate user instructions into proposal and coder * fix CI * fix CI * feat: add approval option for user instructions submission * feat: enhance user instructions handling in Task and DSExperiment classes * fix CI * add user instructions into hypothesis rewrite * add interface to command line --------- Co-authored-by: Bowen Xian <xianbowen@outlook.com>
18 lines
590 B
Python
18 lines
590 B
Python
from rdagent.core.experiment import ASpecificExp
|
|
from rdagent.core.interactor import Interactor
|
|
from rdagent.core.proposal import Trace
|
|
|
|
|
|
class SkipInteractor(Interactor[ASpecificExp]):
|
|
|
|
def interact(self, exp: ASpecificExp, trace: Trace) -> ASpecificExp:
|
|
"""
|
|
Interact with the user to get feedback or confirmation.
|
|
|
|
Responsibilities:
|
|
- Present the current state of the experiment to the user.
|
|
- Collect user input to guide the next steps in the experiment.
|
|
- Rewrite the experiment based on user feedback.
|
|
"""
|
|
return exp
|