Record Class SkillCandidate
java.lang.Object
java.lang.Record
io.agentscope.harness.agent.skill.curator.SkillCandidate
public record SkillCandidate(String name, String description, String skillMdContent, List<String> supportFilePaths, SkillUsageRecord usage, SkillSecurityScanner.ScanResult securityScan, List<SkillCandidate.ScriptFilePreview> scriptFiles)
extends Record
Material handed to a
SkillPromotionGate when a draft skill is being considered for
promotion. Includes the skill body, support files, telemetry record, and the result of the
pre-promote security scan.
scriptFiles is the sandbox-mode-relevant payload: under SkillBox
.codeExecution() every scripts/* file gets uploaded into the sandbox and executed.
Reviewers must see the head + sha256 of every script file before saying "approve".
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSkillCandidate(String name, String description, String skillMdContent, List<String> supportFilePaths, SkillUsageRecord usage, SkillSecurityScanner.ScanResult securityScan, List<SkillCandidate.ScriptFilePreview> scriptFiles) Creates an instance of aSkillCandidaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thescriptFilesrecord component.Returns the value of thesecurityScanrecord component.Returns the value of theskillMdContentrecord component.Returns the value of thesupportFilePathsrecord component.final StringtoString()Returns a string representation of this record class.usage()Returns the value of theusagerecord component.
-
Constructor Details
-
SkillCandidate
public SkillCandidate(String name, String description, String skillMdContent, List<String> supportFilePaths, SkillUsageRecord usage, SkillSecurityScanner.ScanResult securityScan, List<SkillCandidate.ScriptFilePreview> scriptFiles) Creates an instance of aSkillCandidaterecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentskillMdContent- the value for theskillMdContentrecord componentsupportFilePaths- the value for thesupportFilePathsrecord componentusage- the value for theusagerecord componentsecurityScan- the value for thesecurityScanrecord componentscriptFiles- the value for thescriptFilesrecord component
-
-
Method Details
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
skillMdContent
Returns the value of theskillMdContentrecord component.- Returns:
- the value of the
skillMdContentrecord component
-
supportFilePaths
Returns the value of thesupportFilePathsrecord component.- Returns:
- the value of the
supportFilePathsrecord component
-
usage
Returns the value of theusagerecord component.- Returns:
- the value of the
usagerecord component
-
securityScan
Returns the value of thesecurityScanrecord component.- Returns:
- the value of the
securityScanrecord component
-
scriptFiles
Returns the value of thescriptFilesrecord component.- Returns:
- the value of the
scriptFilesrecord component
-