Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default class AdminForthAgentPlugin extends AdminForthPlugin {
options: PluginOptions;
apiBasedTools: Record<string, ApiBasedTool> = {};
agentSystemPromptPromise: Promise<string>;
pluginsScope: "resource" | "global" = "global";
private checkpointer: BaseCheckpointSaver | null = null;
private readonly modelsByModeName = new Map<
string,
Expand Down Expand Up @@ -181,8 +182,8 @@ export default class AdminForthAgentPlugin extends AdminForthPlugin {
this.shouldHaveSingleInstancePerWholeApp = () => false;
}

async modifyResourceConfig(adminforth: IAdminForth, resourceConfig: AdminForthResource) {
super.modifyResourceConfig(adminforth, resourceConfig);
async modifyGlobalConfig(adminforth: IAdminForth) {
super.modifyGlobalConfig(adminforth);
if (!this.options.modes?.length) {
throw new Error("modes is required for AdminForthAgentPlugin");
}
Expand Down