agenta 0.19.6__py3-none-any.whl → 0.19.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.

@@ -139,7 +139,7 @@ def add_variant(
139
139
 
140
140
  except Exception as ex:
141
141
  click.echo(click.style(f"Error while building image: {ex}", fg="red"))
142
- return None
142
+ raise
143
143
  try:
144
144
  if overwrite:
145
145
  click.echo(
@@ -166,7 +166,7 @@ def add_variant(
166
166
  click.echo(click.style(f"Error while updating variant: {ex}", fg="red"))
167
167
  else:
168
168
  click.echo(click.style(f"Error while adding variant: {ex}", fg="red"))
169
- return None
169
+ raise
170
170
 
171
171
  agenta_dir = Path.home() / ".agenta"
172
172
  global_toml_file = toml.load(agenta_dir / "config.toml")
@@ -461,28 +461,28 @@ def serve_cli(ctx, app_folder: str, file_name: str, overwrite: bool):
461
461
  error_msg += "or\n"
462
462
  error_msg += ">>> agenta variant serve <filename>.py"
463
463
  click.echo(click.style(f"{error_msg}", fg="red"))
464
- sys.exit(0)
464
+ sys.exit(1)
465
465
 
466
466
  try:
467
467
  config_check(app_folder)
468
468
  except Exception as e:
469
469
  click.echo(click.style("Failed during configuration check.", fg="red"))
470
470
  click.echo(click.style(f"Error message: {str(e)}", fg="red"))
471
- return
471
+ sys.exit(1)
472
472
 
473
473
  try:
474
474
  host = get_host(app_folder)
475
475
  except Exception as e:
476
476
  click.echo(click.style("Failed to retrieve the host.", fg="red"))
477
477
  click.echo(click.style(f"Error message: {str(e)}", fg="red"))
478
- return
478
+ sys.exit(1)
479
479
 
480
480
  try:
481
481
  api_key = helper.get_global_config("api_key")
482
482
  except Exception as e:
483
483
  click.echo(click.style("Failed to retrieve the api key.", fg="red"))
484
484
  click.echo(click.style(f"Error message: {str(e)}", fg="red"))
485
- return
485
+ sys.exit(1)
486
486
 
487
487
  try:
488
488
  variant_id = add_variant(
@@ -491,7 +491,7 @@ def serve_cli(ctx, app_folder: str, file_name: str, overwrite: bool):
491
491
  except Exception as e:
492
492
  click.echo(click.style("Failed to add variant.", fg="red"))
493
493
  click.echo(click.style(f"Error message: {str(e)}", fg="red"))
494
- return
494
+ sys.exit(1)
495
495
 
496
496
  if variant_id:
497
497
  try:
@@ -503,9 +503,11 @@ def serve_cli(ctx, app_folder: str, file_name: str, overwrite: bool):
503
503
  "- Second, try restarting the containers (if using Docker Compose)."
504
504
  )
505
505
  click.echo(click.style(f"{error_msg}", fg="red"))
506
+ sys.exit(1)
506
507
  except Exception as e:
507
508
  click.echo(click.style("Failed to start container with LLM app.", fg="red"))
508
509
  click.echo(click.style(f"Error message: {str(e)}", fg="red"))
510
+ sys.exit(1)
509
511
 
510
512
 
511
513
  @variant.command(name="list")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agenta
3
- Version: 0.19.6
3
+ Version: 0.19.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=Wz0ODhoeKK3Qg_CFUhu6D909szk05tc8ZVBB6H1-w7k,9763
5
5
  agenta/cli/telemetry.py,sha256=GaFFRsE_NtrcSSJ10r2jhgFs5Sk8gf2C09Ox3gOr3eU,1317
6
- agenta/cli/variant_commands.py,sha256=NjTXOMaJWyZtwtJiU7Ldl47jTYeC7-vktar1GNO6FVY,17294
6
+ agenta/cli/variant_commands.py,sha256=u2ThjbnE6qnNxNm1vZIXWHfHc-0JPmYnJ-AqpwtM8Ns,17350
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
@@ -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.19.6.dist-info/METADATA,sha256=9tRG-XDUvW0HDdCk7pM7SwjPRdJ5Y2_w4_ON3ikinKQ,26460
165
- agenta-0.19.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
166
- agenta-0.19.6.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
167
- agenta-0.19.6.dist-info/RECORD,,
164
+ agenta-0.19.7.dist-info/METADATA,sha256=-YR2GnRdvGhssiPUE5mqmorr77ZaWarqPT2mckUxMHg,26460
165
+ agenta-0.19.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
166
+ agenta-0.19.7.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
167
+ agenta-0.19.7.dist-info/RECORD,,