agenta 0.12.3__py3-none-any.whl → 0.12.5__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
@@ -83,6 +83,9 @@ def cli():
83
83
  def init(app_name: str, backend_host: str):
84
84
  init_option = "Blank App" if backend_host != "" and app_name != "" else ""
85
85
  """Initialize a new Agenta app with the template files."""
86
+
87
+ api_key = os.getenv("AGENTA_API_KEY")
88
+
86
89
  if not app_name:
87
90
  while True:
88
91
  app_name = questionary.text("Please enter the app name").ask()
@@ -125,7 +128,8 @@ def init(app_name: str, backend_host: str):
125
128
  else:
126
129
  backend_host = "https://cloud.agenta.ai"
127
130
 
128
- api_key = helper.get_api_key(backend_host)
131
+ if not api_key:
132
+ api_key = helper.get_api_key(backend_host)
129
133
 
130
134
  elif where_question is None: # User pressed Ctrl+C
131
135
  sys.exit(0)
@@ -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.3
3
+ Version: 0.12.5
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=suPOo0aKkwz4XIL_g5DEuzcGpUj-vBBBq0jYVPDh32g,9329
4
+ agenta/cli/main.py,sha256=kSWLxVnjvpd_bqT-vMMHFRXRc53zUS_k5pLcvnVxaF4,9409
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.3.dist-info/METADATA,sha256=S9ZgVrOO0YqSw7lVzINBRuOxeibNgRLIxlXpA60Jw9Q,27336
112
- agenta-0.12.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
113
- agenta-0.12.3.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
114
- agenta-0.12.3.dist-info/RECORD,,
111
+ agenta-0.12.5.dist-info/METADATA,sha256=YIhDd9UjBwKXoR9RRoSFnHt3cJxXZffhx22VZ93BGX8,27336
112
+ agenta-0.12.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
113
+ agenta-0.12.5.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
114
+ agenta-0.12.5.dist-info/RECORD,,