feat: separated efficient agent mode (lite mode) for small language models

This commit is contained in:
Xiaohan-Tian
2026-06-04 16:45:06 -07:00
parent a3a0f2f4ad
commit 5c5a07b839
18 changed files with 411 additions and 20 deletions
+14
View File
@@ -74,6 +74,20 @@ export abstract class BaseTool {
return true;
}
/**
* Whether the tool is available when the assistant runs in Regular Mode.
*/
isAvailableInRegularMode(): boolean {
return true;
}
/**
* Whether the tool is available when the assistant runs in Efficient Mode.
*/
isAvailableInEfficientMode(): boolean {
return true;
}
/**
* Optionally build a compact UI summary for a successful tool result.
* The raw tool result remains the canonical output stored in agent history.