Class StoredAgentExecutionResult

java.lang.Object
at.aimon.session.postgres.internal.StoredAgentExecutionResult
All Implemented Interfaces:
at.aimon.core.agent.AgentExecutionResult

public final class StoredAgentExecutionResult extends Object implements at.aimon.core.agent.AgentExecutionResult
Minimal AgentExecutionResult projection used by PostgresIdempotencyStore for replay.

Captures only the fields the idempotency replay path needs — final answer / error message, completion reason, and the wasStreamed flag. Artifacts are not preserved across the JSON round-trip; see design §9.2.

  • Method Details

    • builder

      public static StoredAgentExecutionResult.Builder builder()
    • from

      public static StoredAgentExecutionResult from(at.aimon.core.agent.AgentExecutionResult source)
    • isSuccess

      public boolean isSuccess()
      Specified by:
      isSuccess in interface at.aimon.core.agent.AgentExecutionResult
    • getFinalAnswer

      public String getFinalAnswer()
      Specified by:
      getFinalAnswer in interface at.aimon.core.agent.AgentExecutionResult
    • getErrorMessage

      public String getErrorMessage()
      Specified by:
      getErrorMessage in interface at.aimon.core.agent.AgentExecutionResult
    • getCompletionReason

      public at.aimon.core.agent.budget.CompletionReason getCompletionReason()
      Specified by:
      getCompletionReason in interface at.aimon.core.agent.AgentExecutionResult
    • wasStreamed

      public boolean wasStreamed()
      Specified by:
      wasStreamed in interface at.aimon.core.agent.AgentExecutionResult