Convenience function to initialize the application context. Args: **kwargs: Arguments to pass to ApplicationContext.create() Returns: The initialized ApplicationContext
(**kwargs)
| 307 | |
| 308 | |
| 309 | def initialize_context(**kwargs) -> ApplicationContext: |
| 310 | """ |
| 311 | Convenience function to initialize the application context. |
| 312 | |
| 313 | Args: |
| 314 | **kwargs: Arguments to pass to ApplicationContext.create() |
| 315 | |
| 316 | Returns: |
| 317 | The initialized ApplicationContext |
| 318 | """ |
| 319 | manager = ContextManager() |
| 320 | return manager.initialize(**kwargs) |