Record Class AgentInfo
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, Boolean disableModelInvocation, List<String> tools, String model, List<String> models, AgentModelPolicy modelPolicy, String reasoningEffort, Map<String,Object> mcpServers, List<String> skills, String prompt)
extends Record
Agent metadata, including identifiers, display details, source, tools, model, models, reasoning effort, MCP servers, skills, and file path.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionAgentInfo(String name, String displayName, String description, String path, String id, AgentInfoSource source, Boolean userInvocable, Boolean disableModelInvocation, List<String> tools, String model, List<String> models, AgentModelPolicy modelPolicy, String reasoningEffort, Map<String, Object> mcpServers, List<String> skills, String prompt) Creates an instance of aAgentInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.Returns the value of thedisableModelInvocationrecord 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.Returns the value of themodelPolicyrecord component.models()Returns the value of themodelsrecord component.name()Returns the value of thenamerecord component.path()Returns the value of thepathrecord component.prompt()Returns the value of thepromptrecord component.Returns the value of thereasoningEffortrecord 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, Boolean disableModelInvocation, List<String> tools, String model, List<String> models, AgentModelPolicy modelPolicy, String reasoningEffort, Map<String, Object> mcpServers, List<String> skills, String prompt) 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 componentdisableModelInvocation- the value for thedisableModelInvocationrecord componenttools- the value for thetoolsrecord componentmodel- the value for themodelrecord componentmodels- the value for themodelsrecord componentmodelPolicy- the value for themodelPolicyrecord componentreasoningEffort- the value for thereasoningEffortrecord componentmcpServers- the value for themcpServersrecord componentskills- the value for theskillsrecord componentprompt- the value for thepromptrecord 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
-
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
-
disableModelInvocation
Returns the value of thedisableModelInvocationrecord component.- Returns:
- the value of the
disableModelInvocationrecord component
-
tools
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
models
-
modelPolicy
Returns the value of themodelPolicyrecord component.- Returns:
- the value of the
modelPolicyrecord component
-
reasoningEffort
Returns the value of thereasoningEffortrecord component.- Returns:
- the value of the
reasoningEffortrecord component
-
mcpServers
-
skills
-
prompt
Returns the value of thepromptrecord component.- Returns:
- the value of the
promptrecord component
-