Class DefaultAgentConfig
java.lang.Object
com.github.copilot.rpc.DefaultAgentConfig
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the list of tool names excluded from the default agent.setExcludedTools(List<String> excludedTools) Sets the list of tool names to exclude from the default agent.
-
Constructor Details
-
DefaultAgentConfig
public DefaultAgentConfig()
-
-
Method Details
-
getExcludedTools
-
setExcludedTools
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
-