Class DefaultAgentConfig

java.lang.Object
com.github.copilot.rpc.DefaultAgentConfig

public class DefaultAgentConfig extends Object
Configuration for the default agent (the built-in agent that handles turns when no custom agent is selected).

Use setExcludedTools(List) to hide specific tools from the default agent while keeping them available to custom sub-agents.

Example Usage

var config = new SessionConfig().setTools(List.of(secretTool))
		.setDefaultAgent(new DefaultAgentConfig().setExcludedTools(List.of("secret_tool")));
Since:
1.3.0
See Also:
  • Constructor Details

    • DefaultAgentConfig

      public DefaultAgentConfig()
  • Method Details

    • getExcludedTools

      public List<String> getExcludedTools()
      Gets the list of tool names excluded from the default agent.
      Returns:
      the list of excluded tool names, or null if not set
    • setExcludedTools

      public DefaultAgentConfig setExcludedTools(List<String> excludedTools)
      Sets the list of tool names to exclude from the default agent.

      These tools remain available to custom sub-agents that reference them in their CustomAgentConfig.setTools(List) list.

      Parameters:
      excludedTools - the list of tool names to exclude from the default agent
      Returns:
      this config for method chaining