Skip to content

Commit

Permalink
fixed \ in formatted string
Browse files Browse the repository at this point in the history
  • Loading branch information
brnaba-aws committed Oct 22, 2024
1 parent 3b845fc commit b5ddec4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/src/multi_agent_orchestrator/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,10 @@ def print_intent(self, user_input: str, intent_classifier_result: ClassifierResu
"""Print the classified intent."""
self.logger.log_header('Classified Intent')
self.logger.info(f"> Text: {user_input}")
self.logger.info(f"> Selected Agent: {intent_classifier_result.selected_agent.name \
selected_agent_string = intent_classifier_result.selected_agent.name \
if intent_classifier_result.selected_agent \
else 'No agent selected'}")
else 'No agent selected'
self.logger.info(f"> Selected Agent: {selected_agent_string}")
self.logger.info(f"> Confidence: {intent_classifier_result.confidence:.2f}")
self.logger.info('')

Expand Down

0 comments on commit b5ddec4

Please sign in to comment.