File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -287,18 +287,18 @@ async def _received_request(
287
287
)
288
288
289
289
match responder .request .root :
290
- case types .CreateMessageRequest :
290
+ case types .CreateMessageRequest ( params = params ) :
291
291
if self ._sampling_callback is not None :
292
- response = await self ._sampling_callback (ctx , responder . request . root . params )
292
+ response = await self ._sampling_callback (ctx , params )
293
293
client_response = types .ClientResult (root = response )
294
294
with responder :
295
295
await responder .respond (client_response )
296
- case types .ListRootsRequest :
296
+ case types .ListRootsRequest () :
297
297
if self ._list_roots_callback is not None :
298
298
response = await self ._list_roots_callback (ctx )
299
299
client_response = types .ClientResult (root = response )
300
300
with responder :
301
301
await responder .respond (client_response )
302
- case types .PingRequest :
302
+ case types .PingRequest () :
303
303
with responder :
304
304
await responder .respond (types .ClientResult (root = types .EmptyResult ()))
You can’t perform that action at this time.
0 commit comments