Skip to content

Commit ae9bee7

Browse files
authored
Update JA request handlers addition sample code to skill builders
1 parent 2b4755e commit ae9bee7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/ja/REQUEST_PROCESSING.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,9 @@ SDKは、リクエストハンドラーで、スキルビルダーに指定さ
125125
126126
# Implement FooHandler, BarHandler, BazHandler classes
127127
128-
sb.request_handlers.extend([
129-
FooHandler(),
130-
BarHandler(),
131-
BazHandler()])
128+
sb.add_request_handler(FooHandler())
129+
sb.add_request_handler(BarHandler())
130+
sb.add_request_handler(BazHandler())
132131
133132
``request_handler`` デコレーターを使用する方法に従っている場合、ハンドラー関数を明示的に登録する必要はありません。スキルビルダーインスタンスを使用してすでにデコレートされています。
134133

0 commit comments

Comments
 (0)