original_docstring: Returns all training phrases for a specified intent.
docstring: Returns all training phrases for a specified intent.
docstring_tokens: Returns all training phrases for a specified intent .
code: def list_training_phrases(project_id, intent_id):
      """Returns all training phrases for a specified intent."""
  
      from google.cloud import dialogflow
  
      # Create the intents client
      intent_client = dialogflow.IntentsClient()
  
      # Specify working intent
      intent_name = f"projects/{project_id}/agent/intents/{intent_id}"
  
      # The options for views of an intent
      intent_view = dialogflow.IntentView.INTENT_VIEW_FULL
  
      # Compose the get-intent request
      get_intent_request = dialogflow.GetIntentRequest(
          name=intent_name, intent_view=intent_view
      )
  
      intent = intent_client.get_intent(get_intent_request)
  
      # Iterate through the training phrases.
      for phrase in intent.training_phrases:
          print(phrase)
  
      return intent.training_phrases
code_tokens: def list_training_phrases ( project_id , intent_id ) : from google . cloud import dialogflow intent_client = dialogflow . IntentsClient ( ) intent_name = f"projects/{project_id}/agent/intents/{intent_id}" intent_view = dialogflow . IntentView . INTENT_VIEW_FULL get_intent_request = dialogflow . GetIntentRequest ( name = intent_name , intent_view = intent_view ) intent = intent_client . get_intent ( get_intent_request ) for phrase in intent . training_phrases : print ( phrase ) return intent . training_phrases
short_docstring: Returns all training phrases for a specified intent.
short_docstring_tokens: Returns all training phrases for a specified intent .
comment: """Returns all training phrases for a specified intent."""$SEP$# Create the intents client$SEP$# Specify working intent$SEP$# The options for views of an intent$SEP$# Compose the get-intent request$SEP$# Iterate through the training phrases.