aleph-rlm 0.6.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aleph/__init__.py +49 -0
- aleph/cache/__init__.py +6 -0
- aleph/cache/base.py +20 -0
- aleph/cache/memory.py +27 -0
- aleph/cli.py +1044 -0
- aleph/config.py +154 -0
- aleph/core.py +874 -0
- aleph/mcp/__init__.py +30 -0
- aleph/mcp/local_server.py +3527 -0
- aleph/mcp/server.py +20 -0
- aleph/prompts/__init__.py +5 -0
- aleph/prompts/system.py +45 -0
- aleph/providers/__init__.py +14 -0
- aleph/providers/anthropic.py +253 -0
- aleph/providers/base.py +59 -0
- aleph/providers/openai.py +224 -0
- aleph/providers/registry.py +22 -0
- aleph/repl/__init__.py +5 -0
- aleph/repl/helpers.py +1068 -0
- aleph/repl/sandbox.py +777 -0
- aleph/sub_query/__init__.py +166 -0
- aleph/sub_query/api_backend.py +166 -0
- aleph/sub_query/cli_backend.py +327 -0
- aleph/types.py +216 -0
- aleph/utils/__init__.py +6 -0
- aleph/utils/logging.py +79 -0
- aleph/utils/tokens.py +43 -0
- aleph_rlm-0.6.0.dist-info/METADATA +358 -0
- aleph_rlm-0.6.0.dist-info/RECORD +32 -0
- aleph_rlm-0.6.0.dist-info/WHEEL +4 -0
- aleph_rlm-0.6.0.dist-info/entry_points.txt +3 -0
- aleph_rlm-0.6.0.dist-info/licenses/LICENSE +21 -0
aleph/mcp/__init__.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""MCP server integration.
|
|
2
|
+
|
|
3
|
+
The MCP server is an optional feature. Install with:
|
|
4
|
+
|
|
5
|
+
pip install "aleph-rlm[mcp]"
|
|
6
|
+
|
|
7
|
+
Then run:
|
|
8
|
+
|
|
9
|
+
aleph
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from typing import TYPE_CHECKING
|
|
13
|
+
|
|
14
|
+
if TYPE_CHECKING:
|
|
15
|
+
from .server import AlephMCPServer
|
|
16
|
+
from .local_server import AlephMCPServerLocal
|
|
17
|
+
|
|
18
|
+
__all__ = ["AlephMCPServer", "AlephMCPServerLocal"]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def __getattr__(name: str):
|
|
22
|
+
if name == "AlephMCPServer":
|
|
23
|
+
from .server import AlephMCPServer
|
|
24
|
+
|
|
25
|
+
return AlephMCPServer
|
|
26
|
+
if name == "AlephMCPServerLocal":
|
|
27
|
+
from .local_server import AlephMCPServerLocal
|
|
28
|
+
|
|
29
|
+
return AlephMCPServerLocal
|
|
30
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|