aient 1.2.8__py3-none-any.whl → 1.2.9__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.
- aient/architext/architext/core.py +6 -1
- {aient-1.2.8.dist-info → aient-1.2.9.dist-info}/METADATA +1 -1
- {aient-1.2.8.dist-info → aient-1.2.9.dist-info}/RECORD +6 -6
- {aient-1.2.8.dist-info → aient-1.2.9.dist-info}/WHEEL +0 -0
- {aient-1.2.8.dist-info → aient-1.2.9.dist-info}/licenses/LICENSE +0 -0
- {aient-1.2.8.dist-info → aient-1.2.9.dist-info}/top_level.txt +0 -0
@@ -101,7 +101,12 @@ class Texts(ContextProvider):
|
|
101
101
|
if text is None and name is None:
|
102
102
|
raise ValueError("Either 'text' or 'name' must be provided.")
|
103
103
|
|
104
|
-
|
104
|
+
# Ensure that non-callable inputs are treated as strings
|
105
|
+
if not callable(text):
|
106
|
+
self._text = str(text) if text is not None else None
|
107
|
+
else:
|
108
|
+
self._text = text
|
109
|
+
|
105
110
|
self._is_dynamic = callable(self._text)
|
106
111
|
|
107
112
|
if name is None:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
aient/__init__.py,sha256=SRfF7oDVlOOAi6nGKiJIUK6B_arqYLO9iSMp-2IZZps,21
|
2
2
|
aient/architext/architext/__init__.py,sha256=79Ih1151rfcqZdr7F8HSZSTs_iT2SKd1xCkehMsXeXs,19
|
3
|
-
aient/architext/architext/core.py,sha256=
|
3
|
+
aient/architext/architext/core.py,sha256=fZzP8_Kk8-o5Bji8Prfh8d0SXN9eQnA24OMCAVgcXKM,27344
|
4
4
|
aient/architext/test/openai_client.py,sha256=Dqtbmubv6vwF8uBqcayG0kbsiO65of7sgU2-DRBi-UM,4590
|
5
5
|
aient/architext/test/test.py,sha256=26cQXXwCcCAVruM-ouM7ng8BQcE-glgmfkGa_EhPDU4,59388
|
6
6
|
aient/architext/test/test_save_load.py,sha256=o8DqH6gDYZkFkQy-a7blqLtJTRj5e4a-Lil48pJ0V3g,3260
|
@@ -35,8 +35,8 @@ aient/plugins/write_file.py,sha256=Jt8fOEwqhYiSWpCbwfAr1xoi_BmFnx3076GMhuL06uI,3
|
|
35
35
|
aient/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
36
36
|
aient/utils/prompt.py,sha256=UcSzKkFE4-h_1b6NofI6xgk3GoleqALRKY8VBaXLjmI,11311
|
37
37
|
aient/utils/scripts.py,sha256=VqtK4RFEx7KxkmcqG3lFDS1DxoNlFFGErEjopVcc8IE,40974
|
38
|
-
aient-1.2.
|
39
|
-
aient-1.2.
|
40
|
-
aient-1.2.
|
41
|
-
aient-1.2.
|
42
|
-
aient-1.2.
|
38
|
+
aient-1.2.9.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
|
39
|
+
aient-1.2.9.dist-info/METADATA,sha256=Ul3tz50m3BEFUQA-8q5ZT_1MeTh6ozi2rPwmlNnRUgA,4841
|
40
|
+
aient-1.2.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
41
|
+
aient-1.2.9.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
|
42
|
+
aient-1.2.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|