Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Archive] Code cot #350

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add more log
  • Loading branch information
you-n-g committed Sep 25, 2024
commit c94c2123b13c926e49a4e0893791c9d107bd5e76
2 changes: 2 additions & 0 deletions rdagent/core/evolving_agent.py
Original file line number Diff line number Diff line change
@@ -78,6 +78,8 @@ def multistep_evolve(
)
# TODO: Due to design issues, we have chosen to ignore this mypy error.
logger.log_object(evo.sub_workspace_list, tag="evolving code") # type: ignore[attr-defined]
for sw in evo.sub_workspace_list: # type: ignore[attr-defined]
logger.info(f"evolving code workspace: {sw}")

# 4. Pack evolve results
es = EvoStep(evo, queried_knowledge)
3 changes: 3 additions & 0 deletions rdagent/core/experiment.py
Original file line number Diff line number Diff line change
@@ -179,6 +179,9 @@ def execute(self) -> object | None:
self.inject_code(**self.code_dict)
return None

def __str__(self) -> str:
return f"Workspace[{self.workspace_path=}" + ("]" if self.target_task is None else f",{self.target_task.name=}]")


ASpecificWSForExperiment = TypeVar("ASpecificWSForExperiment", bound=Workspace)
ASpecificWSForSubTasks = TypeVar("ASpecificWSForSubTasks", bound=Workspace)