async def sample_get_conversation_model():
    # Create a client
    client = dialogflow_v2.ConversationModelsAsyncClient()

    # Initialize request argument(s)
    request = dialogflow_v2.GetConversationModelRequest(name="name_value", )

    # Make the request
    response = await client.get_conversation_model(request=request)

    # Handle the response
    print(response)
Example #2
0
async def sample_list_conversation_model_evaluations():
    # Create a client
    client = dialogflow_v2.ConversationModelsAsyncClient()

    # Initialize request argument(s)
    request = dialogflow_v2.ListConversationModelEvaluationsRequest(
        parent="parent_value", )

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

    # Handle the response
    async for response in page_result:
        print(response)
Example #3
0
async def sample_deploy_conversation_model():
    # Create a client
    client = dialogflow_v2.ConversationModelsAsyncClient()

    # Initialize request argument(s)
    request = dialogflow_v2.DeployConversationModelRequest(name="name_value", )

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

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

    response = await operation.result()

    # Handle the response
    print(response)
async def sample_create_conversation_model_evaluation():
    # Create a client
    client = dialogflow_v2.ConversationModelsAsyncClient()

    # Initialize request argument(s)
    request = dialogflow_v2.CreateConversationModelEvaluationRequest(
        parent="parent_value", )

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

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

    response = await operation.result()

    # Handle the response
    print(response)
Example #5
0
async def sample_create_conversation_model():
    # Create a client
    client = dialogflow_v2.ConversationModelsAsyncClient()

    # Initialize request argument(s)
    conversation_model = dialogflow_v2.ConversationModel()
    conversation_model.display_name = "display_name_value"
    conversation_model.datasets.dataset = "dataset_value"

    request = dialogflow_v2.CreateConversationModelRequest(
        conversation_model=conversation_model,
    )

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

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

    response = await operation.result()

    # Handle the response
    print(response)