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.
- agenta/sdk/tracing/inline.py +2 -4
- {agenta-0.25.4a2.dist-info → agenta-0.25.4a3.dist-info}/METADATA +1 -1
- {agenta-0.25.4a2.dist-info → agenta-0.25.4a3.dist-info}/RECORD +5 -5
- {agenta-0.25.4a2.dist-info → agenta-0.25.4a3.dist-info}/WHEEL +0 -0
- {agenta-0.25.4a2.dist-info → agenta-0.25.4a3.dist-info}/entry_points.txt +0 -0
agenta/sdk/tracing/inline.py
CHANGED
|
@@ -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
|
|
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"),
|
|
@@ -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=
|
|
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.
|
|
183
|
-
agenta-0.25.
|
|
184
|
-
agenta-0.25.
|
|
185
|
-
agenta-0.25.
|
|
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,,
|
|
File without changes
|
|
File without changes
|