Class IdempotencyEntryRowCodec

java.lang.Object
at.aimon.session.postgres.internal.IdempotencyEntryRowCodec

public final class IdempotencyEntryRowCodec extends Object
Jackson codec for the idempotency_entry.result_blob JSONB column.

Only the AgentExecutionResult subset needed for replay is serialized — see StoredAgentExecutionResult. The remaining IdempotencyEntry fields live in their own columns (key, conversation_id, input_hash, status, holder_id, created_at, last_touched_at, expires_at); only the result_blob round-trips through JSON.

  • Constructor Details

    • IdempotencyEntryRowCodec

      public IdempotencyEntryRowCodec(com.fasterxml.jackson.databind.ObjectMapper mapper)
  • Method Details

    • encodeResult

      public String encodeResult(at.aimon.core.agent.AgentExecutionResult result)
    • decodeResult

      public Optional<at.aimon.core.agent.AgentExecutionResult> decodeResult(String json)