dasein-core 0.2.4__py3-none-any.whl → 0.2.5__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.
- dasein/api.py +4 -2
- {dasein_core-0.2.4.dist-info → dasein_core-0.2.5.dist-info}/METADATA +1 -1
- {dasein_core-0.2.4.dist-info → dasein_core-0.2.5.dist-info}/RECORD +6 -6
- {dasein_core-0.2.4.dist-info → dasein_core-0.2.5.dist-info}/WHEEL +0 -0
- {dasein_core-0.2.4.dist-info → dasein_core-0.2.5.dist-info}/licenses/LICENSE +0 -0
- {dasein_core-0.2.4.dist-info → dasein_core-0.2.5.dist-info}/top_level.txt +0 -0
dasein/api.py
CHANGED
@@ -2163,12 +2163,14 @@ Follow these rules when planning your actions."""
|
|
2163
2163
|
tool_calls = len([step for step in trace if step.get('step_type') == 'tool_start'])
|
2164
2164
|
total_turns = len(trace)
|
2165
2165
|
|
2166
|
-
# Sum up tokens and time
|
2166
|
+
# Sum up tokens and calculate average time
|
2167
2167
|
input_tokens = sum(step.get('tokens_input', 0) for step in trace)
|
2168
2168
|
output_tokens = sum(step.get('tokens_output', 0) for step in trace)
|
2169
2169
|
total_tokens = input_tokens + output_tokens
|
2170
2170
|
|
2171
|
-
|
2171
|
+
# Calculate average duration_ms across all steps that have timing data
|
2172
|
+
durations = [step.get('duration_ms', 0) for step in trace if step.get('duration_ms', 0) > 0]
|
2173
|
+
trace_time_ms = int(sum(durations) / len(durations)) if durations else 0
|
2172
2174
|
|
2173
2175
|
# Calculate wall time from timestamps (they are ISO format strings)
|
2174
2176
|
if len(trace) > 1:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
dasein/__init__.py,sha256=RY0lhaaWB6yJ_5YMRmaHDvQ0eFbc0BGbYNe5OVyxzYE,2316
|
2
2
|
dasein/advice_format.py,sha256=5-h4J24L_B2Y9dlmyDuIYtmPCWOGAYoinBEXqpcNg2s,5386
|
3
|
-
dasein/api.py,sha256=
|
3
|
+
dasein/api.py,sha256=GQpZIRFDYCoZvDN2T4Gsh2BBXfCJ7ui3WTxi_ZQGb0Q,172432
|
4
4
|
dasein/capture.py,sha256=XrEPsteG5__csqcqXzOmBSzPYgeI-OFzu3IRVMPYj3w,83814
|
5
5
|
dasein/config.py,sha256=lXO8JG4RXbodn3gT5yEnuB0VRwWdrRVwhX3Rm06IZmU,1957
|
6
6
|
dasein/events.py,sha256=mG-lnOvQoZUhXbrPSjrG4RME6ywUcbSZ04PscoJ15GI,12896
|
@@ -14,8 +14,8 @@ dasein/services/post_run_client.py,sha256=bzWKiu-FGo36r6J-QBv6zjLpjI7mMjKmjhvfid
|
|
14
14
|
dasein/services/pre_run_client.py,sha256=tXmz_PQaSfq0xwypiWUAqNkXOmREZ6EwXLC4OM89J-A,4317
|
15
15
|
dasein/services/service_adapter.py,sha256=nVvPPioYKoxYmR33w1ssYx422UPBeTsq8yIKZum8YHg,7128
|
16
16
|
dasein/services/service_config.py,sha256=8_4tpV4mZvfaOc5_yyHbOyL4rYsPHzkLTEY1rtYgLs8,1629
|
17
|
-
dasein_core-0.2.
|
18
|
-
dasein_core-0.2.
|
19
|
-
dasein_core-0.2.
|
20
|
-
dasein_core-0.2.
|
21
|
-
dasein_core-0.2.
|
17
|
+
dasein_core-0.2.5.dist-info/licenses/LICENSE,sha256=7FHjIFEKl_3hSc3tGUVEWmufC_3oi8rh_2zVuL7jMKs,1091
|
18
|
+
dasein_core-0.2.5.dist-info/METADATA,sha256=k-g7KsEhfAp3b_FgiAwh0i8Swuof9olOFnjJlGGj_zs,10192
|
19
|
+
dasein_core-0.2.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
20
|
+
dasein_core-0.2.5.dist-info/top_level.txt,sha256=6yYY9kltjvvPsg9K6KyMKRtzEr5qM7sHXN7VzmrDtp0,7
|
21
|
+
dasein_core-0.2.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|