Convenience function to get the current application context. Returns: The current ApplicationContext Raises: RuntimeError: If context hasn't been initialized
()
| 293 | |
| 294 | |
| 295 | def get_context() -> ApplicationContext: |
| 296 | """ |
| 297 | Convenience function to get the current application context. |
| 298 | |
| 299 | Returns: |
| 300 | The current ApplicationContext |
| 301 | |
| 302 | Raises: |
| 303 | RuntimeError: If context hasn't been initialized |
| 304 | """ |
| 305 | manager = ContextManager() |
| 306 | return manager.get_context() |
| 307 | |
| 308 | |
| 309 | def initialize_context(**kwargs) -> ApplicationContext: |