Package com.github.copilot.sdk.json
Class AgentInfo
java.lang.Object
com.github.copilot.sdk.json.AgentInfo
Represents a custom agent available for selection in a session.
- Since:
- 1.0.11
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the description of the agent's purpose.Gets the human-readable display name of the agent.getName()Gets the unique identifier of the agent.setDescription(String description) Sets the description of the agent's purpose.setDisplayName(String displayName) Sets the human-readable display name of the agent.Sets the unique identifier of the agent.
-
Constructor Details
-
AgentInfo
public AgentInfo()
-
-
Method Details
-
getName
Gets the unique identifier of the agent.- Returns:
- the agent name/identifier
-
setName
Sets the unique identifier of the agent.- Parameters:
name- the agent name/identifier- Returns:
- this instance for chaining
-
getDisplayName
Gets the human-readable display name of the agent.- Returns:
- the display name
-
setDisplayName
Sets the human-readable display name of the agent.- Parameters:
displayName- the display name- Returns:
- this instance for chaining
-
getDescription
Gets the description of the agent's purpose.- Returns:
- the description
-
setDescription
Sets the description of the agent's purpose.- Parameters:
description- the description- Returns:
- this instance for chaining
-