Skip to content

Commit d427aa6

Browse files
authored
Merge pull request #1376 from Masao-Taketani/master
bugfix. third argument of ResearchAgent has to be tone
2 parents f84e613 + 9f1e190 commit d427aa6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

multi_agents/agents/editor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
class EditorAgent:
1414
"""Agent responsible for editing and managing code."""
1515

16-
def __init__(self, websocket=None, stream_output=None, headers=None):
16+
def __init__(self, websocket=None, stream_output=None, tone=None, headers=None):
1717
self.websocket = websocket
1818
self.stream_output = stream_output
19+
self.tone = tone
1920
self.headers = headers or {}
2021

2122
async def plan_research(self, research_state: Dict[str, any]) -> Dict[str, any]:
@@ -117,7 +118,7 @@ def _format_planning_instructions(self, initial_research: str, include_human_fee
117118
def _initialize_agents(self) -> Dict[str, any]:
118119
"""Initialize the research, reviewer, and reviser skills."""
119120
return {
120-
"research": ResearchAgent(self.websocket, self.stream_output, self.headers),
121+
"research": ResearchAgent(self.websocket, self.stream_output, self.tone, self.headers),
121122
"reviewer": ReviewerAgent(self.websocket, self.stream_output, self.headers),
122123
"reviser": ReviserAgent(self.websocket, self.stream_output, self.headers),
123124
}

multi_agents/agents/orchestrator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _create_output_directory(self):
4343
def _initialize_agents(self):
4444
return {
4545
"writer": WriterAgent(self.websocket, self.stream_output, self.headers),
46-
"editor": EditorAgent(self.websocket, self.stream_output, self.headers),
46+
"editor": EditorAgent(self.websocket, self.stream_output, self.tone, self.headers),
4747
"research": ResearchAgent(self.websocket, self.stream_output, self.tone, self.headers),
4848
"publisher": PublisherAgent(self.output_dir, self.websocket, self.stream_output, self.headers),
4949
"human": HumanAgent(self.websocket, self.stream_output, self.headers)

0 commit comments

Comments
 (0)