@@ 188-194 (lines=7) @@ | ||
185 | * @return self |
|
186 | * @throws DomainError |
|
187 | */ |
|
188 | public function setUserInput($value) |
|
189 | { |
|
190 | validators\Text::validate($value, 255, 'User input too long'); |
|
191 | $value = mb_substr($value, 0, 255, 'UTF-8'); |
|
192 | $this->parameters['utt'] = $value; |
|
193 | return $this; |
|
194 | } |
|
195 | ||
196 | /** |
|
197 | * コンテキストIDを設定 |
|
@@ 202-208 (lines=7) @@ | ||
199 | * @param string $value コンテキストID |
|
200 | * @return self |
|
201 | */ |
|
202 | public function setContext($value) |
|
203 | { |
|
204 | validators\Text::validate($value, 255, 'Context id too long'); |
|
205 | $value = mb_substr($value, 0, 255, 'UTF-8'); |
|
206 | $this->parameters['context'] = $value; |
|
207 | return $this; |
|
208 | } |
|
209 | ||
210 | /** |
|
211 | * 対話モードを設定 |