agenta 0.13.5__py3-none-any.whl → 0.13.6__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")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agenta
3
- Version: 0.13.5
3
+ Version: 0.13.6
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
@@ -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.6.dist-info/METADATA,sha256=rOruaS6mqnSa17zv1nB0no6GPw_jZzoQNLFPUujtkO8,26431
159
+ agenta-0.13.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
160
+ agenta-0.13.6.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
161
+ agenta-0.13.6.dist-info/RECORD,,