Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
engine_types.cpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
9
10namespace entropic {
11
19 return static_cast<int>((end_time - start_time) * 1000);
20}
21
24static const char* const kStateNames[] = {
25 "IDLE", "PLANNING", "EXECUTING", "WAITING_TOOL", "VERIFYING",
26 "DELEGATING", "COMPLETE", "ERROR", "INTERRUPTED", "PAUSED",
27};
28
36const char* agent_state_name(AgentState state) {
37 auto idx = static_cast<int>(state);
38 if (idx >= 0 && idx < static_cast<int>(sizeof(kStateNames) / sizeof(kStateNames[0]))) {
39 return kStateNames[idx];
40 }
41 return "UNKNOWN";
42}
43
44} // namespace entropic
Types for the agentic loop engine.
Activate model on GPU (WARM → ACTIVE).
const char * agent_state_name(AgentState state)
Get the string name for an AgentState value.
static const char *const kStateNames[]
Lookup table for AgentState names indexed by enum value.
AgentState
C++ enum class for agent execution states.
double start_time
Loop start (seconds since epoch)
int duration_ms() const
Get loop duration in milliseconds.
double end_time
Loop end (seconds since epoch)