Record Class BuiltinToolDescriptor
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.BuiltinToolDescriptor
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record BuiltinToolDescriptor(String name, String title, String description, BuiltinToolInputSchema inputSchema, String instructions, String type, BuiltinToolFormat format, Object safeForTelemetry, Boolean isTerminal, Boolean hasSummariseIntention)
extends Record
Rust-owned metadata and input schema for a built-in tool.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionBuiltinToolDescriptor(String name, String title, String description, BuiltinToolInputSchema inputSchema, String instructions, String type, BuiltinToolFormat format, Object safeForTelemetry, Boolean isTerminal, Boolean hasSummariseIntention) Creates an instance of aBuiltinToolDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehasSummariseIntentionrecord component.Returns the value of theinputSchemarecord component.Returns the value of theinstructionsrecord component.Returns the value of theisTerminalrecord component.name()Returns the value of thenamerecord component.Returns the value of thesafeForTelemetryrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
BuiltinToolDescriptor
public BuiltinToolDescriptor(String name, String title, String description, BuiltinToolInputSchema inputSchema, String instructions, String type, BuiltinToolFormat format, Object safeForTelemetry, Boolean isTerminal, Boolean hasSummariseIntention) Creates an instance of aBuiltinToolDescriptorrecord class.- Parameters:
name- the value for thenamerecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentinputSchema- the value for theinputSchemarecord componentinstructions- the value for theinstructionsrecord componenttype- the value for thetyperecord componentformat- the value for theformatrecord componentsafeForTelemetry- the value for thesafeForTelemetryrecord componentisTerminal- the value for theisTerminalrecord componenthasSummariseIntention- the value for thehasSummariseIntentionrecord 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
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
inputSchema
Returns the value of theinputSchemarecord component.- Returns:
- the value of the
inputSchemarecord component
-
instructions
Returns the value of theinstructionsrecord component.- Returns:
- the value of the
instructionsrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
safeForTelemetry
Returns the value of thesafeForTelemetryrecord component.- Returns:
- the value of the
safeForTelemetryrecord component
-
isTerminal
Returns the value of theisTerminalrecord component.- Returns:
- the value of the
isTerminalrecord component
-
hasSummariseIntention
Returns the value of thehasSummariseIntentionrecord component.- Returns:
- the value of the
hasSummariseIntentionrecord component
-