agenta 0.24.4__py3-none-any.whl → 0.25.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.

Potentially problematic release.


This version of agenta might be problematic. Click here for more details.

@@ -12,7 +12,7 @@ class AppVariantResponse(UniversalBaseModel):
12
12
  variant_id: str
13
13
  variant_name: str
14
14
  parameters: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
15
- user_id: str
15
+ project_id: str
16
16
  base_name: str
17
17
  base_id: str
18
18
  config_name: str
@@ -21,8 +21,6 @@ class AppVariantResponse(UniversalBaseModel):
21
21
  created_at: typing.Optional[str] = None
22
22
  updated_at: typing.Optional[str] = None
23
23
  modified_by_id: typing.Optional[str] = None
24
- organization_id: typing.Optional[str] = None
25
- workspace_id: typing.Optional[str] = None
26
24
 
27
25
  if IS_PYDANTIC_V2:
28
26
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
@@ -216,9 +216,11 @@ class entrypoint(BaseDecorator):
216
216
  {
217
217
  "func": func.__name__,
218
218
  "endpoint": route,
219
- "params": {**config_params, **func_signature.parameters}
220
- if not config
221
- else func_signature.parameters,
219
+ "params": (
220
+ {**config_params, **func_signature.parameters}
221
+ if not config
222
+ else func_signature.parameters
223
+ ),
222
224
  "config": config,
223
225
  }
224
226
  )
@@ -229,9 +231,11 @@ class entrypoint(BaseDecorator):
229
231
  {
230
232
  "func": func.__name__,
231
233
  "endpoint": route,
232
- "params": {**config_params, **func_signature.parameters}
233
- if not config
234
- else func_signature.parameters,
234
+ "params": (
235
+ {**config_params, **func_signature.parameters}
236
+ if not config
237
+ else func_signature.parameters
238
+ ),
235
239
  "config": config,
236
240
  }
237
241
  )
@@ -402,7 +406,7 @@ class entrypoint(BaseDecorator):
402
406
 
403
407
  # PATCH : if result is not a dict, make it a dict
404
408
  if not isinstance(result, dict):
405
- data = result
409
+ data = str(result)
406
410
  else:
407
411
  # PATCH : if result is a legacy dict, clean it up
408
412
  if (
@@ -410,7 +414,8 @@ class entrypoint(BaseDecorator):
410
414
  and "cost" in result.keys()
411
415
  and "usage" in result.keys()
412
416
  ):
413
- data = result["message"]
417
+ data = str(result["message"])
418
+
414
419
  # END OF PATH
415
420
 
416
421
  if data is None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agenta
3
- Version: 0.24.4
3
+ Version: 0.25.0
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
@@ -49,7 +49,7 @@ agenta/client/backend/types/__init__.py,sha256=khxcL80swPldYIYUzt2Tknzzk0PchL7Uj
49
49
  agenta/client/backend/types/aggregated_result.py,sha256=4WPjBzQSyPW-Q91XuBbtsicHtupzAFgnz065jpYVKi0,747
50
50
  agenta/client/backend/types/aggregated_result_evaluator_config.py,sha256=GzU358rxyXbiDvpf9i6LqSTaHuirZV8XoodAdPKi-uY,243
51
51
  agenta/client/backend/types/app.py,sha256=_6bnVodk9xT3xgeEbnxiOa_eDNSYWa_yBLJPQOoaU8k,588
52
- agenta/client/backend/types/app_variant_response.py,sha256=W9vjDWRph-utJfwKErMltwMX597tlN-_Z4c1YXd0n8w,1091
52
+ agenta/client/backend/types/app_variant_response.py,sha256=B1EmFbNs_tRZ1OxytAo3h9pQ1c4pN-BL0e-GFgfI-Yo,999
53
53
  agenta/client/backend/types/app_variant_revision.py,sha256=PlBmaus97LdGhUHcIVdNEvfsYvsKnmtoupjAvclecRY,681
54
54
  agenta/client/backend/types/base_output.py,sha256=_cYuHdi6THNGEeDmvTb1yo82JlvV9-aCVLHcl4Q-UCY,597
55
55
  agenta/client/backend/types/body_import_testset.py,sha256=J-AH8SkA6mWgNZ5vIz12xpnhPCdZybctxQ5INVxhxgc,696
@@ -139,7 +139,7 @@ agenta/sdk/client.py,sha256=trKyBOYFZRk0v5Eptxvh87yPf50Y9CqY6Qgv4Fy-VH4,2142
139
139
  agenta/sdk/config_manager.py,sha256=n3UTpIhiB1J6FIQ5IvlucfGVpxoIIemnmdI68p34Yvw,8003
140
140
  agenta/sdk/context.py,sha256=q-PxL05-I84puunUAs9LGsffEXcYhDxhQxjuOz2vK90,901
141
141
  agenta/sdk/decorators/base.py,sha256=9aNdX5h8a2mFweuhdO-BQPwXGKY9ONPIdLRhSGAGMfY,217
142
- agenta/sdk/decorators/llm_entrypoint.py,sha256=dEhdwC9mvqIriOCqAA3qPlhvaa8kFNAwnJaNjbTO-MQ,35457
142
+ agenta/sdk/decorators/llm_entrypoint.py,sha256=jXXTQS-sCwmkKvF0bNYTG9pkK13B2odnHsrYepTU_x8,35572
143
143
  agenta/sdk/decorators/tracing.py,sha256=e0olx2EEdjXY0NqpIoDJSVxCnUmv0woewTUuCJXy2tM,4166
144
144
  agenta/sdk/router.py,sha256=0sbajvn5C7t18anH6yNo7-oYxldHnYfwcbmQnIXBePw,269
145
145
  agenta/sdk/tracing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -169,7 +169,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
169
169
  agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
170
170
  agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
171
171
  agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
172
- agenta-0.24.4.dist-info/METADATA,sha256=zbHG1NhWPE3vAARuG95ys1Yi8xqhEjNcDxt6jG6j0QU,31481
173
- agenta-0.24.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
174
- agenta-0.24.4.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
175
- agenta-0.24.4.dist-info/RECORD,,
172
+ agenta-0.25.0.dist-info/METADATA,sha256=EM9OGRMErXY8GO4ThtgrriA4_Uu7OU9zyzjdKuCv5Js,31481
173
+ agenta-0.25.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
174
+ agenta-0.25.0.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
175
+ agenta-0.25.0.dist-info/RECORD,,