Record Class HarnessSkillEntry

java.lang.Object
java.lang.Record
io.agentscope.harness.agent.skill.runtime.HarnessSkillEntry
Record Components:
skill - the underlying skill (non-null)
lazyResources - resource accessor when the source repository implements LazyResourceCapable; null when only the in-memory skill.resources map is available
filesRoot - absolute path root for shell execution of this skill's scripts; may be null when no shell tool is available (in which case the prompt omits <files-root>) or when the skill is sourced from a repository whose contents are not present on any filesystem the shell can reach

public record HarnessSkillEntry(io.agentscope.core.skill.AgentSkill skill, SkillResources lazyResources, String filesRoot) extends Record
Per-call wrapper around an AgentSkill carrying harness-only metadata that does not belong on the core data type.
  • Constructor Details

    • HarnessSkillEntry

      public HarnessSkillEntry(io.agentscope.core.skill.AgentSkill skill, SkillResources lazyResources, String filesRoot)
      Creates an instance of a HarnessSkillEntry record class.
      Parameters:
      skill - the value for the skill record component
      lazyResources - the value for the lazyResources record component
      filesRoot - the value for the filesRoot record component
  • Method Details

    • of

      public static HarnessSkillEntry of(io.agentscope.core.skill.AgentSkill skill, SkillResources lazyResources)
      Convenience for runtime layers that have no shell mode wired yet.
    • 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.
    • skill

      public io.agentscope.core.skill.AgentSkill skill()
      Returns the value of the skill record component.
      Returns:
      the value of the skill record component
    • lazyResources

      public SkillResources lazyResources()
      Returns the value of the lazyResources record component.
      Returns:
      the value of the lazyResources record component
    • filesRoot

      public String filesRoot()
      Returns the value of the filesRoot record component.
      Returns:
      the value of the filesRoot record component