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 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
- trace_time_ms = sum(step.get('duration_ms', 0) for step in trace)
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
  Metadata-Version: 2.4
2
2
  Name: dasein-core
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: Universal memory for agentic AI. Attach a brain to any LangChain/LangGraph agent in a single line.
5
5
  Author-email: Dasein Team <support@dasein.ai>
6
6
  License: MIT
@@ -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=ysyZ29JdMuayHWeYP1gc-hB_zdYEc3UfNsmJEornHO0,172227
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.4.dist-info/licenses/LICENSE,sha256=7FHjIFEKl_3hSc3tGUVEWmufC_3oi8rh_2zVuL7jMKs,1091
18
- dasein_core-0.2.4.dist-info/METADATA,sha256=u1OEGtlVRM2WYxUpT_pHstT5NoQPjjrcdA6D-fSw_oM,10192
19
- dasein_core-0.2.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
- dasein_core-0.2.4.dist-info/top_level.txt,sha256=6yYY9kltjvvPsg9K6KyMKRtzEr5qM7sHXN7VzmrDtp0,7
21
- dasein_core-0.2.4.dist-info/RECORD,,
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,,