Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 8a53800

Browse files
docs: added notes to train agent before sending queries (#111)
PiperOrigin-RevId: 380267079 Source-Link: googleapis/googleapis@01bad53 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5810da64fdeccb8ad0a1b34e2f1cab777d04552a
1 parent 40974f5 commit 8a53800

File tree

20 files changed

+268
-24
lines changed

20 files changed

+268
-24
lines changed

google/cloud/dialogflowcx_v3beta1/services/agents/async_client.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,10 @@ async def create_agent(
354354
) -> gcdc_agent.Agent:
355355
r"""Creates an agent in the specified location.
356356
357+
Note: You should always train a flow prior to sending it
358+
queries. See the `training
359+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
360+
357361
Args:
358362
request (:class:`google.cloud.dialogflowcx_v3beta1.types.CreateAgentRequest`):
359363
The request object. The request message for
@@ -445,6 +449,10 @@ async def update_agent(
445449
) -> gcdc_agent.Agent:
446450
r"""Updates the specified agent.
447451
452+
Note: You should always train a flow prior to sending it
453+
queries. See the `training
454+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
455+
448456
Args:
449457
request (:class:`google.cloud.dialogflowcx_v3beta1.types.UpdateAgentRequest`):
450458
The request object. The request message for
@@ -661,9 +669,14 @@ async def restore_agent(
661669
metadata: Sequence[Tuple[str, str]] = (),
662670
) -> operation_async.AsyncOperation:
663671
r"""Restores the specified agent from a binary file.
672+
664673
Replaces the current agent with a new one. Note that all
665-
existing resources in agent (e.g. intents, entity types,
666-
flows) will be removed.
674+
existing resources in agent (e.g. intents, entity types, flows)
675+
will be removed.
676+
677+
Note: You should always train a flow prior to sending it
678+
queries. See the `training
679+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
667680
668681
Args:
669682
request (:class:`google.cloud.dialogflowcx_v3beta1.types.RestoreAgentRequest`):

google/cloud/dialogflowcx_v3beta1/services/agents/client.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,10 @@ def create_agent(
615615
) -> gcdc_agent.Agent:
616616
r"""Creates an agent in the specified location.
617617
618+
Note: You should always train a flow prior to sending it
619+
queries. See the `training
620+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
621+
618622
Args:
619623
request (google.cloud.dialogflowcx_v3beta1.types.CreateAgentRequest):
620624
The request object. The request message for
@@ -706,6 +710,10 @@ def update_agent(
706710
) -> gcdc_agent.Agent:
707711
r"""Updates the specified agent.
708712
713+
Note: You should always train a flow prior to sending it
714+
queries. See the `training
715+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
716+
709717
Args:
710718
request (google.cloud.dialogflowcx_v3beta1.types.UpdateAgentRequest):
711719
The request object. The request message for
@@ -923,9 +931,14 @@ def restore_agent(
923931
metadata: Sequence[Tuple[str, str]] = (),
924932
) -> operation.Operation:
925933
r"""Restores the specified agent from a binary file.
934+
926935
Replaces the current agent with a new one. Note that all
927-
existing resources in agent (e.g. intents, entity types,
928-
flows) will be removed.
936+
existing resources in agent (e.g. intents, entity types, flows)
937+
will be removed.
938+
939+
Note: You should always train a flow prior to sending it
940+
queries. See the `training
941+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
929942
930943
Args:
931944
request (google.cloud.dialogflowcx_v3beta1.types.RestoreAgentRequest):

google/cloud/dialogflowcx_v3beta1/services/agents/transports/grpc.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,10 @@ def create_agent(
300300
301301
Creates an agent in the specified location.
302302
303+
Note: You should always train a flow prior to sending it
304+
queries. See the `training
305+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
306+
303307
Returns:
304308
Callable[[~.CreateAgentRequest],
305309
~.Agent]:
@@ -326,6 +330,10 @@ def update_agent(
326330
327331
Updates the specified agent.
328332
333+
Note: You should always train a flow prior to sending it
334+
queries. See the `training
335+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
336+
329337
Returns:
330338
Callable[[~.UpdateAgentRequest],
331339
~.Agent]:
@@ -401,9 +409,14 @@ def restore_agent(
401409
r"""Return a callable for the restore agent method over gRPC.
402410
403411
Restores the specified agent from a binary file.
412+
404413
Replaces the current agent with a new one. Note that all
405-
existing resources in agent (e.g. intents, entity types,
406-
flows) will be removed.
414+
existing resources in agent (e.g. intents, entity types, flows)
415+
will be removed.
416+
417+
Note: You should always train a flow prior to sending it
418+
queries. See the `training
419+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
407420
408421
Returns:
409422
Callable[[~.RestoreAgentRequest],

google/cloud/dialogflowcx_v3beta1/services/agents/transports/grpc_asyncio.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,10 @@ def create_agent(
305305
306306
Creates an agent in the specified location.
307307
308+
Note: You should always train a flow prior to sending it
309+
queries. See the `training
310+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
311+
308312
Returns:
309313
Callable[[~.CreateAgentRequest],
310314
Awaitable[~.Agent]]:
@@ -331,6 +335,10 @@ def update_agent(
331335
332336
Updates the specified agent.
333337
338+
Note: You should always train a flow prior to sending it
339+
queries. See the `training
340+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
341+
334342
Returns:
335343
Callable[[~.UpdateAgentRequest],
336344
Awaitable[~.Agent]]:
@@ -408,9 +416,14 @@ def restore_agent(
408416
r"""Return a callable for the restore agent method over gRPC.
409417
410418
Restores the specified agent from a binary file.
419+
411420
Replaces the current agent with a new one. Note that all
412-
existing resources in agent (e.g. intents, entity types,
413-
flows) will be removed.
421+
existing resources in agent (e.g. intents, entity types, flows)
422+
will be removed.
423+
424+
Note: You should always train a flow prior to sending it
425+
queries. See the `training
426+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
414427
415428
Returns:
416429
Callable[[~.RestoreAgentRequest],

google/cloud/dialogflowcx_v3beta1/services/entity_types/async_client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,10 @@ async def update_entity_type(
469469
) -> gcdc_entity_type.EntityType:
470470
r"""Updates the specified entity type.
471471
472+
Note: You should always train a flow prior to sending it
473+
queries. See the `training
474+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
475+
472476
Args:
473477
request (:class:`google.cloud.dialogflowcx_v3beta1.types.UpdateEntityTypeRequest`):
474478
The request object. The request message for
@@ -581,6 +585,10 @@ async def delete_entity_type(
581585
) -> None:
582586
r"""Deletes the specified entity type.
583587
588+
Note: You should always train a flow prior to sending it
589+
queries. See the `training
590+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
591+
584592
Args:
585593
request (:class:`google.cloud.dialogflowcx_v3beta1.types.DeleteEntityTypeRequest`):
586594
The request object. The request message for

google/cloud/dialogflowcx_v3beta1/services/entity_types/client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,10 @@ def update_entity_type(
658658
) -> gcdc_entity_type.EntityType:
659659
r"""Updates the specified entity type.
660660
661+
Note: You should always train a flow prior to sending it
662+
queries. See the `training
663+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
664+
661665
Args:
662666
request (google.cloud.dialogflowcx_v3beta1.types.UpdateEntityTypeRequest):
663667
The request object. The request message for
@@ -770,6 +774,10 @@ def delete_entity_type(
770774
) -> None:
771775
r"""Deletes the specified entity type.
772776
777+
Note: You should always train a flow prior to sending it
778+
queries. See the `training
779+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
780+
773781
Args:
774782
request (google.cloud.dialogflowcx_v3beta1.types.DeleteEntityTypeRequest):
775783
The request object. The request message for

google/cloud/dialogflowcx_v3beta1/services/entity_types/transports/grpc.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ def update_entity_type(
317317
318318
Updates the specified entity type.
319319
320+
Note: You should always train a flow prior to sending it
321+
queries. See the `training
322+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
323+
320324
Returns:
321325
Callable[[~.UpdateEntityTypeRequest],
322326
~.EntityType]:
@@ -343,6 +347,10 @@ def delete_entity_type(
343347
344348
Deletes the specified entity type.
345349
350+
Note: You should always train a flow prior to sending it
351+
queries. See the `training
352+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
353+
346354
Returns:
347355
Callable[[~.DeleteEntityTypeRequest],
348356
~.Empty]:

google/cloud/dialogflowcx_v3beta1/services/entity_types/transports/grpc_asyncio.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,10 @@ def update_entity_type(
325325
326326
Updates the specified entity type.
327327
328+
Note: You should always train a flow prior to sending it
329+
queries. See the `training
330+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
331+
328332
Returns:
329333
Callable[[~.UpdateEntityTypeRequest],
330334
Awaitable[~.EntityType]]:
@@ -351,6 +355,10 @@ def delete_entity_type(
351355
352356
Deletes the specified entity type.
353357
358+
Note: You should always train a flow prior to sending it
359+
queries. See the `training
360+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
361+
354362
Returns:
355363
Callable[[~.DeleteEntityTypeRequest],
356364
Awaitable[~.Empty]]:

google/cloud/dialogflowcx_v3beta1/services/flows/async_client.py

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ async def create_flow(
188188
) -> gcdc_flow.Flow:
189189
r"""Creates a flow in the specified agent.
190190
191+
Note: You should always train a flow prior to sending it
192+
queries. See the `training
193+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
194+
191195
Args:
192196
request (:class:`google.cloud.dialogflowcx_v3beta1.types.CreateFlowRequest`):
193197
The request object. The request message for
@@ -524,6 +528,10 @@ async def update_flow(
524528
) -> gcdc_flow.Flow:
525529
r"""Updates the specified flow.
526530
531+
Note: You should always train a flow prior to sending it
532+
queries. See the `training
533+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
534+
527535
Args:
528536
request (:class:`google.cloud.dialogflowcx_v3beta1.types.UpdateFlowRequest`):
529537
The request object. The request message for
@@ -624,8 +632,12 @@ async def train_flow(
624632
timeout: float = None,
625633
metadata: Sequence[Tuple[str, str]] = (),
626634
) -> operation_async.AsyncOperation:
627-
r"""Trains the specified flow. Note that only the flow in
628-
'draft' environment is trained.
635+
r"""Trains the specified flow. Note that only the flow in 'draft'
636+
environment is trained.
637+
638+
Note: You should always train a flow prior to sending it
639+
queries. See the `training
640+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
629641
630642
Args:
631643
request (:class:`google.cloud.dialogflowcx_v3beta1.types.TrainFlowRequest`):
@@ -840,8 +852,12 @@ async def import_flow(
840852
timeout: float = None,
841853
metadata: Sequence[Tuple[str, str]] = (),
842854
) -> operation_async.AsyncOperation:
843-
r"""Imports the specified flow to the specified agent
844-
from a binary file.
855+
r"""Imports the specified flow to the specified agent from a binary
856+
file.
857+
858+
Note: You should always train a flow prior to sending it
859+
queries. See the `training
860+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
845861
846862
Args:
847863
request (:class:`google.cloud.dialogflowcx_v3beta1.types.ImportFlowRequest`):

google/cloud/dialogflowcx_v3beta1/services/flows/client.py

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,10 @@ def create_flow(
457457
) -> gcdc_flow.Flow:
458458
r"""Creates a flow in the specified agent.
459459
460+
Note: You should always train a flow prior to sending it
461+
queries. See the `training
462+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
463+
460464
Args:
461465
request (google.cloud.dialogflowcx_v3beta1.types.CreateFlowRequest):
462466
The request object. The request message for
@@ -793,6 +797,10 @@ def update_flow(
793797
) -> gcdc_flow.Flow:
794798
r"""Updates the specified flow.
795799
800+
Note: You should always train a flow prior to sending it
801+
queries. See the `training
802+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
803+
796804
Args:
797805
request (google.cloud.dialogflowcx_v3beta1.types.UpdateFlowRequest):
798806
The request object. The request message for
@@ -893,8 +901,12 @@ def train_flow(
893901
timeout: float = None,
894902
metadata: Sequence[Tuple[str, str]] = (),
895903
) -> operation.Operation:
896-
r"""Trains the specified flow. Note that only the flow in
897-
'draft' environment is trained.
904+
r"""Trains the specified flow. Note that only the flow in 'draft'
905+
environment is trained.
906+
907+
Note: You should always train a flow prior to sending it
908+
queries. See the `training
909+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
898910
899911
Args:
900912
request (google.cloud.dialogflowcx_v3beta1.types.TrainFlowRequest):
@@ -1112,8 +1124,12 @@ def import_flow(
11121124
timeout: float = None,
11131125
metadata: Sequence[Tuple[str, str]] = (),
11141126
) -> operation.Operation:
1115-
r"""Imports the specified flow to the specified agent
1116-
from a binary file.
1127+
r"""Imports the specified flow to the specified agent from a binary
1128+
file.
1129+
1130+
Note: You should always train a flow prior to sending it
1131+
queries. See the `training
1132+
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
11171133
11181134
Args:
11191135
request (google.cloud.dialogflowcx_v3beta1.types.ImportFlowRequest):

0 commit comments

Comments
 (0)