Skip to content

Commit

Permalink
Update orchestrator.py
Browse files Browse the repository at this point in the history
Fix case when USE_DEFAULT_AGENT_IF_NONE_IDENTIFIED is False and the AgentResponse.output didn't follow the correct structure
  • Loading branch information
brnaba-aws authored Oct 8, 2024
1 parent 00d9624 commit 87cb226
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/src/multi_agent_orchestrator/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ async def route_request(self,
user_id,
session_id,
additional_params),
output= self.config.NO_SELECTED_AGENT_MESSAGE,
output= ConversationMessage(role=ParticipantRole.ASSISTANT.value,
content=[{'text': self.config.NO_SELECTED_AGENT_MESSAGE}]),
streaming=False
)

Expand Down

0 comments on commit 87cb226

Please sign in to comment.