Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

Commit c0a030e

Browse filesBrowse files
feat: add baseline model configuration for conversation summarization (#636)
* feat: add baseline model configuration for conversation summarization PiperOrigin-RevId: 530747460 Source-Link: googleapis/googleapis@4048e76 Source-Link: https://github.com/googleapis/googleapis-gen/commit/82d3834873ddda9d3cecdaec65e9e6ba77e37600 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODJkMzgzNDg3M2RkZGE5ZDNjZWNkYWVjNjVlOWU2YmE3N2UzNzYwMCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add baseline model configuration for conversation summarization PiperOrigin-RevId: 530749453 Source-Link: googleapis/googleapis@620a023 Source-Link: https://github.com/googleapis/googleapis-gen/commit/300d63819c2a27ecd7f35edf88051b44ab291828 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzAwZDYzODE5YzJhMjdlY2Q3ZjM1ZWRmODgwNTFiNDRhYjI5MTgyOCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 06fea2a commit c0a030e
Copy full SHA for c0a030e

File tree

Expand file treeCollapse file tree

4 files changed

+52
-8
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+52
-8
lines changed

‎google/cloud/dialogflow_v2/types/conversation_profile.py

Copy file name to clipboardExpand all lines: google/cloud/dialogflow_v2/types/conversation_profile.py
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,12 +671,22 @@ class ConversationModelConfig(proto.Message):
671671
model (str):
672672
Conversation model resource name. Format:
673673
``projects/<Project ID>/conversationModels/<Model ID>``.
674+
baseline_model_version (str):
675+
Version of current baseline model. It will be ignored if
676+
[model][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.model]
677+
is set. Valid versions are: Article Suggestion baseline
678+
model: - 0.9 - 1.0 (default) Summarization baseline model: -
679+
1.0
674680
"""
675681

676682
model: str = proto.Field(
677683
proto.STRING,
678684
number=1,
679685
)
686+
baseline_model_version: str = proto.Field(
687+
proto.STRING,
688+
number=8,
689+
)
680690

681691
class ConversationProcessConfig(proto.Message):
682692
r"""Config to process conversation.

‎google/cloud/dialogflow_v2beta1/types/conversation_profile.py

Copy file name to clipboardExpand all lines: google/cloud/dialogflow_v2beta1/types/conversation_profile.py
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,12 +526,22 @@ class ConversationModelConfig(proto.Message):
526526
model (str):
527527
Conversation model resource name. Format:
528528
``projects/<Project ID>/conversationModels/<Model ID>``.
529+
baseline_model_version (str):
530+
Version of current baseline model. It will be ignored if
531+
[model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
532+
is set. Valid versions are: Article Suggestion baseline
533+
model: - 0.9 - 1.0 (default) Summarization baseline model: -
534+
1.0
529535
"""
530536

531537
model: str = proto.Field(
532538
proto.STRING,
533539
number=1,
534540
)
541+
baseline_model_version: str = proto.Field(
542+
proto.STRING,
543+
number=8,
544+
)
535545

536546
class ConversationProcessConfig(proto.Message):
537547
r"""Config to process conversation.

‎tests/unit/gapic/dialogflow_v2/test_conversation_profiles.py

Copy file name to clipboardExpand all lines: tests/unit/gapic/dialogflow_v2/test_conversation_profiles.py
+16-4Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3501,7 +3501,10 @@ def test_create_conversation_profile_rest(request_type):
35013501
"drop_ivr_messages": True,
35023502
},
35033503
},
3504-
"conversation_model_config": {"model": "model_value"},
3504+
"conversation_model_config": {
3505+
"model": "model_value",
3506+
"baseline_model_version": "baseline_model_version_value",
3507+
},
35053508
"conversation_process_config": {"recent_sentences_count": 2352},
35063509
}
35073510
],
@@ -3777,7 +3780,10 @@ def test_create_conversation_profile_rest_bad_request(
37773780
"drop_ivr_messages": True,
37783781
},
37793782
},
3780-
"conversation_model_config": {"model": "model_value"},
3783+
"conversation_model_config": {
3784+
"model": "model_value",
3785+
"baseline_model_version": "baseline_model_version_value",
3786+
},
37813787
"conversation_process_config": {"recent_sentences_count": 2352},
37823788
}
37833789
],
@@ -3952,7 +3958,10 @@ def test_update_conversation_profile_rest(request_type):
39523958
"drop_ivr_messages": True,
39533959
},
39543960
},
3955-
"conversation_model_config": {"model": "model_value"},
3961+
"conversation_model_config": {
3962+
"model": "model_value",
3963+
"baseline_model_version": "baseline_model_version_value",
3964+
},
39563965
"conversation_process_config": {"recent_sentences_count": 2352},
39573966
}
39583967
],
@@ -4229,7 +4238,10 @@ def test_update_conversation_profile_rest_bad_request(
42294238
"drop_ivr_messages": True,
42304239
},
42314240
},
4232-
"conversation_model_config": {"model": "model_value"},
4241+
"conversation_model_config": {
4242+
"model": "model_value",
4243+
"baseline_model_version": "baseline_model_version_value",
4244+
},
42334245
"conversation_process_config": {"recent_sentences_count": 2352},
42344246
}
42354247
],

‎tests/unit/gapic/dialogflow_v2beta1/test_conversation_profiles.py

Copy file name to clipboardExpand all lines: tests/unit/gapic/dialogflow_v2beta1/test_conversation_profiles.py
+16-4Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3507,7 +3507,10 @@ def test_create_conversation_profile_rest(request_type):
35073507
"drop_ivr_messages": True,
35083508
},
35093509
},
3510-
"conversation_model_config": {"model": "model_value"},
3510+
"conversation_model_config": {
3511+
"model": "model_value",
3512+
"baseline_model_version": "baseline_model_version_value",
3513+
},
35113514
"conversation_process_config": {"recent_sentences_count": 2352},
35123515
}
35133516
],
@@ -3783,7 +3786,10 @@ def test_create_conversation_profile_rest_bad_request(
37833786
"drop_ivr_messages": True,
37843787
},
37853788
},
3786-
"conversation_model_config": {"model": "model_value"},
3789+
"conversation_model_config": {
3790+
"model": "model_value",
3791+
"baseline_model_version": "baseline_model_version_value",
3792+
},
37873793
"conversation_process_config": {"recent_sentences_count": 2352},
37883794
}
37893795
],
@@ -3959,7 +3965,10 @@ def test_update_conversation_profile_rest(request_type):
39593965
"drop_ivr_messages": True,
39603966
},
39613967
},
3962-
"conversation_model_config": {"model": "model_value"},
3968+
"conversation_model_config": {
3969+
"model": "model_value",
3970+
"baseline_model_version": "baseline_model_version_value",
3971+
},
39633972
"conversation_process_config": {"recent_sentences_count": 2352},
39643973
}
39653974
],
@@ -4236,7 +4245,10 @@ def test_update_conversation_profile_rest_bad_request(
42364245
"drop_ivr_messages": True,
42374246
},
42384247
},
4239-
"conversation_model_config": {"model": "model_value"},
4248+
"conversation_model_config": {
4249+
"model": "model_value",
4250+
"baseline_model_version": "baseline_model_version_value",
4251+
},
42404252
"conversation_process_config": {"recent_sentences_count": 2352},
42414253
}
42424254
],

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.