agenta 0.13.5__py3-none-any.whl → 0.13.7__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.

@@ -9,13 +9,15 @@ from requests.exceptions import ConnectionError
9
9
  import click
10
10
  import questionary
11
11
  import toml
12
+
12
13
  from agenta.cli import helper
13
14
  from agenta.cli.telemetry import event_track
15
+ from agenta.client.backend.client import AgentaApi
16
+ from agenta.client.api import add_variant_to_server
14
17
  from agenta.client.api_models import AppVariant, Image
15
18
  from agenta.docker.docker_utils import build_tar_docker_container
19
+ from agenta.client.backend.types.variant_action import VariantActionEnum, VariantAction
16
20
 
17
- from agenta.client.api import add_variant_to_server
18
- from agenta.client.backend.client import AgentaApi
19
21
 
20
22
  BACKEND_URL_SUFFIX = os.environ.get("BACKEND_URL_SUFFIX", "api")
21
23
 
@@ -260,8 +262,11 @@ def start_variant(variant_id: str, app_folder: str, host: str):
260
262
  )
261
263
 
262
264
  endpoint = client.variants.start_variant(
263
- variant_id=variant_id, action={"action": "START"}
264
- )
265
+ variant_id=variant_id,
266
+ action=VariantAction(
267
+ action=VariantActionEnum.START,
268
+ ),
269
+ ).uri
265
270
  click.echo("\n" + click.style("Congratulations! 🎉", bold=True, fg="green"))
266
271
  click.echo(
267
272
  click.style("Your app has been deployed locally as an API. 🚀", fg="cyan")
@@ -25,6 +25,6 @@ def serialize_datetime(v: dt.datetime) -> str:
25
25
  if v.tzinfo is not None:
26
26
  return _serialize_zoned_datetime(v)
27
27
  else:
28
- local_tz = dt.datetime.now().astimezone().tzinfo
28
+ local_tz = dt.datetime.now(dt.timezone.utc).astimezone().tzinfo
29
29
  localized_dt = v.replace(tzinfo=local_tz)
30
30
  return _serialize_zoned_datetime(localized_dt)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agenta
3
- Version: 0.13.5
3
+ Version: 0.13.7
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
@@ -3,7 +3,7 @@ agenta/cli/evaluation_commands.py,sha256=fs6492tprPId9p8eGO02Xy-NCBm2RZNJLZWcUxu
3
3
  agenta/cli/helper.py,sha256=vRxHyeNaltzNIGrfU2vO0H28_rXDzx9QqIZ_S-W6zL4,6212
4
4
  agenta/cli/main.py,sha256=GgYu6UsrnHbqPV7zPlO14b61IyaDiTIjGMYQS9DlqC4,9551
5
5
  agenta/cli/telemetry.py,sha256=GaFFRsE_NtrcSSJ10r2jhgFs5Sk8gf2C09Ox3gOr3eU,1317
6
- agenta/cli/variant_commands.py,sha256=y1OQgdVAjqiGldgih1rORtuFqOytD4Ncuh-vMue3gik,16915
6
+ agenta/cli/variant_commands.py,sha256=jmkq9eyoBYP2YxLg2lxyuD3Vo5cPx8dJXgD8pMJ5ejE,17066
7
7
  agenta/cli/variant_configs.py,sha256=PLiuMKadVzs6Gi2uYaT0pZzyULNHDXaTMDWboqpwWdU,1293
8
8
  agenta/client/Readme.md,sha256=zWJ6VMYCG124op5RcqgWBdJdlGkGQ2rPLk9F32rWvqo,2756
9
9
  agenta/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -14,7 +14,7 @@ agenta/client/backend/client.py,sha256=UvNYKUplPdK1AkFfRsOdyEI7hoTqNCtD_pKlkgtUG
14
14
  agenta/client/backend/core/__init__.py,sha256=QJS3CJ2TYP2E1Tge0CS6Z7r8LTNzJHQVX1hD3558eP0,519
15
15
  agenta/client/backend/core/api_error.py,sha256=TtMtCdxXjd7Tasc9c8ooFg124nPrb2MXG-tKOXV4u9I,440
16
16
  agenta/client/backend/core/client_wrapper.py,sha256=kQEqxdm31r7V9x--mMliWOdMujD3dtPZyYBNzxgNdrs,972
17
- agenta/client/backend/core/datetime_utils.py,sha256=BHjt_H3WVslcuPsr6qjJoVif_SsdLvFN0c43ABE5UiQ,1069
17
+ agenta/client/backend/core/datetime_utils.py,sha256=mUJuPkR1NvgxXf7111zB62HSRCuhBlH4M6C4BShYXYc,1084
18
18
  agenta/client/backend/core/jsonable_encoder.py,sha256=ePEZ-ty4uISZv_wVpA7ldkdLfwoQ4lPXHwhLUEcVKR0,3825
19
19
  agenta/client/backend/core/remove_none_from_dict.py,sha256=8m91FC3YuVem0Gm9_sXhJ2tGvP33owJJdrqCLEdowGw,330
20
20
  agenta/client/backend/errors/__init__.py,sha256=pbbVUFtB9LCocA1RMWMMF_RKjsy5YkOKX5BAuE49w6g,170
@@ -155,7 +155,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
155
155
  agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
156
156
  agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
157
157
  agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
158
- agenta-0.13.5.dist-info/METADATA,sha256=hdVqMkI-4v8TZWYA_yZHc7kntCW7VH4NJ_SGfcx1-gM,26431
159
- agenta-0.13.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
160
- agenta-0.13.5.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
161
- agenta-0.13.5.dist-info/RECORD,,
158
+ agenta-0.13.7.dist-info/METADATA,sha256=YEDnJ0_e1mvclbQJduXLPJzGD5kYh5L-XVAZ9-N9EX8,26431
159
+ agenta-0.13.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
160
+ agenta-0.13.7.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
161
+ agenta-0.13.7.dist-info/RECORD,,