agenta 0.14.9__py3-none-any.whl → 0.14.11__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
@@ -78,9 +78,15 @@ def cli():
78
78
 
79
79
 
80
80
  @click.command()
81
- @click.option("--app_name", default="")
82
- @click.option("--backend_host", default="")
83
- def init(app_name: str, backend_host: str):
81
+ @click.option("--app-name", "--app_name", default=None)
82
+ @click.option("--backend-host", "backend_host", default=None)
83
+ @click.option(
84
+ "--organisation-name",
85
+ "organisation_name",
86
+ default=None,
87
+ help="The name of the organisation",
88
+ )
89
+ def init(app_name: str, backend_host: str, organisation_name: str):
84
90
  init_option = "Blank App" if backend_host != "" and app_name != "" else ""
85
91
  """Initialize a new Agenta app with the template files."""
86
92
 
@@ -169,28 +175,26 @@ def init(app_name: str, backend_host: str):
169
175
  click.echo(click.style(f"Error: {ex}", fg="red"))
170
176
  sys.exit(1)
171
177
 
172
- filtered_org = None
178
+ organization = None
179
+ organization_choices = {}
173
180
  if where_question == "On agenta cloud":
174
- which_organization = questionary.select(
175
- "Which organization do you want to create the app for?",
176
- choices=[
177
- f"{org.name}: {org.description}" for org in user_organizations
178
- ],
179
- ).ask()
180
- filtered_org = next(
181
- (
182
- org
183
- for org in user_organizations
184
- if org.name == which_organization.split(":")[0]
185
- ),
186
- None,
187
- )
181
+ if not organisation_name:
182
+ organization_choices = {
183
+ f"{org.name}": org for org in user_organizations
184
+ }
185
+ which_organization = questionary.select(
186
+ "Which organization do you want to create the app for?",
187
+ choices=list(organization_choices.keys()),
188
+ ).ask()
189
+ organisation_name = which_organization
190
+
191
+ organization = organization_choices.get(organisation_name)
188
192
 
189
193
  # Get app_id after creating new app in the backend server
190
194
  try:
191
195
  app_id = client.apps.create_app(
192
196
  app_name=app_name,
193
- organization_id=filtered_org.id if filtered_org else None,
197
+ organization_id=organization.id if organization else None,
194
198
  ).app_id
195
199
  except Exception as ex:
196
200
  click.echo(click.style(f"Error: {ex}", fg="red"))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agenta
3
- Version: 0.14.9
3
+ Version: 0.14.11
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
@@ -17,17 +17,17 @@ Classifier: Programming Language :: Python :: 3.12
17
17
  Classifier: Topic :: Software Development :: Libraries
18
18
  Requires-Dist: cachetools (>=5.3.3,<6.0.0)
19
19
  Requires-Dist: click (>=8.1.3,<9.0.0)
20
- Requires-Dist: docker (>=6.1.1,<7.0.0)
20
+ Requires-Dist: docker (>=6.1.1,<8.0.0)
21
21
  Requires-Dist: fastapi (>=0.96.1)
22
22
  Requires-Dist: httpx (>=0.24,<0.28)
23
- Requires-Dist: importlib-metadata (>=6.7.0,<7.0.0)
23
+ Requires-Dist: importlib-metadata (>=6.7,<8.0)
24
24
  Requires-Dist: ipdb (>=0.13)
25
25
  Requires-Dist: posthog (>=3.1.0,<4.0.0)
26
- Requires-Dist: pydantic (==1.10.13)
26
+ Requires-Dist: pydantic (==2.7.1)
27
27
  Requires-Dist: pymongo (>=4.6.3,<5.0.0)
28
28
  Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
29
- Requires-Dist: python-multipart (>=0.0.6,<0.0.7)
30
- Requires-Dist: questionary (>=1.10.0,<2.0.0)
29
+ Requires-Dist: python-multipart (>=0.0.6,<0.0.10)
30
+ Requires-Dist: questionary (>=1.10,<3.0)
31
31
  Requires-Dist: toml (>=0.10.2,<0.11.0)
32
32
  Project-URL: Documentation, https://docs.agenta.ai
33
33
  Project-URL: Repository, https://github.com/agenta-ai/agenta
@@ -1,7 +1,7 @@
1
1
  agenta/__init__.py,sha256=rCZ-mUOGnyKQpfWQFzXIEFX7KBlGC3qFMighdIVJgDc,610
2
2
  agenta/cli/evaluation_commands.py,sha256=fs6492tprPId9p8eGO02Xy-NCBm2RZNJLZWcUxugwd8,474
3
3
  agenta/cli/helper.py,sha256=vRxHyeNaltzNIGrfU2vO0H28_rXDzx9QqIZ_S-W6zL4,6212
4
- agenta/cli/main.py,sha256=GgYu6UsrnHbqPV7zPlO14b61IyaDiTIjGMYQS9DlqC4,9551
4
+ agenta/cli/main.py,sha256=Wz0ODhoeKK3Qg_CFUhu6D909szk05tc8ZVBB6H1-w7k,9763
5
5
  agenta/cli/telemetry.py,sha256=GaFFRsE_NtrcSSJ10r2jhgFs5Sk8gf2C09Ox3gOr3eU,1317
6
6
  agenta/cli/variant_commands.py,sha256=NjTXOMaJWyZtwtJiU7Ldl47jTYeC7-vktar1GNO6FVY,17294
7
7
  agenta/cli/variant_configs.py,sha256=PLiuMKadVzs6Gi2uYaT0pZzyULNHDXaTMDWboqpwWdU,1293
@@ -156,7 +156,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
156
156
  agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
157
157
  agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
158
158
  agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
159
- agenta-0.14.9.dist-info/METADATA,sha256=JBzRr2tL4Kd0hk_DB9ZuUKW2uo0Re2I4eHPhvbxWLOU,26470
160
- agenta-0.14.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
161
- agenta-0.14.9.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
162
- agenta-0.14.9.dist-info/RECORD,,
159
+ agenta-0.14.11.dist-info/METADATA,sha256=Ig0ev8jVPvF10em9VlBelzaneqzy6dkO0SKeJyOVPtc,26462
160
+ agenta-0.14.11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
161
+ agenta-0.14.11.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
162
+ agenta-0.14.11.dist-info/RECORD,,