Record Class SkillResource
java.lang.Object
java.lang.Record
org.bsc.langgraph4j.spring.ai.agent.skill.SkillResource
- All Implemented Interfaces:
SkillSource
public record SkillResource(org.springframework.core.io.Resource skillRootPath)
extends Record
implements SkillSource
-
Constructor Summary
ConstructorsConstructorDescriptionSkillResource(org.springframework.core.io.Resource skillRootPath) Creates an instance of aSkillResourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static SkillResourceof(org.springframework.core.io.Resource skillResource) org.springframework.core.io.ResourceReturns the value of theskillRootPathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SkillResource
public SkillResource(org.springframework.core.io.Resource skillRootPath) Creates an instance of aSkillResourcerecord class.- Parameters:
skillRootPath- the value for theskillRootPathrecord component
-
-
Method Details
-
of
-
content
- Specified by:
contentin interfaceSkillSource- Throws:
IOException
-
toString
-
hashCode
-
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). -
skillRootPath
public org.springframework.core.io.Resource skillRootPath()Returns the value of theskillRootPathrecord component.- Returns:
- the value of the
skillRootPathrecord component
-