Class AgentsDiscoverRequest

java.lang.Object
com.github.copilot.generated.rpc.AgentsDiscoverRequest

@CopilotExperimental @Generated("copilot-sdk-codegen") public final class AgentsDiscoverRequest extends Object
Optional project paths to include in agent discovery.

Required inputs are constructor arguments. Optional inputs have fluent setters.

Since:
1.0.0
  • Constructor Details

    • AgentsDiscoverRequest

      public AgentsDiscoverRequest()
      Creates a request with its required inputs.
  • Method Details

    • getProjectPaths

      public List<String> getProjectPaths()
      Returns the projectPaths property.
      Returns:
      Optional list of project directory paths to scan for project-scoped agents. When omitted or empty, only user/plugin/remote-independent agents are returned (no project scan).
    • getExcludeHostAgents

      public Boolean getExcludeHostAgents()
      Returns the excludeHostAgents property.
      Returns:
      When true, omit the host's agents (the user-level agent directory and all plugin agents), leaving only project and remote agents. For multitenant deployments.
    • getAgentDirectories

      public List<String> getAgentDirectories()
      Returns the agentDirectories property.
      Returns:
      Explicit discovery-only agent roots, separate from customAgents and filesystem grants. Available without ambient discovery, subject to managed/source disables. Relative paths resolve against the request's effective working directory when supplied. Null and omission are equivalent; an empty array contributes no explicit roots.
    • setProjectPaths

      public AgentsDiscoverRequest setProjectPaths(List<String> value)
      Sets the projectPaths property.
      Parameters:
      value - Optional list of project directory paths to scan for project-scoped agents. When omitted or empty, only user/plugin/remote-independent agents are returned (no project scan).
      Returns:
      this request
    • setExcludeHostAgents

      public AgentsDiscoverRequest setExcludeHostAgents(Boolean value)
      Sets the excludeHostAgents property.
      Parameters:
      value - When true, omit the host's agents (the user-level agent directory and all plugin agents), leaving only project and remote agents. For multitenant deployments.
      Returns:
      this request
    • setAgentDirectories

      public AgentsDiscoverRequest setAgentDirectories(List<String> value)
      Sets the agentDirectories property.
      Parameters:
      value - Explicit discovery-only agent roots, separate from customAgents and filesystem grants. Available without ambient discovery, subject to managed/source disables. Relative paths resolve against the request's effective working directory when supplied. Null and omission are equivalent; an empty array contributes no explicit roots.
      Returns:
      this request