lionagi 0.10.0__py3-none-any.whl → 0.10.1__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/libs/fields/file.py +12 -0
- lionagi/session/session.py +2 -6
- lionagi/version.py +1 -1
- {lionagi-0.10.0.dist-info → lionagi-0.10.1.dist-info}/METADATA +1 -1
- {lionagi-0.10.0.dist-info → lionagi-0.10.1.dist-info}/RECORD +7 -7
- {lionagi-0.10.0.dist-info → lionagi-0.10.1.dist-info}/WHEEL +0 -0
- {lionagi-0.10.0.dist-info → lionagi-0.10.1.dist-info}/licenses/LICENSE +0 -0
lionagi/libs/fields/file.py
CHANGED
@@ -5,6 +5,11 @@ from pydantic import BaseModel, Field, field_validator
|
|
5
5
|
from lionagi.models import FieldModel
|
6
6
|
|
7
7
|
|
8
|
+
class Source(BaseModel):
|
9
|
+
title: str | None = None
|
10
|
+
url: str | None = None
|
11
|
+
|
12
|
+
|
8
13
|
class File(BaseModel):
|
9
14
|
"""
|
10
15
|
Represents a generic file with an optional name, content, and brief description.
|
@@ -112,6 +117,13 @@ class Documentation(File):
|
|
112
117
|
"# API Reference\\n## Session Class\\n...",
|
113
118
|
],
|
114
119
|
)
|
120
|
+
sources: list[Source] | None = Field(
|
121
|
+
default=None,
|
122
|
+
description=(
|
123
|
+
"List of sources or references used to create this documentation. "
|
124
|
+
"Each source should include a title and URL to the original content."
|
125
|
+
),
|
126
|
+
)
|
115
127
|
|
116
128
|
|
117
129
|
FILE_FIELD = FieldModel(
|
lionagi/session/session.py
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
from collections.abc import Callable
|
6
6
|
from functools import partial
|
7
|
-
from typing import
|
7
|
+
from typing import Any
|
8
8
|
|
9
9
|
import pandas as pd
|
10
10
|
from pydantic import Field, JsonValue, model_validator
|
@@ -32,12 +32,8 @@ from lionagi.protocols.types import (
|
|
32
32
|
from .._errors import ItemNotFoundError
|
33
33
|
from ..service.imodel import iModel
|
34
34
|
from ..utils import lcall
|
35
|
+
from .branch import Branch
|
35
36
|
|
36
|
-
if TYPE_CHECKING:
|
37
|
-
from .branch import Branch
|
38
|
-
else:
|
39
|
-
# Forward reference to avoid circular import
|
40
|
-
Branch = ForwardRef("Branch")
|
41
37
|
msg_pile = partial(pile, item_type={RoledMessage}, strict_type=False)
|
42
38
|
|
43
39
|
|
lionagi/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.10.
|
1
|
+
__version__ = "0.10.1"
|
@@ -4,7 +4,7 @@ lionagi/_errors.py,sha256=JlBTFJnRWtVYcRxKb7fWFiJHLbykl1E19mSJ8sXYVxg,455
|
|
4
4
|
lionagi/_types.py,sha256=Wo_bGC11sKRkxLwYKJNfX47EOWOpJWUWaPCRmIgf3II,31
|
5
5
|
lionagi/settings.py,sha256=W52mM34E6jXF3GyqCFzVREKZrmnUqtZm_BVDsUiDI_s,1627
|
6
6
|
lionagi/utils.py,sha256=yMqt3dwIpPd84FyaT2saVJRwYS-Z4m6yP3IzSPwIWpY,72451
|
7
|
-
lionagi/version.py,sha256=
|
7
|
+
lionagi/version.py,sha256=v7Gyp89umFzDtY45tTjCdXqZnQ2RN01AibdYNxEvxYo,23
|
8
8
|
lionagi/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
lionagi/adapters/adapter.py,sha256=aW7s1OKAdxHd8HBv2UcThn-r2Q08EyArssNyFobMLuA,3357
|
10
10
|
lionagi/adapters/json_adapter.py,sha256=EJj0Jev46ZhU3ZMnlYwyzN2rLxjLCVrMDpHkEuggBvk,4561
|
@@ -19,7 +19,7 @@ lionagi/libs/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
|
19
19
|
lionagi/libs/parse.py,sha256=JRS3bql0InHJqATnAatl-hQv4N--XXw4P77JHhTFnrc,1011
|
20
20
|
lionagi/libs/fields/__init__.py,sha256=S1DTFKZI7X1pYj1lDFiB3pQZvJF5U5wKdYYZYIJmK7E,757
|
21
21
|
lionagi/libs/fields/action.py,sha256=JFf77sbVfTBjTHm2uayE19pmiDrzdYOMmZwzOb4cDno,5851
|
22
|
-
lionagi/libs/fields/file.py,sha256=
|
22
|
+
lionagi/libs/fields/file.py,sha256=OwFi2uBX4BZdUXKSmkUFrtR0OzZOrYyQtWC4HCkXJQU,4467
|
23
23
|
lionagi/libs/fields/instruct.py,sha256=I91ePfwXZLbQuWxWF_rbVtqwvDSjtEALTWDBlIO_DtY,4827
|
24
24
|
lionagi/libs/fields/reason.py,sha256=dC6-L-xXRJ8L5eBPkinGmjHx1lxAjOiwEu6AE2Qwznc,1753
|
25
25
|
lionagi/libs/file/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
@@ -198,7 +198,7 @@ lionagi/service/providers/perplexity_/models.py,sha256=Fm5NbmWMdFkDKS0Cec__bNvs3
|
|
198
198
|
lionagi/session/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
199
199
|
lionagi/session/branch.py,sha256=izQcxLiF8A-C17mW9a_LNeOWwa3j4_ZcB-UKaNy5xvk,72699
|
200
200
|
lionagi/session/prompts.py,sha256=AhuHL19s0TijVZX3tMKUKMi6l88xeVdpkuEn2vJSRyU,3236
|
201
|
-
lionagi/session/session.py,sha256=
|
201
|
+
lionagi/session/session.py,sha256=4Rk5_DB9y-yaqyfQ9tHYOMUy_0HCgCoGqeSc2Y5riu0,9172
|
202
202
|
lionagi/tools/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
203
203
|
lionagi/tools/base.py,sha256=cld32pyjaTUdyiqZ8hNyJjWKAhcJ8RQNhgImI7R8b-E,1940
|
204
204
|
lionagi/tools/types.py,sha256=XtJLY0m-Yi_ZLWhm0KycayvqMCZd--HxfQ0x9vFUYDE,230
|
@@ -219,7 +219,7 @@ lionagi/tools/file/writer.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,
|
|
219
219
|
lionagi/tools/file/providers/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
220
220
|
lionagi/tools/file/providers/docling_.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
221
221
|
lionagi/tools/query/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
222
|
-
lionagi-0.10.
|
223
|
-
lionagi-0.10.
|
224
|
-
lionagi-0.10.
|
225
|
-
lionagi-0.10.
|
222
|
+
lionagi-0.10.1.dist-info/METADATA,sha256=cgOKWKtndEq9Qp5XrqvLpphaKNujWW7acadvEuTBPcc,18464
|
223
|
+
lionagi-0.10.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
224
|
+
lionagi-0.10.1.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
|
225
|
+
lionagi-0.10.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|