We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d40495 commit c7b371aCopy full SHA for c7b371a
src/neo4j_graphrag/llm/types.py
@@ -1,16 +1,20 @@
1
import warnings
2
-from typing import Literal
+from typing import Any, Literal
3
4
from pydantic import BaseModel
5
6
from neo4j_graphrag.types import LLMMessage as _LLMMessage
7
8
-warnings.warn(
9
- "LLMMessage has been moved to neo4j_graphrag.types. Please update your imports.",
10
- DeprecationWarning,
11
- stacklevel=2,
12
-)
13
-LLMMessage = _LLMMessage
+
+def __getattr__(name: str) -> Any:
+ if name == "LLMMessage":
+ warnings.warn(
+ "LLMMessage has been moved to neo4j_graphrag.types. Please update your imports.",
+ DeprecationWarning,
14
+ stacklevel=2,
15
+ )
16
+ return _LLMMessage
17
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
18
19
20
class LLMResponse(BaseModel):
0 commit comments