Record Class CurrentToolMetadata
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.CurrentToolMetadata
@Generated("copilot-sdk-codegen")
public record CurrentToolMetadata(String name, String namespacedName, String mcpServerName, String mcpToolName, String description, Map<String,Object> inputSchema, Boolean deferLoading)
extends Record
Lightweight metadata for a currently initialized session tool
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeferLoadingrecord 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 theinputSchemarecord component.Returns the value of themcpServerNamerecord component.Returns the value of themcpToolNamerecord component.name()Returns the value of thenamerecord component.Returns the value of thenamespacedNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CurrentToolMetadata
public CurrentToolMetadata(String name, String namespacedName, String mcpServerName, String mcpToolName, String description, Map<String, Object> inputSchema, Boolean deferLoading) Creates an instance of aCurrentToolMetadatarecord class.- Parameters:
name- the value for thenamerecord componentnamespacedName- the value for thenamespacedNamerecord componentmcpServerName- the value for themcpServerNamerecord componentmcpToolName- the value for themcpToolNamerecord componentdescription- the value for thedescriptionrecord componentinputSchema- the value for theinputSchemarecord componentdeferLoading- the value for thedeferLoadingrecord 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
-
namespacedName
Returns the value of thenamespacedNamerecord component.- Returns:
- the value of the
namespacedNamerecord component
-
mcpServerName
Returns the value of themcpServerNamerecord component.- Returns:
- the value of the
mcpServerNamerecord component
-
mcpToolName
Returns the value of themcpToolNamerecord component.- Returns:
- the value of the
mcpToolNamerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
inputSchema
-
deferLoading
Returns the value of thedeferLoadingrecord component.- Returns:
- the value of the
deferLoadingrecord component
-