agenta 0.12.4__py3-none-any.whl → 0.12.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.

agenta/cli/main.py CHANGED
@@ -153,18 +153,21 @@ def init(app_name: str, backend_host: str):
153
153
  try:
154
154
  key_prefix = api_key.split(".")[0]
155
155
  client.validate_api_key(key_prefix=key_prefix)
156
-
157
- # Make request to fetch user organizations after api key validation
156
+ except Exception as ex:
157
+ click.echo(
158
+ click.style(
159
+ f"Error: Unable to validate API key.\nError: {ex}", fg="red"
160
+ )
161
+ )
162
+ sys.exit(1)
163
+ # Make request to fetch user organizations after api key validation
164
+ try:
158
165
  organizations = client.list_organizations()
159
166
  if len(organizations) >= 1:
160
167
  user_organizations = organizations
161
168
  except Exception as ex:
162
- if ex.status_code == 401:
163
- click.echo(click.style("Error: Invalid API key", fg="red"))
164
- sys.exit(1)
165
- else:
166
- click.echo(click.style(f"Error: {ex}", fg="red"))
167
- sys.exit(1)
169
+ click.echo(click.style(f"Error: {ex}", fg="red"))
170
+ sys.exit(1)
168
171
 
169
172
  filtered_org = None
170
173
  if where_question == "On agenta cloud":
@@ -18,7 +18,7 @@ class AppVariantOutput(pydantic.BaseModel):
18
18
  variant_name: str
19
19
  parameters: typing.Optional[typing.Dict[str, typing.Any]]
20
20
  previous_variant_name: typing.Optional[str]
21
- organization_id: str
21
+ organization_id: typing.Optional[str]
22
22
  user_id: str
23
23
  base_name: str
24
24
  base_id: str
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agenta
3
- Version: 0.12.4
3
+ Version: 0.12.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
@@ -1,7 +1,7 @@
1
1
  agenta/__init__.py,sha256=Sg_4PW8MM-r9p96FeqTdu1h7fcQzN4nF7KPuQD7lgIc,493
2
2
  agenta/cli/evaluation_commands.py,sha256=fs6492tprPId9p8eGO02Xy-NCBm2RZNJLZWcUxugwd8,474
3
3
  agenta/cli/helper.py,sha256=X_0GtjugLQiM_f53_l3AF3uPS8if96ejTh2nThYqLuE,6199
4
- agenta/cli/main.py,sha256=kSWLxVnjvpd_bqT-vMMHFRXRc53zUS_k5pLcvnVxaF4,9409
4
+ agenta/cli/main.py,sha256=jeTI0U1xeRwFv3QkJRwOXWVK13V9t3JEoApAk5VbAtA,9487
5
5
  agenta/cli/telemetry.py,sha256=GaFFRsE_NtrcSSJ10r2jhgFs5Sk8gf2C09Ox3gOr3eU,1317
6
6
  agenta/cli/variant_commands.py,sha256=wJCfTp1uNQwSadg4rraxZF5NUVfpfg_0RAK76qD5xDo,16858
7
7
  agenta/cli/variant_configs.py,sha256=PLiuMKadVzs6Gi2uYaT0pZzyULNHDXaTMDWboqpwWdU,1293
@@ -23,7 +23,7 @@ agenta/client/backend/types/__init__.py,sha256=4kxWtinbbNAmNGByicOnxy8hoscndlVbU
23
23
  agenta/client/backend/types/add_variant_from_base_and_config_response.py,sha256=DxAM5QXWoJhJN2mj1Lik1Uf_Vl8rT2K5j4ET03RP1WU,211
24
24
  agenta/client/backend/types/aggregated_result.py,sha256=8D3AXhLBhwegHRyPzAuo_eFuBsnLh7BptZt5z-VWZ8U,1083
25
25
  agenta/client/backend/types/app.py,sha256=PLCQN6kqpkAMpAZ2Tk5s1FesewOZmkMv18eASzQ14gg,974
26
- agenta/client/backend/types/app_variant_output.py,sha256=ec2KDbxiTd7eCWIBAM0VUva5ukUkrXFNxnplNr0pgy0,1268
26
+ agenta/client/backend/types/app_variant_output.py,sha256=LYzmwDwxKLr9B3hBRLJC7jCm9FuT8st9fPsDeyOtsSE,1285
27
27
  agenta/client/backend/types/app_variant_output_extended.py,sha256=hzPYdWfE6yHAMJtINAT23dOYwV87uD5p-W0jqmf74Bc,1394
28
28
  agenta/client/backend/types/app_variant_revision.py,sha256=FO3d6hPOqjz5uPSCk_9f2UipfkiIHKvK4jlpV84EWHo,1075
29
29
  agenta/client/backend/types/base_output.py,sha256=ynXhDBQKrkR6Lnkx-yv6Q8xW4wXmzXur0T-hzmkjBpc,983
@@ -108,7 +108,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
108
108
  agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
109
109
  agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
110
110
  agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
111
- agenta-0.12.4.dist-info/METADATA,sha256=cIynvVq0FLWCZ-8f_0T4DzShbK6mDb48R2s-hBLMoVg,27336
112
- agenta-0.12.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
113
- agenta-0.12.4.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
114
- agenta-0.12.4.dist-info/RECORD,,
111
+ agenta-0.12.6.dist-info/METADATA,sha256=Qj51sEqvl9Qg2gSnHwGR1hyn6rzxRqfaF9HFNMbdrq8,27336
112
+ agenta-0.12.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
113
+ agenta-0.12.6.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
114
+ agenta-0.12.6.dist-info/RECORD,,