In the CLI you can set the agent you want to use -

From what i can see with the SDK you can only give it a list of Agents to use -
public List<CustomAgentConfig>? CustomAgents { get; set; }
With no option to set which one to use manually. In the custom agent model there is an Infer boolean property which means when set to false that agent wont be used automatically, but without a way to manually set one whats the point of it?
public bool? Infer { get; set; }
Also based on the docs should Infer be changed to DisableModelInvocation, to match the docs -
https://docs.github.com/en/copilot/reference/custom-agents-configuration#:~:text=disable%2Dmodel%2Dinvocation,to%20true.
In the CLI you can set the agent you want to use -

From what i can see with the SDK you can only give it a list of Agents to use -
With no option to set which one to use manually. In the custom agent model there is an
Inferboolean property which means when set to false that agent wont be used automatically, but without a way to manually set one whats the point of it?