Skip to content

Commit c1a01c2

Browse files
committed
make ROutmake RouterAgent more robust about selecting payment agent
1 parent 7f49d3a commit c1a01c2

File tree

1 file changed

+3
-1
lines changed
  • app/copilot/copilot-backend/src/main/java/com/microsoft/openai/samples/assistant/agent

1 file changed

+3
-1
lines changed

app/copilot/copilot-backend/src/main/java/com/microsoft/openai/samples/assistant/agent/IntentExtractor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ ChatHistory fewShotExamples(){
102102
.addUserMessage("can you pay this bill for me?")
103103
.addAssistantMessage("{\"intent\": \"BillPayment\" }")
104104
.addUserMessage("when was last time I paid acme")
105-
.addAssistantMessage("{\"intent\": \"TransactionHistory\" }");
105+
.addAssistantMessage("{\"intent\": \"TransactionHistory\" }")
106+
.addUserMessage("proceed with payment")
107+
.addAssistantMessage("{\"intent\": \"BillPayment\" }");
106108
}
107109

108110
}

0 commit comments

Comments
 (0)