agenta 0.25.4a2__py3-none-any.whl → 0.25.4a3__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.

@@ -1029,11 +1029,10 @@ def parse_inline_trace(
1029
1029
  ### services.observability.service.ingest/query() ###
1030
1030
  #####################################################
1031
1031
 
1032
- _calculate_cost(span_idx)
1033
-
1034
1032
  ###############################################
1035
1033
  ### services.observability.service.ingest() ###
1036
1034
  ### --------------------------------------- ###
1035
+ calculate_cost(span_idx)
1037
1036
  cumulate_costs(span_id_tree, span_idx)
1038
1037
  cumulate_tokens(span_id_tree, span_idx)
1039
1038
  ### --------------------------------------- ###
@@ -1280,10 +1279,9 @@ PAYING_TYPES = [
1280
1279
  ]
1281
1280
 
1282
1281
 
1283
- def _calculate_cost(span_idx: Dict[str, SpanCreateDTO]):
1282
+ def calculate_cost(span_idx: Dict[str, SpanCreateDTO]):
1284
1283
  for span in span_idx.values():
1285
1284
  if span.node.type.name.lower() in PAYING_TYPES and span.meta and span.metrics:
1286
-
1287
1285
  try:
1288
1286
  costs = cost_calculator.cost_per_token(
1289
1287
  model=span.meta.get("response.model"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agenta
3
- Version: 0.25.4a2
3
+ Version: 0.25.4a3
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
@@ -151,7 +151,7 @@ agenta/sdk/tracing/attributes.py,sha256=0Ld0A4eL6EAWwbhBY0Qp7MLWXXbBsd8EDtbBuwIy
151
151
  agenta/sdk/tracing/context.py,sha256=KDQYjRcmbpb6e0xEuX-bAQGhEjwx4H2nwybRPOKCDjo,578
152
152
  agenta/sdk/tracing/conventions.py,sha256=YFkKPls77sl5YOXrRjfn4erEjczMXThc7b-rRaVVTuo,722
153
153
  agenta/sdk/tracing/exporters.py,sha256=e-SfpN8dKQ0vuBZQTZ6qgIMBhyriOrVeLYJkv-us0Zs,1328
154
- agenta/sdk/tracing/inline.py,sha256=to1FMutMVRPL5CXXNDR1SKw4fmrtQXkoifOiV80rMOY,35773
154
+ agenta/sdk/tracing/inline.py,sha256=o-lRHmcIXVrFLWIj-xeY9LNbkuR8G4IUubwlWVfNC30,35769
155
155
  agenta/sdk/tracing/processors.py,sha256=PRQpj8aOmOjvf71M48AtCurIxVFg2ZZWRtJLtlB4xyE,1974
156
156
  agenta/sdk/tracing/spans.py,sha256=AnQuuyuCGST6n_He4SF5WdrtMts9JlE8v6rVRdm2rRg,3570
157
157
  agenta/sdk/tracing/tracing.py,sha256=5r0whzLzF2bwYKZkUN3QDjq8AketEb-9sM4nqnO9zzM,5168
@@ -179,7 +179,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
179
179
  agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
180
180
  agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
181
181
  agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
182
- agenta-0.25.4a2.dist-info/METADATA,sha256=mfXGJa67eSzwylRysDHrmfz4wfkwDSsnC0926cqQCvM,31738
183
- agenta-0.25.4a2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
184
- agenta-0.25.4a2.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
185
- agenta-0.25.4a2.dist-info/RECORD,,
182
+ agenta-0.25.4a3.dist-info/METADATA,sha256=Ve2s3ouTz56d41dEWduIVk06vpAUxFxvq_lqU_0OLSs,31738
183
+ agenta-0.25.4a3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
184
+ agenta-0.25.4a3.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
185
+ agenta-0.25.4a3.dist-info/RECORD,,