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

Commit c6940a9

Browse files
docs(v2): recommend AnalyzeContent for future users (#421)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 402401837 Source-Link: googleapis/googleapis@16ff813 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c9e6ac25d5e309170f1805bf8ea382a8b23dee65 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzllNmFjMjVkNWUzMDkxNzBmMTgwNWJmOGVhMzgyYThiMjNkZWU2NSJ9
1 parent 22fcde8 commit c6940a9

4 files changed

Lines changed: 60 additions & 0 deletions

File tree

‎google/cloud/dialogflow_v2/services/sessions/async_client.py‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,13 @@ async def detect_intent(
191191
because it may cause contexts and session entity types to be
192192
updated, which in turn might affect results of future queries.
193193
194+
If you might use `Agent
195+
Assist <https://cloud.google.com/dialogflow/docs/#aa>`__ or
196+
other CCAI products now or in the future, consider using
197+
[AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
198+
instead of ``DetectIntent``. ``AnalyzeContent`` has additional
199+
functionality for Agent Assist and other CCAI products.
200+
194201
Note: Always use agent versions for production traffic. See
195202
`Versions and
196203
environments <https://cloud.google.com/dialogflow/es/docs/agents-versions>`__.
@@ -312,6 +319,14 @@ def streaming_detect_intent(
312319
result. This method is only available via the gRPC API (not
313320
REST).
314321
322+
If you might use `Agent
323+
Assist <https://cloud.google.com/dialogflow/docs/#aa>`__ or
324+
other CCAI products now or in the future, consider using
325+
[StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
326+
instead of ``StreamingDetectIntent``.
327+
``StreamingAnalyzeContent`` has additional functionality for
328+
Agent Assist and other CCAI products.
329+
315330
Note: Always use agent versions for production traffic. See
316331
`Versions and
317332
environments <https://cloud.google.com/dialogflow/es/docs/agents-versions>`__.

‎google/cloud/dialogflow_v2/services/sessions/client.py‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,13 @@ def detect_intent(
410410
because it may cause contexts and session entity types to be
411411
updated, which in turn might affect results of future queries.
412412
413+
If you might use `Agent
414+
Assist <https://cloud.google.com/dialogflow/docs/#aa>`__ or
415+
other CCAI products now or in the future, consider using
416+
[AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
417+
instead of ``DetectIntent``. ``AnalyzeContent`` has additional
418+
functionality for Agent Assist and other CCAI products.
419+
413420
Note: Always use agent versions for production traffic. See
414421
`Versions and
415422
environments <https://cloud.google.com/dialogflow/es/docs/agents-versions>`__.
@@ -522,6 +529,14 @@ def streaming_detect_intent(
522529
result. This method is only available via the gRPC API (not
523530
REST).
524531
532+
If you might use `Agent
533+
Assist <https://cloud.google.com/dialogflow/docs/#aa>`__ or
534+
other CCAI products now or in the future, consider using
535+
[StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
536+
instead of ``StreamingDetectIntent``.
537+
``StreamingAnalyzeContent`` has additional functionality for
538+
Agent Assist and other CCAI products.
539+
525540
Note: Always use agent versions for production traffic. See
526541
`Versions and
527542
environments <https://cloud.google.com/dialogflow/es/docs/agents-versions>`__.

‎google/cloud/dialogflow_v2/services/sessions/transports/grpc.py‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,13 @@ def detect_intent(
240240
because it may cause contexts and session entity types to be
241241
updated, which in turn might affect results of future queries.
242242
243+
If you might use `Agent
244+
Assist <https://cloud.google.com/dialogflow/docs/#aa>`__ or
245+
other CCAI products now or in the future, consider using
246+
[AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
247+
instead of ``DetectIntent``. ``AnalyzeContent`` has additional
248+
functionality for Agent Assist and other CCAI products.
249+
243250
Note: Always use agent versions for production traffic. See
244251
`Versions and
245252
environments <https://cloud.google.com/dialogflow/es/docs/agents-versions>`__.
@@ -275,6 +282,14 @@ def streaming_detect_intent(
275282
result. This method is only available via the gRPC API (not
276283
REST).
277284
285+
If you might use `Agent
286+
Assist <https://cloud.google.com/dialogflow/docs/#aa>`__ or
287+
other CCAI products now or in the future, consider using
288+
[StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
289+
instead of ``StreamingDetectIntent``.
290+
``StreamingAnalyzeContent`` has additional functionality for
291+
Agent Assist and other CCAI products.
292+
278293
Note: Always use agent versions for production traffic. See
279294
`Versions and
280295
environments <https://cloud.google.com/dialogflow/es/docs/agents-versions>`__.

‎google/cloud/dialogflow_v2/services/sessions/transports/grpc_asyncio.py‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,13 @@ def detect_intent(
245245
because it may cause contexts and session entity types to be
246246
updated, which in turn might affect results of future queries.
247247
248+
If you might use `Agent
249+
Assist <https://cloud.google.com/dialogflow/docs/#aa>`__ or
250+
other CCAI products now or in the future, consider using
251+
[AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
252+
instead of ``DetectIntent``. ``AnalyzeContent`` has additional
253+
functionality for Agent Assist and other CCAI products.
254+
248255
Note: Always use agent versions for production traffic. See
249256
`Versions and
250257
environments <https://cloud.google.com/dialogflow/es/docs/agents-versions>`__.
@@ -281,6 +288,14 @@ def streaming_detect_intent(
281288
result. This method is only available via the gRPC API (not
282289
REST).
283290
291+
If you might use `Agent
292+
Assist <https://cloud.google.com/dialogflow/docs/#aa>`__ or
293+
other CCAI products now or in the future, consider using
294+
[StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
295+
instead of ``StreamingDetectIntent``.
296+
``StreamingAnalyzeContent`` has additional functionality for
297+
Agent Assist and other CCAI products.
298+
284299
Note: Always use agent versions for production traffic. See
285300
`Versions and
286301
environments <https://cloud.google.com/dialogflow/es/docs/agents-versions>`__.

0 commit comments

Comments
 (0)