Skip to content

Commit

Permalink
docs: add the fields for setting CX virtual agent session parameters (#…
Browse files Browse the repository at this point in the history
…519)

* docs: add the fields for setting CX virtual agent session parameters

PiperOrigin-RevId: 446825520

Source-Link: googleapis/googleapis@f6bb255

Source-Link: googleapis/googleapis-gen@cd1450b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2QxNDUwYjQwM2I1YTNmOTI2NzZkOGEzNGYwY2ZjMDdmYzc2N2I0MCJ9

* 🦉 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored May 6, 2022
1 parent 1f6af30 commit b72125a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ class Fulfillment(proto.Message):

class GenericWebService(proto.Message):
r"""Represents configuration for a generic web service.
Dialogflow supports two mechanisms for authentications: - Basic
authentication with username and password.
- Authentication with additional authentication headers. More
information could be found at:
Dialogflow supports two mechanisms for authentications:
- Basic authentication with username and password.
- Authentication with additional authentication headers.
More information could be found at:
https://cloud.google.com/dialogflow/docs/fulfillment-configure.
Attributes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,14 @@ class AnalyzeContentRequest(proto.Message):
query.
assist_query_params (google.cloud.dialogflow_v2.types.AssistQueryParameters):
Parameters for a human assist query.
cx_parameters (google.protobuf.struct_pb2.Struct):
Additional parameters to be put into
Dialogflow CX session parameters. To remove a
parameter from the session, clients should
explicitly set the parameter value to null.
Note: this field should only be used if you are
connecting to a Dialogflow CX agent.
request_id (str):
A unique identifier for this request. Restricted to 36 ASCII
characters. A random UUID is recommended. This request is
Expand Down Expand Up @@ -395,6 +403,11 @@ class AnalyzeContentRequest(proto.Message):
number=14,
message="AssistQueryParameters",
)
cx_parameters = proto.Field(
proto.MESSAGE,
number=18,
message=struct_pb2.Struct,
)
request_id = proto.Field(
proto.STRING,
number=11,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def partition(
class dialogflowCallTransformer(cst.CSTTransformer):
CTRL_PARAMS: Tuple[str] = ('retry', 'timeout', 'metadata')
METHOD_TO_PARAMS: Dict[str, Tuple[str]] = {
'analyze_content': ('participant', 'text_input', 'event_input', 'reply_audio_config', 'query_params', 'assist_query_params', 'request_id', ),
'analyze_content': ('participant', 'text_input', 'event_input', 'reply_audio_config', 'query_params', 'assist_query_params', 'cx_parameters', 'request_id', ),
'batch_create_entities': ('parent', 'entities', 'language_code', ),
'batch_delete_entities': ('parent', 'entity_values', 'language_code', ),
'batch_delete_entity_types': ('parent', 'entity_type_names', ),
Expand Down

0 comments on commit b72125a

Please sign in to comment.