lionagi 0.17.3__py3-none-any.whl → 0.17.4__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.
- lionagi/__init__.py +5 -1
- lionagi/protocols/action/manager.py +0 -2
- lionagi/version.py +1 -1
- {lionagi-0.17.3.dist-info → lionagi-0.17.4.dist-info}/METADATA +28 -1
- {lionagi-0.17.3.dist-info → lionagi-0.17.4.dist-info}/RECORD +7 -7
- {lionagi-0.17.3.dist-info → lionagi-0.17.4.dist-info}/WHEEL +0 -0
- {lionagi-0.17.3.dist-info → lionagi-0.17.4.dist-info}/licenses/LICENSE +0 -0
lionagi/__init__.py
CHANGED
@@ -6,7 +6,6 @@ import logging
|
|
6
6
|
|
7
7
|
from pydantic import BaseModel, Field
|
8
8
|
|
9
|
-
# Eager imports for commonly used components
|
10
9
|
from . import ln as ln
|
11
10
|
from .operations.node import Operation
|
12
11
|
from .service.imodel import iModel
|
@@ -35,6 +34,11 @@ def __getattr__(name: str):
|
|
35
34
|
|
36
35
|
_lazy_imports["Builder"] = Builder
|
37
36
|
return Builder
|
37
|
+
elif name == "load_mcp_tools":
|
38
|
+
from .protocols.action.manager import load_mcp_tools
|
39
|
+
|
40
|
+
_lazy_imports["load_mcp_tools"] = load_mcp_tools
|
41
|
+
return load_mcp_tools
|
38
42
|
|
39
43
|
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
40
44
|
|
lionagi/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.17.
|
1
|
+
__version__ = "0.17.4"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: lionagi
|
3
|
-
Version: 0.17.
|
3
|
+
Version: 0.17.4
|
4
4
|
Summary: An Intelligence Operating System.
|
5
5
|
Author-email: HaiyangLi <quantocean.li@gmail.com>
|
6
6
|
License: Apache License
|
@@ -374,6 +374,33 @@ print(result)
|
|
374
374
|
The LLM can now open the PDF, read in slices, fetch references, and produce a
|
375
375
|
final structured summary.
|
376
376
|
|
377
|
+
### MCP (Model Context Protocol) Integration
|
378
|
+
|
379
|
+
LionAGI supports Anthropic's Model Context Protocol for seamless tool integration:
|
380
|
+
|
381
|
+
```
|
382
|
+
pip install "lionagi[mcp]"
|
383
|
+
```
|
384
|
+
|
385
|
+
```python
|
386
|
+
from lionagi import load_mcp_tools
|
387
|
+
|
388
|
+
# Load tools from any MCP server
|
389
|
+
tools = await load_mcp_tools(".mcp.json", ["search", "memory"])
|
390
|
+
|
391
|
+
# Use with ReAct reasoning
|
392
|
+
branch = Branch(chat_model=gpt4o, tools=tools)
|
393
|
+
result = await branch.ReAct(
|
394
|
+
instruct={"instruction": "Research recent AI developments"},
|
395
|
+
tools=["search_exa_search"],
|
396
|
+
max_extensions=3
|
397
|
+
)
|
398
|
+
```
|
399
|
+
|
400
|
+
- **Dynamic Discovery**: Auto-discover and register tools from MCP servers
|
401
|
+
- **Type Safety**: Full Pydantic validation for tool interactions
|
402
|
+
- **Connection Pooling**: Efficient resource management with automatic reuse
|
403
|
+
|
377
404
|
### Observability & Debugging
|
378
405
|
|
379
406
|
- Inspect messages:
|
@@ -1,4 +1,4 @@
|
|
1
|
-
lionagi/__init__.py,sha256=
|
1
|
+
lionagi/__init__.py,sha256=Kh_2iWIL1mvvtMAETJ5cRxIxRkiAERYAJmK1IOgNtvQ,1335
|
2
2
|
lionagi/_class_registry.py,sha256=pfUO1DjFZIqr3OwnNMkFqL_fiEBrrf8-swkGmP_KDLE,3112
|
3
3
|
lionagi/_errors.py,sha256=ia_VWhPSyr5FIJLSdPpl04SrNOLI2skN40VC8ePmzeQ,3748
|
4
4
|
lionagi/_types.py,sha256=COWRrmstmABGKKn-h_cKiAREGsMp_Ik49OdR4lSS3P8,1263
|
@@ -6,7 +6,7 @@ lionagi/config.py,sha256=D13nnjpgJKz_LlQrzaKKVefm4hqesz_dP9ROjWmGuLE,3811
|
|
6
6
|
lionagi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
lionagi/settings.py,sha256=HDuKCEJCpc4HudKodBnhoQUGuTGhRHdlIFhbtf3VBtY,1633
|
8
8
|
lionagi/utils.py,sha256=pfAibR84sx-aPxGNPrdlHqUAf2OXoCBGRCMseMrzhi4,18046
|
9
|
-
lionagi/version.py,sha256=
|
9
|
+
lionagi/version.py,sha256=LisYi6U4jD61j06adgCNdZJfR0RhF_Im0hPrka6lSjc,23
|
10
10
|
lionagi/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
lionagi/adapters/_utils.py,sha256=sniMG1LDDkwJNzUF2K32jv7rA6Y1QcohgyNclYsptzI,453
|
12
12
|
lionagi/adapters/async_postgres_adapter.py,sha256=2XlxYNPow78dFHIQs8W1oJ2zkVD5Udn3aynMBF9Nf3k,3498
|
@@ -109,7 +109,7 @@ lionagi/protocols/ids.py,sha256=RM40pP_4waMJcfCGmEK_PfS8-k_DuDbC1fG-2Peuf6s,2472
|
|
109
109
|
lionagi/protocols/types.py,sha256=6GJ5ZgDyWl8tckNLXB0z8jbtkordWpgm5r4ht31KVRc,2431
|
110
110
|
lionagi/protocols/action/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
111
111
|
lionagi/protocols/action/function_calling.py,sha256=jFy6Ruh3QWkERtBHXqPWVwrOH5aDitEo8oJHZgW5xnI,5066
|
112
|
-
lionagi/protocols/action/manager.py,sha256=
|
112
|
+
lionagi/protocols/action/manager.py,sha256=akq3HuLUuTRkm7ENmn8oycNH-4ksfekXOwOJky5OBrE,18835
|
113
113
|
lionagi/protocols/action/tool.py,sha256=_o7rLokD3poupqst6YoQqEC6RvePDueySoVrGK2S538,5850
|
114
114
|
lionagi/protocols/forms/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
115
115
|
lionagi/protocols/forms/base.py,sha256=1J8UU2LXm1Lax5McJos0xjZTzMVLYQWd_hwtxI2wSuM,2838
|
@@ -197,7 +197,7 @@ lionagi/tools/base.py,sha256=hEGnE4MD0CM4UqnF0xsDRKB0aM-pyrTFHl8utHhyJLU,1897
|
|
197
197
|
lionagi/tools/types.py,sha256=XtJLY0m-Yi_ZLWhm0KycayvqMCZd--HxfQ0x9vFUYDE,230
|
198
198
|
lionagi/tools/file/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
199
199
|
lionagi/tools/file/reader.py,sha256=2YKgU3VKo76zfL_buDAUQJoPLC56f6WJ4_mdJjlMDIM,9509
|
200
|
-
lionagi-0.17.
|
201
|
-
lionagi-0.17.
|
202
|
-
lionagi-0.17.
|
203
|
-
lionagi-0.17.
|
200
|
+
lionagi-0.17.4.dist-info/METADATA,sha256=mVBP2MOOqq5vysEk8mmDMc76OpXbNuIFoqSYjBVyhDI,23432
|
201
|
+
lionagi-0.17.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
202
|
+
lionagi-0.17.4.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
|
203
|
+
lionagi-0.17.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|