Record Class BuiltinToolFormat
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.BuiltinToolFormat
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record BuiltinToolFormat(BuiltinToolFormatType type, String syntax, String definition)
extends Record
Custom grammar input format accepted by a built-in tool.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionBuiltinToolFormat(BuiltinToolFormatType type, String syntax, String definition) Creates an instance of aBuiltinToolFormatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.syntax()Returns the value of thesyntaxrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
BuiltinToolFormat
Creates an instance of aBuiltinToolFormatrecord class.- Parameters:
type- the value for thetyperecord componentsyntax- the value for thesyntaxrecord componentdefinition- the value for thedefinitionrecord 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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
syntax
Returns the value of thesyntaxrecord component.- Returns:
- the value of the
syntaxrecord component
-
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-