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 implementsLazyResourceCapable;nullwhen only the in-memoryskill.resourcesmap is availablefilesRoot- absolute path root for shell execution of this skill's scripts; may benullwhen 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 Summary
ConstructorsConstructorDescriptionHarnessSkillEntry(io.agentscope.core.skill.AgentSkill skill, SkillResources lazyResources, String filesRoot) Creates an instance of aHarnessSkillEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefilesRootrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelazyResourcesrecord component.static HarnessSkillEntryof(io.agentscope.core.skill.AgentSkill skill, SkillResources lazyResources) Convenience for runtime layers that have no shell mode wired yet.io.agentscope.core.skill.AgentSkillskill()Returns the value of theskillrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HarnessSkillEntry
public HarnessSkillEntry(io.agentscope.core.skill.AgentSkill skill, SkillResources lazyResources, String filesRoot) Creates an instance of aHarnessSkillEntryrecord class.- Parameters:
skill- the value for theskillrecord componentlazyResources- the value for thelazyResourcesrecord componentfilesRoot- the value for thefilesRootrecord 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
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
skill
public io.agentscope.core.skill.AgentSkill skill()Returns the value of theskillrecord component.- Returns:
- the value of the
skillrecord component
-
lazyResources
Returns the value of thelazyResourcesrecord component.- Returns:
- the value of the
lazyResourcesrecord component
-
filesRoot
Returns the value of thefilesRootrecord component.- Returns:
- the value of the
filesRootrecord component
-