MCPcopy Create free account
hub / github.com/ConardLi/easy-agent / constructor

Method constructor

src/core/queryEngine.ts:152–162  ·  view source on GitHub ↗
(options: QueryEngineOptions)

Source from the content-addressed store, hash-verified

150 private readonly sessionPermissionRules: PermissionRuleSet;
151 private readonly onPermissionRequest?: (request: PermissionRequest) => Promise<PermissionDecision>;
152 private readonly defaultMaxTurns?: number;
153 /** Keeps the system prompt fixed for the session; see sessionPromptContext.ts. */
154 private readonly promptContext: SessionPromptContext;
155 private abortController: AbortController | null = null;
156 /** A submission is running, possibly before it has an abort controller. */
157 private submitting = false;
158 /** An interrupt arrived before the running submission could be aborted. */
159 private interruptRequested = false;
160 private usageAnchorIndex: number = -1;
161 private lastCallUsage: Usage = { input_tokens: 0, output_tokens: 0 };
162 private modeChangeCallback?: (mode: PermissionMode, previousMode: PermissionMode) => void;
163 private needsPlanModeExitAttachment = false;
164 /**
165 * Tracks whether SessionStart hooks have already fired

Callers

nothing calls this directly

Calls 1

createEmptyUsageFunction · 0.90

Tested by

no test coverage detected