Record Class ProtocolExternalToolDefinition
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ProtocolExternalToolDefinition
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record ProtocolExternalToolDefinition(String name, String description, String title, Map<String,Object> parameters, Boolean overridesBuiltInTool, Boolean skipPermission, ProtocolExternalToolDefer defer, Boolean isTerminal, Map<String,Object> metadata)
extends Record
Serializable definition of a caller-implemented tool whose execution is handled over the SDK connection.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionProtocolExternalToolDefinition(String name, String description, String title, Map<String, Object> parameters, Boolean overridesBuiltInTool, Boolean skipPermission, ProtocolExternalToolDefer defer, Boolean isTerminal, Map<String, Object> metadata) Creates an instance of aProtocolExternalToolDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondefer()Returns the value of thedeferrecord component.Returns 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.Returns the value of theisTerminalrecord component.metadata()Returns the value of themetadatarecord component.name()Returns the value of thenamerecord component.Returns the value of theoverridesBuiltInToolrecord component.Returns the value of theparametersrecord component.Returns the value of theskipPermissionrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProtocolExternalToolDefinition
public ProtocolExternalToolDefinition(String name, String description, String title, Map<String, Object> parameters, Boolean overridesBuiltInTool, Boolean skipPermission, ProtocolExternalToolDefer defer, Boolean isTerminal, Map<String, Object> metadata) Creates an instance of aProtocolExternalToolDefinitionrecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenttitle- the value for thetitlerecord componentparameters- the value for theparametersrecord componentoverridesBuiltInTool- the value for theoverridesBuiltInToolrecord componentskipPermission- the value for theskipPermissionrecord componentdefer- the value for thedeferrecord componentisTerminal- the value for theisTerminalrecord componentmetadata- the value for themetadatarecord 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
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
parameters
-
overridesBuiltInTool
Returns the value of theoverridesBuiltInToolrecord component.- Returns:
- the value of the
overridesBuiltInToolrecord component
-
skipPermission
Returns the value of theskipPermissionrecord component.- Returns:
- the value of the
skipPermissionrecord component
-
defer
Returns the value of thedeferrecord component.- Returns:
- the value of the
deferrecord component
-
isTerminal
Returns the value of theisTerminalrecord component.- Returns:
- the value of the
isTerminalrecord component
-
metadata
-