Skip to content

Commit

Permalink
Improve dummy human message
Browse files Browse the repository at this point in the history
  • Loading branch information
StreetLamb committed Jun 8, 2024
1 parent c7d9b15 commit 08f4114
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions backend/app/core/graph/members.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class WorkerNode(BaseNode):
),
MessagesPlaceholder(variable_name="task"),
MessagesPlaceholder(variable_name="messages"),
("human", "."),
("human", "?"),
]
)

Expand Down Expand Up @@ -229,10 +229,7 @@ async def work(self, state: TeamState) -> ReturnTeamState:
else:
next = self.get_next_member_in_sequence(team.members, name)
return {
"messages": [
HumanMessage(content=".", name="ignore"),
result,
],
"messages": [result],
"next": next,
}

Expand All @@ -256,7 +253,7 @@ class LeaderNode(BaseNode):
),
MessagesPlaceholder(variable_name="main_task"),
MessagesPlaceholder(variable_name="messages"),
("human", "."),
("human", "?"),
]
)

Expand Down Expand Up @@ -356,7 +353,7 @@ class SummariserNode(BaseNode):
"Your role is to interpret all the responses and give the final answer to the team's task.\n"
),
),
("human", "."),
("human", "?"),
]
)

Expand Down

0 comments on commit 08f4114

Please sign in to comment.