Exemple #1
0
def sample_delete_agent():
    # Create a client
    client = dialogflowcx_v3.AgentsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3.DeleteAgentRequest(name="name_value", )

    # Make the request
    client.delete_agent(request=request)
Exemple #2
0
def sample_get_agent_validation_result():
    # Create a client
    client = dialogflowcx_v3.AgentsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3.GetAgentValidationResultRequest(
        name="name_value", )

    # Make the request
    response = client.get_agent_validation_result(request=request)

    # Handle the response
    print(response)
Exemple #3
0
def sample_list_agents():
    # Create a client
    client = dialogflowcx_v3.AgentsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3.ListAgentsRequest(parent="parent_value", )

    # Make the request
    page_result = client.list_agents(request=request)

    # Handle the response
    for response in page_result:
        print(response)
Exemple #4
0
def sample_validate_agent():
    # Create a client
    client = dialogflowcx_v3.AgentsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3.ValidateAgentRequest(
        name="name_value",
    )

    # Make the request
    response = client.validate_agent(request=request)

    # Handle the response
    print(response)
Exemple #5
0
def sample_export_agent():
    # Create a client
    client = dialogflowcx_v3.AgentsClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3.ExportAgentRequest(
        name="name_value",
    )

    # Make the request
    operation = client.export_agent(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
def sample_update_agent():
    # Create a client
    client = dialogflowcx_v3.AgentsClient()

    # Initialize request argument(s)
    agent = dialogflowcx_v3.Agent()
    agent.display_name = "display_name_value"
    agent.default_language_code = "default_language_code_value"
    agent.time_zone = "time_zone_value"

    request = dialogflowcx_v3.UpdateAgentRequest(
        agent=agent,
    )

    # Make the request
    response = client.update_agent(request=request)

    # Handle the response
    print(response)