Record Class SkillProviderDescriptor
java.lang.Object
java.lang.Record
com.github.copilot.SkillProviderDescriptor
- Record Components:
name- the invocation and display namedescription- the description shown in skill catalogsuserInvocable- whether users may invoke the skill directly, ornullfor the default (true)disableModelInvocation- whether model invocation is disabled, ornullfor the default (false)argumentHint- an optional freeform argument hint for slash-command catalogsdirectory- the absolute path to the folder on local disk that holds the skill's supporting files (scripts, references, templates, assets), ornullwhen the skill has none. When the skill is activated, the runtime lists the folder's files for the model, as it does for a file-based skill's folder; it never reads or copies them. The folder becomes a read-only skill root, like a configured skill directory. It is not shown in skill catalogs.
@CopilotExperimental
public record SkillProviderDescriptor(String name, String description, Boolean userInvocable, Boolean disableModelInvocation, String argumentHint, String directory)
extends Record
Catalog metadata for one skill supplied by a
SkillProvider.
The runtime lists these descriptors without fetching skill content, then
calls SkillProvider.readSkill(String) when the skill is used.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSkillProviderDescriptor(String name, String description, Boolean userInvocable, Boolean disableModelInvocation, String argumentHint) Creates a descriptor for a skill without supporting files.SkillProviderDescriptor(String name, String description, Boolean userInvocable, Boolean disableModelInvocation, String argumentHint, String directory) Creates an instance of aSkillProviderDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentHintrecord component.Returns the value of thedescriptionrecord component.Returns the value of thedirectoryrecord component.Returns the value of thedisableModelInvocationrecord 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.final StringtoString()Returns a string representation of this record class.Returns the value of theuserInvocablerecord component.
-
Constructor Details
-
SkillProviderDescriptor
public SkillProviderDescriptor(String name, String description, Boolean userInvocable, Boolean disableModelInvocation, String argumentHint) Creates a descriptor for a skill without supporting files.- Parameters:
name- the invocation and display namedescription- the description shown in skill catalogsuserInvocable- whether users may invoke the skill directly, ornullfor the default (true)disableModelInvocation- whether model invocation is disabled, ornullfor the default (false)argumentHint- an optional freeform argument hint for slash-command catalogs
-
SkillProviderDescriptor
public SkillProviderDescriptor(String name, String description, Boolean userInvocable, Boolean disableModelInvocation, String argumentHint, String directory) Creates an instance of aSkillProviderDescriptorrecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentuserInvocable- the value for theuserInvocablerecord componentdisableModelInvocation- the value for thedisableModelInvocationrecord componentargumentHint- the value for theargumentHintrecord componentdirectory- the value for thedirectoryrecord component
-
-
Method Details
-
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). -
name
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
userInvocable
Returns the value of theuserInvocablerecord component.- Returns:
- the value of the
userInvocablerecord component
-
disableModelInvocation
Returns the value of thedisableModelInvocationrecord component.- Returns:
- the value of the
disableModelInvocationrecord component
-
argumentHint
Returns the value of theargumentHintrecord component.- Returns:
- the value of the
argumentHintrecord component
-
directory
-