Class LlmCallObserver

java.lang.Object
com.agentforge4j.runtime.llm.LlmCallObserver

public final class LlmCallObserver extends Object
Observes each completed LLM call: emits a WorkflowEventType.LLM_CALL_COMPLETED event and maintains the ReservedContextKeys.LLM_TOKENS_TOTAL running total in WorkflowState context.

Separating this concern from AgentInvoker keeps the invoker focused on dispatch and retry while token accounting and audit emission are independently testable.