import { createSessionManagerRuntimeRegistry } from "../session-manager-runtime-registry.js"; import type { EffectiveContextPruningSettings } from "./settings.js";
export type ContextPruningRuntimeValue = {
settings: EffectiveContextPruningSettings;
contextWindowTokens?: number | null;
isToolPrunable: (toolName: string) => boolean;
dropThinkingBlocks: boolean;
lastCacheTouchAt?: number | null;
};
// Important: this relies on Pi passing the same SessionManager object instance into // ExtensionContext (ctx.sessionManager) that we used when calling setContextPruningRuntime. const registry = createSessionManagerRuntimeRegistry<ContextPruningRuntimeValue>();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.