agenta 0.63.2__py3-none-any.whl → 0.65.0__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.
@@ -13,6 +13,7 @@ class ProjectsResponse(UniversalBaseModel):
13
13
  workspace_name: typing.Optional[str] = None
14
14
  project_id: str
15
15
  project_name: str
16
+ is_default_project: bool = False
16
17
  user_role: typing.Optional[str] = None
17
18
  is_demo: typing.Optional[bool] = None
18
19
 
@@ -124,11 +124,10 @@ async def aclose(
124
124
  async def aurl(
125
125
  *,
126
126
  run_id: UUID,
127
- ) -> str:
127
+ ) -> Optional[str]:
128
128
  response = authed_api()(
129
129
  method="GET",
130
- endpoint=f"/projects",
131
- params={"scope": "project"},
130
+ endpoint=f"/projects/current",
132
131
  )
133
132
 
134
133
  try:
@@ -137,10 +136,10 @@ async def aurl(
137
136
  print(response.text)
138
137
  raise
139
138
 
140
- if len(response.json()) != 1:
141
- return None
139
+ project_info = response.json()
142
140
 
143
- project_info = response.json()[0]
141
+ if not project_info:
142
+ return None
144
143
 
145
144
  workspace_id = project_info.get("workspace_id")
146
145
  project_id = project_info.get("project_id")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agenta
3
- Version: 0.63.2
3
+ Version: 0.65.0
4
4
  Summary: The SDK for agenta is an open-source LLMOps platform.
5
5
  Keywords: LLMOps,LLM,evaluation,prompt engineering
6
6
  Author: Mahmoud Mabrouk
@@ -15,29 +15,23 @@ Classifier: Programming Language :: Python :: 3.13
15
15
  Classifier: Programming Language :: Python :: 3.14
16
16
  Classifier: Programming Language :: Python :: 3.9
17
17
  Classifier: Topic :: Software Development :: Libraries
18
- Requires-Dist: decorator (>=5.2.1,<6.0.0)
19
- Requires-Dist: fastapi (>=0.116.0,<0.117.0)
20
- Requires-Dist: google-auth (>=2.23,<3)
21
- Requires-Dist: h11 (>=0.16.0,<0.17.0)
22
- Requires-Dist: httpx (>=0.28.0,<0.29.0)
23
- Requires-Dist: huggingface-hub (<0.31.0)
24
- Requires-Dist: importlib-metadata (>=8.0.0,<9.0)
25
- Requires-Dist: jinja2 (>=3.1.6,<4.0.0)
26
- Requires-Dist: litellm (==1.78.7)
27
- Requires-Dist: openai (>=1.106.0)
28
- Requires-Dist: opentelemetry-api (>=1.27.0,<2.0.0)
29
- Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1.27.0,<2.0.0)
30
- Requires-Dist: opentelemetry-instrumentation (>=0.56b0)
31
- Requires-Dist: opentelemetry-sdk (>=1.27.0,<2.0.0)
18
+ Requires-Dist: fastapi (>=0.122,<0.123)
19
+ Requires-Dist: httpx (>=0.28,<0.29)
20
+ Requires-Dist: importlib-metadata (>=8,<9)
21
+ Requires-Dist: jinja2 (>=3,<4)
22
+ Requires-Dist: litellm (>=1,<2)
23
+ Requires-Dist: openai (>=2,<3)
24
+ Requires-Dist: opentelemetry-api (>=1,<2)
25
+ Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1,<2)
26
+ Requires-Dist: opentelemetry-instrumentation (>=0.59b0,<0.60)
27
+ Requires-Dist: opentelemetry-sdk (>=1,<2)
32
28
  Requires-Dist: pydantic (>=2,<3)
33
- Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
34
- Requires-Dist: python-jsonpath (>=2.0.0,<3.0.0)
35
- Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
36
- Requires-Dist: restrictedpython (>=8.0,<9.0) ; python_version >= "3.11" and python_version < "3.14"
37
- Requires-Dist: starlette (>=0.47.0,<0.48.0)
38
- Requires-Dist: structlog (>=25.2.0,<26.0.0)
39
- Requires-Dist: tiktoken (==0.11.0)
40
- Requires-Dist: toml (>=0.10.2,<0.11.0)
29
+ Requires-Dist: python-dotenv (>=1,<2)
30
+ Requires-Dist: python-jsonpath (>=2,<3)
31
+ Requires-Dist: pyyaml (>=6,<7)
32
+ Requires-Dist: restrictedpython (>=8,<9) ; python_version >= "3.11" and python_version < "3.14"
33
+ Requires-Dist: structlog (>=25,<26)
34
+ Requires-Dist: toml (>=0.10,<0.11)
41
35
  Project-URL: Documentation, https://agenta.ai/docs/
42
36
  Project-URL: Homepage, https://agenta.ai
43
37
  Project-URL: Repository, https://github.com/agenta-ai/agenta
@@ -224,7 +224,7 @@ agenta/client/backend/types/plan.py,sha256=_285lMKz5ehwET6j8JM11WlrC_J1HaMSTNwLy
224
224
  agenta/client/backend/types/project_membership_request.py,sha256=iNu9ahVXguMOD4d-FGBy7Nk27PlGBLtqFwPlja6WAe4,679
225
225
  agenta/client/backend/types/project_request.py,sha256=8AHeu6Cta61Xtj8bnAdmmRN9OpZHssPNHTdwgPblyPk,679
226
226
  agenta/client/backend/types/project_scope.py,sha256=i8bwPAsuFMPcAalpN_GBnoAdvMwb5n5IosD8FjOk6no,729
227
- agenta/client/backend/types/projects_response.py,sha256=Ek-oRlJCfn6o3A_uWPXivpml0H_mQXjQ6BXNVWVGQTk,852
227
+ agenta/client/backend/types/projects_response.py,sha256=jjG6_i_Zcx0ioUhvKT0tflxy6ZSDykHalCERJ4NpAmw,889
228
228
  agenta/client/backend/types/recursive_types.py,sha256=vhXwrFzfA5qsalENaVy5dLUEUS3dv8UIet88WNwBGbE,910
229
229
  agenta/client/backend/types/reference.py,sha256=fU39dioX8RdqbGK-Y-4sb0zOcgf5Hv03wadOLkwEWTA,923
230
230
  agenta/client/backend/types/reference_dto.py,sha256=P-qyS63Sn1Ih5cz_ayzJe36UqkKEp6gRNX96kWh0EG8,690
@@ -340,7 +340,7 @@ agenta/sdk/evaluations/preview/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
340
340
  agenta/sdk/evaluations/preview/evaluate.py,sha256=fUVVsGlSwpdE97e2iCnGJKyHi-DeZzZwDedTEmgSyY8,27450
341
341
  agenta/sdk/evaluations/preview/utils.py,sha256=o-9GvQDhLgnbQ81r8A9zj49BDtd9Pe5_oJlO9ay_qTg,32049
342
342
  agenta/sdk/evaluations/results.py,sha256=3pe2c0oI1Wc1wFCKFeQnbe_iwtNn9U0MO_c4U3HtrAs,1590
343
- agenta/sdk/evaluations/runs.py,sha256=Hp6uxPI9HDu35ZtOoL-_xt53CvCjtbaxe4c3CGyJH-A,3429
343
+ agenta/sdk/evaluations/runs.py,sha256=8euS2Zfzcw9a7SDOnhK4DymuYNIjIXQ1iWlRuuf0q78,3398
344
344
  agenta/sdk/evaluations/scenarios.py,sha256=XlsVa_M8FmnSvVniF_FEZUhZDLYIotx4V0SRmPEzWS8,1024
345
345
  agenta/sdk/litellm/__init__.py,sha256=Bpz1gfHQc0MN1yolWcjifLWznv6GjHggvRGQSpxpihM,37
346
346
  agenta/sdk/litellm/litellm.py,sha256=E7omr9kz0yn8CUK5O0g0QUlDA4bD5fllYtHK9RL2bXE,10646
@@ -416,6 +416,6 @@ agenta/sdk/workflows/handlers.py,sha256=z_DtfgiejsToO4kqXvXBnO36hd0rk97Y2J2hYlIf
416
416
  agenta/sdk/workflows/interfaces.py,sha256=I5Bfil0awdL1TAb_vHqW5n5BHxSBOTuDMhOi4RnUt8A,36315
417
417
  agenta/sdk/workflows/sandbox.py,sha256=pzy5mdNDjBAQu1qFwMAxHirWiKX20mq2i7lrwA-ABjc,3816
418
418
  agenta/sdk/workflows/utils.py,sha256=UDG5or8qqiSCpqi0Fphjxkkhu4MdbiCkHn_yIQcTd0c,11664
419
- agenta-0.63.2.dist-info/METADATA,sha256=6xWqYfDrqOgIQ1XrtvnDYMjWkgWfL9aFqWAw_uUKDbM,31855
420
- agenta-0.63.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
421
- agenta-0.63.2.dist-info/RECORD,,
419
+ agenta-0.65.0.dist-info/METADATA,sha256=ra40-qrD1LG0M-Tzdl-P_NAa0ea7DXyqpR6IxUf8F_8,31528
420
+ agenta-0.65.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
421
+ agenta-0.65.0.dist-info/RECORD,,