Skip to content

Commit ff9ca4c

Browse files
fix(local agent): fix team work copy
1 parent 390a17d commit ff9ca4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

oxygent/oxy/agents/local_agent.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ async def init(self):
180180
new_instance = copy.deepcopy(self)
181181
new_instance.name = f"{self.name}_{i + 1}"
182182
new_instance.is_master = False
183+
new_instance.func_process_input = self.func_process_input
184+
new_instance.func_process_output = self.func_process_output
185+
new_instance.func_format_input = self.func_format_input
186+
new_instance.func_format_output = self.func_format_output
183187
team_names.append(new_instance.name)
184188
self.mas.oxy_name_to_oxy[new_instance.name] = new_instance
185189
from .parallel_agent import ParallelAgent

0 commit comments

Comments
 (0)