agenta 0.28.2a2__py3-none-any.whl → 0.29.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.
Potentially problematic release.
This version of agenta might be problematic. Click here for more details.
- agenta/cli/main.py +2 -2
- agenta/sdk/decorators/routing.py +4 -0
- agenta/sdk/utils/helpers.py +8 -0
- {agenta-0.28.2a2.dist-info → agenta-0.29.0.dist-info}/METADATA +1 -1
- {agenta-0.28.2a2.dist-info → agenta-0.29.0.dist-info}/RECORD +7 -6
- {agenta-0.28.2a2.dist-info → agenta-0.29.0.dist-info}/WHEEL +0 -0
- {agenta-0.28.2a2.dist-info → agenta-0.29.0.dist-info}/entry_points.txt +0 -0
agenta/cli/main.py
CHANGED
|
@@ -47,9 +47,9 @@ def check_latest_version() -> Union[str, None]:
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
def notify_update(available_version: str):
|
|
50
|
-
import
|
|
50
|
+
import importlib.metadata
|
|
51
51
|
|
|
52
|
-
installed_version =
|
|
52
|
+
installed_version = importlib.metadata.version("agenta")
|
|
53
53
|
if available_version > installed_version:
|
|
54
54
|
click.echo(
|
|
55
55
|
click.style(
|
agenta/sdk/decorators/routing.py
CHANGED
|
@@ -18,6 +18,7 @@ from agenta.sdk.middleware.auth import AuthorizationMiddleware
|
|
|
18
18
|
from agenta.sdk.context.routing import routing_context_manager, routing_context
|
|
19
19
|
from agenta.sdk.context.tracing import tracing_context
|
|
20
20
|
from agenta.sdk.router import router
|
|
21
|
+
from agenta.sdk.utils import helpers
|
|
21
22
|
from agenta.sdk.utils.exceptions import suppress
|
|
22
23
|
from agenta.sdk.utils.logging import log
|
|
23
24
|
from agenta.sdk.types import (
|
|
@@ -287,6 +288,9 @@ class entrypoint:
|
|
|
287
288
|
app.openapi_schema = None # Forces FastAPI to re-generate the schema
|
|
288
289
|
openapi_schema = app.openapi()
|
|
289
290
|
|
|
291
|
+
# Inject the current version of the SDK into the openapi_schema
|
|
292
|
+
openapi_schema["agenta_sdk"] = {"version": helpers.get_current_version()}
|
|
293
|
+
|
|
290
294
|
for route in entrypoint.routes:
|
|
291
295
|
self.override_schema(
|
|
292
296
|
openapi_schema=openapi_schema,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
agenta/__init__.py,sha256=XXPgAjzPw5CXQpuQbDNpKRuoBL5X_YoobKeebjYHiSY,2101
|
|
2
2
|
agenta/cli/evaluation_commands.py,sha256=fs6492tprPId9p8eGO02Xy-NCBm2RZNJLZWcUxugwd8,474
|
|
3
3
|
agenta/cli/helper.py,sha256=P97HbNb_qzOyl5CM_MjAqWEBCdgebU6M81G_4UCmF1A,6288
|
|
4
|
-
agenta/cli/main.py,sha256=
|
|
4
|
+
agenta/cli/main.py,sha256=WJSp-kJ6j0bea64l5QJlnOPpLwTgNcN7Am4X2YZBP1A,7939
|
|
5
5
|
agenta/cli/telemetry.py,sha256=GaFFRsE_NtrcSSJ10r2jhgFs5Sk8gf2C09Ox3gOr3eU,1317
|
|
6
6
|
agenta/cli/variant_commands.py,sha256=HfKRZsajKOXwZD2OyzjSfNtSx1yI01wI1cfqpvoHETI,17400
|
|
7
7
|
agenta/cli/variant_configs.py,sha256=PLiuMKadVzs6Gi2uYaT0pZzyULNHDXaTMDWboqpwWdU,1293
|
|
@@ -181,7 +181,7 @@ agenta/sdk/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
|
181
181
|
agenta/sdk/context/routing.py,sha256=ycUgmJZyWhL4bHjKtUSAsTlt_0Fujr_6OpoaEH1lAN0,683
|
|
182
182
|
agenta/sdk/context/tracing.py,sha256=UmmW15UFFsvxS0myS6aD9wBk5iNepNlQi4tEQ_ejfYM,96
|
|
183
183
|
agenta/sdk/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
184
|
-
agenta/sdk/decorators/routing.py,sha256=
|
|
184
|
+
agenta/sdk/decorators/routing.py,sha256=LN9UJO30rJESnw3yokISKjYHbkiMmycbqa8jonEz5mM,36712
|
|
185
185
|
agenta/sdk/decorators/tracing.py,sha256=vL5e6TVX6TQwO0t9raZwnzXHV3vElVT0pHS1vD-vzEo,8523
|
|
186
186
|
agenta/sdk/litellm/__init__.py,sha256=Bpz1gfHQc0MN1yolWcjifLWznv6GjHggvRGQSpxpihM,37
|
|
187
187
|
agenta/sdk/litellm/litellm.py,sha256=Ke0It-jA1z0KQ2770gIlWIEgramZGmt1k0GjmpEnFV4,8793
|
|
@@ -208,6 +208,7 @@ agenta/sdk/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
|
208
208
|
agenta/sdk/utils/costs.py,sha256=i8C7ud__pThLS55XkN4YW8czXtGeXr2mx7jjcOFeiXg,5955
|
|
209
209
|
agenta/sdk/utils/exceptions.py,sha256=UPO5aqNkpxevE7I_gW6O2B0FbtqqwgQobp5b6RQy_Ik,2132
|
|
210
210
|
agenta/sdk/utils/globals.py,sha256=2HhyzWn55BbYNCZ3rT8dAxk1GGXuGQPbtq_THjaHbBw,372
|
|
211
|
+
agenta/sdk/utils/helpers.py,sha256=utrxDoELpR6QgFgHCEAWrWW4TYWXA10q72Gs5R78Ens,181
|
|
211
212
|
agenta/sdk/utils/logging.py,sha256=eFzEFuYpggfIhEKv09JZRqcDzkmZ482a_E2G-X0FK7Y,473
|
|
212
213
|
agenta/sdk/utils/preinit.py,sha256=YlJL7RLfel0R7DFp-jK7OV-z4ZIQJM0oupYlk7g8b5o,1278
|
|
213
214
|
agenta/sdk/utils/singleton.py,sha256=17Ph7LGnnV8HkPjImruKita2ni03Ari5jr0jqm__4sc,312
|
|
@@ -226,7 +227,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
|
|
|
226
227
|
agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
|
|
227
228
|
agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
|
|
228
229
|
agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
|
|
229
|
-
agenta-0.
|
|
230
|
-
agenta-0.
|
|
231
|
-
agenta-0.
|
|
232
|
-
agenta-0.
|
|
230
|
+
agenta-0.29.0.dist-info/METADATA,sha256=uOLDR3yhSz76rdYHC5gJqveqkpbqOheJb6exYHKPUeA,29042
|
|
231
|
+
agenta-0.29.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
232
|
+
agenta-0.29.0.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
|
|
233
|
+
agenta-0.29.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|