title: training time duration in bixby
body: <p>I am building a sample capsule where i will add user activity data. The sample utterance would be "I walked for 2 hr and completed 2 km distance". The training source code is as follow</p>
  
  <pre><code>[g:AddExerciseResultConcept] i (walked)[v:ExerciseType:Walking] for (2 hr)[v:time.DateTimeExpression] and completed (2 km)[v:measurement.Length]
  </code></pre>
  
  <p>IDE showing it as a <strong>illegal plan</strong>.</p>
  
  <p><a href="https://i.stack.imgur.com/1V26W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1V26W.png" alt="enter image description here"></a></p>
  
  <p>My <strong>action model</strong> is like </p>
  
  <pre><code>action (AddExercise) {
         description (adding exercise value)
         type (Search)
         collect {
           input (duration) {
           type (time.DurationPeriod)
           min (Required) max (One)
         }    
         input (distance) {
           type (measurement.Length)
           min (Optional) 
         }
         input (exerciseType) {
           type (ExerciseType)
           min (Required) max (One)
         }
        }
        output (AddExerciseResultConcept)
  }
  </code></pre>
  
  <p>The <strong>AddExerciseResultConcept</strong> is of type text.
  What mistake did i make here? </p>