Check if an LLM client is available and properly configured. Returns: True if an LLM client can be created, False otherwise.
()
| 274 | |
| 275 | |
| 276 | def is_llm_available() -> bool: |
| 277 | """ |
| 278 | Check if an LLM client is available and properly configured. |
| 279 | |
| 280 | Returns: |
| 281 | True if an LLM client can be created, False otherwise. |
| 282 | """ |
| 283 | try: |
| 284 | client = get_llm_client() |
| 285 | return client is not None and client.is_available() |
| 286 | except (LLMClientError, ValueError): |
| 287 | return False |
no test coverage detected