fix: properly import AsyncExitStack
This commit is contained in:
parent
bc6fd8c7cf
commit
c6069b5ab7
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ class LLMProcessor:
|
||||||
env=None
|
env=None
|
||||||
)
|
)
|
||||||
|
|
||||||
self.exit_stack = asyncio.AsyncExitStack()
|
self.exit_stack = contextlib.AsyncExitStack()
|
||||||
stdio_transport = await self.exit_stack.enter_async_context(stdio_client(server_params))
|
stdio_transport = await self.exit_stack.enter_async_context(stdio_client(server_params))
|
||||||
stdio, write = stdio_transport
|
stdio, write = stdio_transport
|
||||||
self.session = await self.exit_stack.enter_async_context(ClientSession(stdio, write))
|
self.session = await self.exit_stack.enter_async_context(ClientSession(stdio, write))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue