agenta 0.10.1__py3-none-any.whl → 0.10.2__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.
Potentially problematic release.
This version of agenta might be problematic. Click here for more details.
- agenta/sdk/agenta_init.py +10 -5
- {agenta-0.10.1.dist-info → agenta-0.10.2.dist-info}/METADATA +1 -1
- {agenta-0.10.1.dist-info → agenta-0.10.2.dist-info}/RECORD +5 -5
- {agenta-0.10.1.dist-info → agenta-0.10.2.dist-info}/WHEEL +0 -0
- {agenta-0.10.1.dist-info → agenta-0.10.2.dist-info}/entry_points.txt +0 -0
agenta/sdk/agenta_init.py
CHANGED
|
@@ -75,16 +75,21 @@ class AgentaSingleton:
|
|
|
75
75
|
)
|
|
76
76
|
else:
|
|
77
77
|
try:
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
apps = client.list_apps(app_name=app_name)
|
|
79
|
+
if len(apps) == 0:
|
|
80
|
+
raise APIRequestError(f"App with name {app_name} not found")
|
|
80
81
|
|
|
82
|
+
app_id = apps[0].app_id
|
|
81
83
|
if not app_id:
|
|
82
84
|
raise APIRequestError(
|
|
83
85
|
f"App with name {app_name} does not exist on the server."
|
|
84
86
|
)
|
|
85
87
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
bases = client.list_bases(app_id=app_id, base_name=base_name)
|
|
89
|
+
if len(bases) == 0:
|
|
90
|
+
raise APIRequestError(f"No base was found for the app {app_id}")
|
|
91
|
+
|
|
92
|
+
base_id = bases[0].base_id
|
|
88
93
|
except Exception as ex:
|
|
89
94
|
raise APIRequestError(
|
|
90
95
|
f"Failed to get base id and/or app_id from the server with error: {ex}"
|
|
@@ -171,7 +176,7 @@ class Config:
|
|
|
171
176
|
+ str(ex)
|
|
172
177
|
)
|
|
173
178
|
try:
|
|
174
|
-
self.set(**config
|
|
179
|
+
self.set(**config.parameters)
|
|
175
180
|
except Exception as ex:
|
|
176
181
|
logger.warning("Failed to set the configuration with error: " + str(ex))
|
|
177
182
|
|
|
@@ -86,7 +86,7 @@ agenta/docker/docker-assets/main.py,sha256=BbmbFByRQ8MzL8402pJryEF34t6ba1i_JrMtW
|
|
|
86
86
|
agenta/docker/docker_utils.py,sha256=gtwD0XZ_1Vk-rzNUYctlnRjZPpn01mX7tYvaNK7o7OQ,3542
|
|
87
87
|
agenta/sdk/__init__.py,sha256=TUTEndClnM2SKeQsC7Swv_K3uWkBZTd7jYKvp2-tQeY,565
|
|
88
88
|
agenta/sdk/agenta_decorator.py,sha256=B0tQCBsbSUFfdo1Ibadd0MPQCN7xdGtBcTurmsclL6U,15429
|
|
89
|
-
agenta/sdk/agenta_init.py,sha256=
|
|
89
|
+
agenta/sdk/agenta_init.py,sha256=67THCATEW_oC8juCzdS-AouirksuXouyrRPyuUkLFxw,8025
|
|
90
90
|
agenta/sdk/context.py,sha256=q-PxL05-I84puunUAs9LGsffEXcYhDxhQxjuOz2vK90,901
|
|
91
91
|
agenta/sdk/router.py,sha256=0sbajvn5C7t18anH6yNo7-oYxldHnYfwcbmQnIXBePw,269
|
|
92
92
|
agenta/sdk/types.py,sha256=GiUiXDkbM2pMx1-mldzQT8uDUcm9sRqVUytThEkbjj4,4658
|
|
@@ -108,7 +108,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
|
|
|
108
108
|
agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
|
|
109
109
|
agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
|
|
110
110
|
agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
|
|
111
|
-
agenta-0.10.
|
|
112
|
-
agenta-0.10.
|
|
113
|
-
agenta-0.10.
|
|
114
|
-
agenta-0.10.
|
|
111
|
+
agenta-0.10.2.dist-info/METADATA,sha256=EOO3EgKztl8qTAHATQwW4IjsyoDxREGmc50ygS0vWc8,27296
|
|
112
|
+
agenta-0.10.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
113
|
+
agenta-0.10.2.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
|
|
114
|
+
agenta-0.10.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|