Assistant run
logger = logging.getLogger(__name__)
module-attribute
NoInputError
Bases: FrontendError
OutOfDateError
Bases: FrontendError
ProvidesRunContextProtocol
Bases: Protocol
run_context()
async
Async context manager.
the async is missing in the Protocol definition because of inner workings of Protocol. To implement, async
must be included:
Examples:
``` class ExampleProvider: @asynccontextmanager async def run_context(self) -> AsyncContextManager: print("Opening context")
Yield
print("Closing context")
```