include model roles subagent

This commit is contained in:
uinstinct 2026-01-07 18:24:28 +05:30
parent 5abe556ddc
commit 27ac8cc23b
2 changed files with 7 additions and 1 deletions

View file

@ -335,6 +335,10 @@ export async function configYamlToContinueConfig(options: {
if (model.roles?.includes("rerank")) {
continueConfig.modelsByRole.rerank.push(...llms);
}
if (model.roles?.includes("subagent")) {
continueConfig.modelsByRole.subagent.push(...llms);
}
} catch (e) {
localErrors.push({
fatal: false,

View file

@ -42,7 +42,9 @@ export const subagentTool: GetTool = (params) => ({
const agent = getSubagent(params.modelServiceState, subagent_name);
if (!agent) {
throw new Error(
`Unknown agent type: ${subagent_name}. Available agents: general`,
`Unknown agent type: ${subagent_name}. Available agents: ${getSubagentNames(
params.modelServiceState,
).join(", ")}`,
);
}