Skip to content

Commit 2b4755e

Browse files
authored
Update sample code that adds request handlers to skill builder
1 parent 26f3be9 commit 2b4755e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/en/REQUEST_PROCESSING.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,9 @@ order in which they were provided to the ``Skill`` builder.
198198
199199
# Implement FooHandler, BarHandler, BazHandler classes
200200
201-
sb.request_handlers.extend([
202-
FooHandler(),
203-
BarHandler(),
204-
BazHandler()])
201+
sb.add_request_handler(FooHandler())
202+
sb.add_request_handler(BarHandler())
203+
sb.add_request_handler(BazHandler())
205204
206205
.. tab:: RequestHandler Decorator
207206

0 commit comments

Comments
 (0)