Class AgentInfo

java.lang.Object
com.github.copilot.sdk.json.AgentInfo

public class AgentInfo extends Object
Represents a custom agent available for selection in a session.
Since:
1.0.11
  • Constructor Details

    • AgentInfo

      public AgentInfo()
  • Method Details

    • getName

      public String getName()
      Gets the unique identifier of the agent.
      Returns:
      the agent name/identifier
    • setName

      public AgentInfo setName(String name)
      Sets the unique identifier of the agent.
      Parameters:
      name - the agent name/identifier
      Returns:
      this instance for chaining
    • getDisplayName

      public String getDisplayName()
      Gets the human-readable display name of the agent.
      Returns:
      the display name
    • setDisplayName

      public AgentInfo setDisplayName(String displayName)
      Sets the human-readable display name of the agent.
      Parameters:
      displayName - the display name
      Returns:
      this instance for chaining
    • getDescription

      public String getDescription()
      Gets the description of the agent's purpose.
      Returns:
      the description
    • setDescription

      public AgentInfo setDescription(String description)
      Sets the description of the agent's purpose.
      Parameters:
      description - the description
      Returns:
      this instance for chaining