agenta 0.24.1__py3-none-any.whl → 0.24.1a0__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.

@@ -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.1
3
+ Version: 0.24.1a0
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
@@ -133,7 +133,7 @@ agenta/sdk/client.py,sha256=trKyBOYFZRk0v5Eptxvh87yPf50Y9CqY6Qgv4Fy-VH4,2142
133
133
  agenta/sdk/config_manager.py,sha256=n3UTpIhiB1J6FIQ5IvlucfGVpxoIIemnmdI68p34Yvw,8003
134
134
  agenta/sdk/context.py,sha256=q-PxL05-I84puunUAs9LGsffEXcYhDxhQxjuOz2vK90,901
135
135
  agenta/sdk/decorators/base.py,sha256=9aNdX5h8a2mFweuhdO-BQPwXGKY9ONPIdLRhSGAGMfY,217
136
- agenta/sdk/decorators/llm_entrypoint.py,sha256=dEhdwC9mvqIriOCqAA3qPlhvaa8kFNAwnJaNjbTO-MQ,35457
136
+ agenta/sdk/decorators/llm_entrypoint.py,sha256=jXXTQS-sCwmkKvF0bNYTG9pkK13B2odnHsrYepTU_x8,35572
137
137
  agenta/sdk/decorators/tracing.py,sha256=e0olx2EEdjXY0NqpIoDJSVxCnUmv0woewTUuCJXy2tM,4166
138
138
  agenta/sdk/router.py,sha256=0sbajvn5C7t18anH6yNo7-oYxldHnYfwcbmQnIXBePw,269
139
139
  agenta/sdk/tracing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -163,7 +163,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
163
163
  agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
164
164
  agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
165
165
  agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
166
- agenta-0.24.1.dist-info/METADATA,sha256=ifs1C7JfySIZMzfvdok4WPoWBlh-Hlro1MNnPO38TFA,26499
167
- agenta-0.24.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
168
- agenta-0.24.1.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
169
- agenta-0.24.1.dist-info/RECORD,,
166
+ agenta-0.24.1a0.dist-info/METADATA,sha256=OP-KV03nmeolWAOFO9q6w9BzEyJGZVYu3tradvNsGjE,26501
167
+ agenta-0.24.1a0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
168
+ agenta-0.24.1a0.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
169
+ agenta-0.24.1a0.dist-info/RECORD,,