Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
feat: support document metadata filter in article suggestion and smar…
Browse files Browse the repository at this point in the history
…t reply model in human agent assistant (#769)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 409190373

Source-Link: googleapis/googleapis@29bb98c

Source-Link: googleapis/googleapis-gen@e90c22e
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTkwYzIyZTkyNzViOTFhYWJjNmM4MjBhNzY3YWYyZmQ2OTU0ZjYyNCJ9
  • Loading branch information
gcf-owl-bot[bot] committed Nov 15, 2021
1 parent f98bfa6 commit 65ef11a
Show file tree
Hide file tree
Showing 32 changed files with 3,573 additions and 480 deletions.
Expand Up @@ -752,6 +752,7 @@ public final AnalyzeContentResponse analyzeContent(String participant, TextInput
* .toString())
* .setReplyAudioConfig(OutputAudioConfig.newBuilder().build())
* .setQueryParams(QueryParameters.newBuilder().build())
* .setAssistQueryParams(AssistQueryParameters.newBuilder().build())
* .setRequestId("requestId693933066")
* .build();
* AnalyzeContentResponse response = participantsClient.analyzeContent(request);
Expand Down Expand Up @@ -785,6 +786,7 @@ public final AnalyzeContentResponse analyzeContent(AnalyzeContentRequest request
* .toString())
* .setReplyAudioConfig(OutputAudioConfig.newBuilder().build())
* .setQueryParams(QueryParameters.newBuilder().build())
* .setAssistQueryParams(AssistQueryParameters.newBuilder().build())
* .setRequestId("requestId693933066")
* .build();
* ApiFuture<AnalyzeContentResponse> future =
Expand Down Expand Up @@ -872,6 +874,7 @@ public final SuggestArticlesResponse suggestArticles(String parent) {
* "[PROJECT]", "[CONVERSATION]", "[MESSAGE]")
* .toString())
* .setContextSize(1116903569)
* .setAssistQueryParams(AssistQueryParameters.newBuilder().build())
* .build();
* SuggestArticlesResponse response = participantsClient.suggestArticles(request);
* }
Expand Down Expand Up @@ -903,6 +906,7 @@ public final SuggestArticlesResponse suggestArticles(SuggestArticlesRequest requ
* "[PROJECT]", "[CONVERSATION]", "[MESSAGE]")
* .toString())
* .setContextSize(1116903569)
* .setAssistQueryParams(AssistQueryParameters.newBuilder().build())
* .build();
* ApiFuture<SuggestArticlesResponse> future =
* participantsClient.suggestArticlesCallable().futureCall(request);
Expand Down Expand Up @@ -990,6 +994,7 @@ public final SuggestFaqAnswersResponse suggestFaqAnswers(String parent) {
* "[PROJECT]", "[CONVERSATION]", "[MESSAGE]")
* .toString())
* .setContextSize(1116903569)
* .setAssistQueryParams(AssistQueryParameters.newBuilder().build())
* .build();
* SuggestFaqAnswersResponse response = participantsClient.suggestFaqAnswers(request);
* }
Expand Down Expand Up @@ -1021,6 +1026,7 @@ public final SuggestFaqAnswersResponse suggestFaqAnswers(SuggestFaqAnswersReques
* "[PROJECT]", "[CONVERSATION]", "[MESSAGE]")
* .toString())
* .setContextSize(1116903569)
* .setAssistQueryParams(AssistQueryParameters.newBuilder().build())
* .build();
* ApiFuture<SuggestFaqAnswersResponse> future =
* participantsClient.suggestFaqAnswersCallable().futureCall(request);
Expand Down
Expand Up @@ -32,6 +32,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.UUID;
import javax.annotation.Generated;
Expand Down Expand Up @@ -89,6 +90,7 @@ public void createParticipantTest() throws Exception {
"[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]")
.toString())
.setSipRecordingMediaLabel("sipRecordingMediaLabel-1887770873")
.putAllDocumentsMetadataFilters(new HashMap<String, String>())
.build();
mockParticipants.addResponse(expectedResponse);

Expand Down Expand Up @@ -136,6 +138,7 @@ public void createParticipantTest2() throws Exception {
"[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]")
.toString())
.setSipRecordingMediaLabel("sipRecordingMediaLabel-1887770873")
.putAllDocumentsMetadataFilters(new HashMap<String, String>())
.build();
mockParticipants.addResponse(expectedResponse);

Expand Down Expand Up @@ -181,6 +184,7 @@ public void getParticipantTest() throws Exception {
"[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]")
.toString())
.setSipRecordingMediaLabel("sipRecordingMediaLabel-1887770873")
.putAllDocumentsMetadataFilters(new HashMap<String, String>())
.build();
mockParticipants.addResponse(expectedResponse);

Expand Down Expand Up @@ -227,6 +231,7 @@ public void getParticipantTest2() throws Exception {
"[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]")
.toString())
.setSipRecordingMediaLabel("sipRecordingMediaLabel-1887770873")
.putAllDocumentsMetadataFilters(new HashMap<String, String>())
.build();
mockParticipants.addResponse(expectedResponse);

Expand Down Expand Up @@ -359,6 +364,7 @@ public void updateParticipantTest() throws Exception {
"[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]")
.toString())
.setSipRecordingMediaLabel("sipRecordingMediaLabel-1887770873")
.putAllDocumentsMetadataFilters(new HashMap<String, String>())
.build();
mockParticipants.addResponse(expectedResponse);

Expand Down

0 comments on commit 65ef11a

Please sign in to comment.