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

feature/write many code #308

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

femto
Copy link
Contributor

@femto femto commented Sep 12, 2023

simplifies Engineer and refactor core logic into WriteManyCodes.

the concern is, 1. the logic belongs to Action
2.when going to WriteManyCodes action, it can be triggered by other means.

from metagpt.utils.special_tokens import FILENAME_CODE_SEP, MSG_SEP


class WriteManyCodes(Action):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why use this name? Is WriteCodes good enough?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello, 1. WriteCodes will be similar to WriteCode action, so it's easy for programmer to make mistake.
2.Action will be triggered by plan/thought, basically we need
action, action params, action description,
so with WriteCodes similar to WriteCode, llm will be more easy to pick the wrong action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants