Class TrustScore

java.lang.Object
com.tnsai.coordination.trust.TrustScore

public final class TrustScore extends Object
Represents a trust score for an agent on a specific capability.

Trust scores are continuous values between 0.0 (no trust) and 1.0 (full trust), updated over time based on interaction outcomes.

Since:
0.0.5
  • Constructor Details

    • TrustScore

      public TrustScore(String agentId, String capability, double initialScore)
  • Method Details

    • getAgentId

      public String getAgentId()
    • getCapability

      public String getCapability()
    • getScore

      public double getScore()
    • getTotalInteractions

      public int getTotalInteractions()
    • getSuccessfulInteractions

      public int getSuccessfulInteractions()
    • getLastUpdated

      public Instant getLastUpdated()
    • getSuccessRate

      public double getSuccessRate()
      Gets the success rate (0.0 - 1.0).
    • toString

      public String toString()
      Overrides:
      toString in class Object