agenta 0.20.0a6__py3-none-any.whl → 0.20.0a7__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.

@@ -12,6 +12,7 @@ import functools
12
12
  from pathlib import Path
13
13
  from tempfile import NamedTemporaryFile
14
14
  from typing import Any, Callable, Dict, Optional, Tuple, List
15
+ from importlib.metadata import version
15
16
 
16
17
  from fastapi.middleware.cors import CORSMiddleware
17
18
  from fastapi import Body, FastAPI, UploadFile, HTTPException
@@ -119,6 +120,8 @@ class entrypoint(BaseDecorator):
119
120
  routes = list()
120
121
 
121
122
  def __init__(self, func: Callable[..., Any], route_path=""):
123
+ print(f"Using Agenta Python SDK version {version("agenta")}")
124
+
122
125
  DEFAULT_PATH = "generate"
123
126
  PLAYGROUND_PATH = "/playground"
124
127
  RUN_PATH = "/run"
@@ -233,9 +236,6 @@ class entrypoint(BaseDecorator):
233
236
  params=route["params"],
234
237
  )
235
238
  ### ---------------------- #
236
-
237
- print(entrypoint.routes)
238
-
239
239
  if self.is_main_script(func) and route_path == "":
240
240
  self.handle_terminal_run(
241
241
  func,
@@ -293,6 +293,8 @@ class entrypoint(BaseDecorator):
293
293
  For synchronous functions, it calls them directly, while for asynchronous functions,
294
294
  it awaits their execution.
295
295
  """
296
+ print(f"Using Agenta Python SDK version {version("agenta")}")
297
+
296
298
  WAIT_FOR_SPANS = True
297
299
  TIMEOUT = 10
298
300
  TIMESTEP = 0.01
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agenta
3
- Version: 0.20.0a6
3
+ Version: 0.20.0a7
4
4
  Summary: The SDK for agenta is an open-source LLMOps platform.
5
5
  Home-page: https://agenta.ai
6
6
  Keywords: LLMOps,LLM,evaluation,prompt engineering
@@ -131,7 +131,7 @@ agenta/sdk/agenta_init.py,sha256=8MfDuypxohd0qRTdtGjX7L17KW-1UGmzNVdiqF15_ak,979
131
131
  agenta/sdk/client.py,sha256=trKyBOYFZRk0v5Eptxvh87yPf50Y9CqY6Qgv4Fy-VH4,2142
132
132
  agenta/sdk/context.py,sha256=q-PxL05-I84puunUAs9LGsffEXcYhDxhQxjuOz2vK90,901
133
133
  agenta/sdk/decorators/base.py,sha256=9aNdX5h8a2mFweuhdO-BQPwXGKY9ONPIdLRhSGAGMfY,217
134
- agenta/sdk/decorators/llm_entrypoint.py,sha256=eqULCHRjWGCL3fRHdi57jj6FYRyJbyG-F2Yc89OljRI,28069
134
+ agenta/sdk/decorators/llm_entrypoint.py,sha256=qDeF_gF56N6DAOlBMsVopIysQBVUryiMqoaREZVSGoQ,28219
135
135
  agenta/sdk/decorators/tracing.py,sha256=TwzhG3ZoyvmS1hCy3Z4S_6ZJGu1J_WHHgZm8Lc9Vkes,4371
136
136
  agenta/sdk/router.py,sha256=0sbajvn5C7t18anH6yNo7-oYxldHnYfwcbmQnIXBePw,269
137
137
  agenta/sdk/tracing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -161,7 +161,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
161
161
  agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
162
162
  agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
163
163
  agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
164
- agenta-0.20.0a6.dist-info/METADATA,sha256=jBR7yXq32FFCBphVVKQeGXHMoxWptrqIRfPq5oiL5Zg,26462
165
- agenta-0.20.0a6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
166
- agenta-0.20.0a6.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
167
- agenta-0.20.0a6.dist-info/RECORD,,
164
+ agenta-0.20.0a7.dist-info/METADATA,sha256=-pT_Y1st3cxLOpj5H6VBO9-dzNNmZ-sPUzvc98qa0_Y,26462
165
+ agenta-0.20.0a7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
166
+ agenta-0.20.0a7.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
167
+ agenta-0.20.0a7.dist-info/RECORD,,