Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chtrembl committed Jan 4, 2024
1 parent 3f7e3a3 commit f76346f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,16 @@ protected CompletableFuture<Void> onMembersAdded(
if(this.sessionCache.get(turnContext.getActivity().getId()) == null)
{
//for some reason this id is the only unique id I can find in the turnContext when running with the Soul Machines DP, BOT Emulator doesn't have any issues
this.sessionCache.put(turnContext.getActivity().getId(), null);
String id = turnContext.getActivity().getId();
this.sessionCache.put(id, null);

return membersAdded.stream()
.filter(
member -> !StringUtils
.equals(member.getId(), turnContext.getActivity().getRecipient().getId()))
.map(channel -> turnContext
.sendActivity(
MessageFactory.text(this.WELCOME_MESSAGE)))
MessageFactory.text(this.WELCOME_MESSAGE+ " " + id)))
.collect(CompletableFutures.toFutureList()).thenApply(resourceResponses -> null);
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
{
"role":"user",
"content":"\"%s\"\nclassify above text into one of the 11 categories \"update shopping cart\", \"view shopping cart\", \"place order\", \"search for dog toys\", \"search for dog food\", \"search for cat toys\", \"search for cat food\", \"search for fish toys\", \"search for fish food\", \"search for products\", \"more product information\", \"something else\""
"content":"\"%s\"\nclassify above text into one of the 12 categories \"update shopping cart\", \"view shopping cart\", \"place order\", \"search for dog toys\", \"search for dog food\", \"search for cat toys\", \"search for cat food\", \"search for fish toys\", \"search for fish food\", \"search for products\", \"more product information\", \"something else\""
}
]
}

0 comments on commit f76346f

Please sign in to comment.