Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic::LoopMetrics Struct Reference

Metrics collected during loop execution. More...

#include <entropic/core/engine_types.h>

Public Member Functions

int duration_ms () const
 Get loop duration in milliseconds.
 

Public Attributes

int iterations = 0
 Total iterations completed.
 
int tool_calls = 0
 Total tool calls executed.
 
int tokens_used = 0
 Total tokens consumed.
 
int errors = 0
 Total errors encountered.
 
double start_time = 0.0
 Loop start (seconds since epoch)
 
double end_time = 0.0
 Loop end (seconds since epoch)
 

Detailed Description

Metrics collected during loop execution.

Version
1.8.4

Definition at line 128 of file engine_types.h.

Member Function Documentation

◆ duration_ms()

int entropic::LoopMetrics::duration_ms ( ) const

Get loop duration in milliseconds.

Returns
Duration in ms.
Version
1.8.4
Returns
Duration in ms (end_time - start_time) * 1000. @utility
Version
1.8.4

Definition at line 18 of file engine_types.cpp.

Member Data Documentation

◆ end_time

double entropic::LoopMetrics::end_time = 0.0

Loop end (seconds since epoch)

Definition at line 134 of file engine_types.h.

◆ errors

int entropic::LoopMetrics::errors = 0

Total errors encountered.

Definition at line 132 of file engine_types.h.

◆ iterations

int entropic::LoopMetrics::iterations = 0

Total iterations completed.

Definition at line 129 of file engine_types.h.

◆ start_time

double entropic::LoopMetrics::start_time = 0.0

Loop start (seconds since epoch)

Definition at line 133 of file engine_types.h.

◆ tokens_used

int entropic::LoopMetrics::tokens_used = 0

Total tokens consumed.

Definition at line 131 of file engine_types.h.

◆ tool_calls

int entropic::LoopMetrics::tool_calls = 0

Total tool calls executed.

Definition at line 130 of file engine_types.h.


The documentation for this struct was generated from the following files: