java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.AgentInfo
@Generated("copilot-sdk-codegen")
public record AgentInfo(String name, String displayName, String description, String path, String id, AgentInfoSource source, Boolean userInvocable, List<String> tools, String model, Map<String,Object> mcpServers, List<String> skills)
extends Record
Schema for the `AgentInfo` type.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of themcpServersrecord component.model()Returns the value of themodelrecord component.name()Returns the value of thenamerecord component.path()Returns the value of thepathrecord component.skills()Returns the value of theskillsrecord component.source()Returns the value of thesourcerecord component.tools()Returns the value of thetoolsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserInvocablerecord component.
-
Constructor Details
-
AgentInfo
public AgentInfo(String name, String displayName, String description, String path, String id, AgentInfoSource source, Boolean userInvocable, List<String> tools, String model, Map<String, Object> mcpServers, List<String> skills) Creates an instance of aAgentInforecord class.- Parameters:
name- the value for thenamerecord componentdisplayName- the value for thedisplayNamerecord componentdescription- the value for thedescriptionrecord componentpath- the value for thepathrecord componentid- the value for theidrecord componentsource- the value for thesourcerecord componentuserInvocable- the value for theuserInvocablerecord componenttools- the value for thetoolsrecord componentmodel- the value for themodelrecord componentmcpServers- the value for themcpServersrecord componentskills- the value for theskillsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
userInvocable
Returns the value of theuserInvocablerecord component.- Returns:
- the value of the
userInvocablerecord component
-
tools
Returns the value of thetoolsrecord component.- Returns:
- the value of the
toolsrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
mcpServers
Returns the value of themcpServersrecord component.- Returns:
- the value of the
mcpServersrecord component
-
skills
Returns the value of theskillsrecord component.- Returns:
- the value of the
skillsrecord component
-