Record Class DefaultContextState

java.lang.Object
java.lang.Record
ai.agentscentral.core.context.DefaultContextState
Record Components:
contextId -
currentTeam -
currentAgent -
partOfTeam -
All Implemented Interfaces:
ContextState

public record DefaultContextState(@Nonnull String contextId, String currentTeam, String currentAgent, String partOfTeam) extends Record implements ContextState
DefaultContextState
Author:
Rizwan Idrees
  • Constructor Details

    • DefaultContextState

      public DefaultContextState(@Nonnull String contextId, String currentTeam, String currentAgent, String partOfTeam)
      Creates an instance of a DefaultContextState record class.
      Parameters:
      contextId - the value for the contextId record component
      currentTeam - the value for the currentTeam record component
      currentAgent - the value for the currentAgent record component
      partOfTeam - the value for the partOfTeam record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • contextId

      @Nonnull public String contextId()
      Returns the value of the contextId record component.
      Specified by:
      contextId in interface ContextState
      Returns:
      the value of the contextId record component
    • currentTeam

      public String currentTeam()
      Returns the value of the currentTeam record component.
      Specified by:
      currentTeam in interface ContextState
      Returns:
      the value of the currentTeam record component
    • currentAgent

      public String currentAgent()
      Returns the value of the currentAgent record component.
      Specified by:
      currentAgent in interface ContextState
      Returns:
      the value of the currentAgent record component
    • partOfTeam

      public String partOfTeam()
      Returns the value of the partOfTeam record component.
      Specified by:
      partOfTeam in interface ContextState
      Returns:
      the value of the partOfTeam record component