@opengeni/runtime 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/dist/{chunk-D5KU3QUC.js → chunk-HGQ252FL.js} +22 -3
- package/dist/chunk-HGQ252FL.js.map +1 -0
- package/dist/index-CSGkld-v.d.ts +1801 -0
- package/dist/index.d.ts +93 -9
- package/dist/index.js +618 -66
- package/dist/index.js.map +1 -1
- package/dist/sandbox/index.d.ts +4 -1784
- package/dist/sandbox/index.js +1 -1
- package/package.json +6 -8
- package/src/context-compaction.ts +164 -16
- package/src/history-sanitizer.ts +37 -39
- package/src/index.ts +586 -19
- package/src/metrics.ts +5 -0
- package/src/sandbox/display-stack.ts +25 -4
- package/src/sandbox/index.ts +28 -1
- package/src/sandbox-computer.ts +167 -36
- package/src/screenshot-error-card.ts +25 -0
- package/dist/chunk-D5KU3QUC.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,11 +3,12 @@ import { Tool, Computer, AgentInputItem, Model, MCPServer, ModelProvider, Agent,
|
|
|
3
3
|
export { MaxTurnsExceededError, OpenAIChatCompletionsModel, OpenAIResponsesModel } from '@openai/agents';
|
|
4
4
|
import { ContextCompactionMode, Settings, ResolvedModelProvider, ConfiguredModel, ModelProviderApi } from '@opengeni/config';
|
|
5
5
|
export { collectSandboxEnvironment, parseExposedPorts } from '@opengeni/config';
|
|
6
|
-
import { ReasoningEffort, SessionEventType, ResourceRef, ToolRef, Permission } from '@opengeni/contracts';
|
|
6
|
+
import { ReasoningEffort, SessionEventType, ResourceRef, ToolRef, Permission, McpServerConnectionRef, ToolAuthNeededPayload } from '@opengeni/contracts';
|
|
7
7
|
export { CAPABILITY_DESCRIPTORS, CapabilityDescriptor, DESKTOP_STREAM_PORT, StreamTokenPayload, StreamTokenPayload as StreamTokenPayloadType, TERMINAL_STREAM_PORT } from '@opengeni/contracts';
|
|
8
8
|
import { Capability, SandboxSessionLike, SandboxSessionState, Manifest, Capabilities, LocalDirLazySkillSource, SandboxClient } from '@openai/agents/sandbox';
|
|
9
9
|
import OpenAI from 'openai';
|
|
10
|
-
|
|
10
|
+
import { R as RuntimeMetricsHooks } from './index-CSGkld-v.js';
|
|
11
|
+
export { A as ActiveBackendResolverDeps, a as ActiveBackendUnresolvableError, b as ActivePointer, C as ChannelAConflictError, c as ChannelAEmitter, d as ChannelAExecArgs, e as ChannelAExecResult, f as ChannelANotFoundError, g as ChannelASession, h as ChannelAUnsupportedError, i as ChannelAValidationError, j as ControlRpc, D as DEFAULT_DESKTOP_GEOMETRY, k as DISPLAY_STACK_TIMEOUT_MS, l as DesktopGeometry, m as DisplayStackError, n as DisplayStackUnsupportedError, E as EnsureDisplayStackOptions, o as EnsureDisplayStackResult, p as EnsureTerminalServerOptions, q as EnsureTerminalServerResult, r as EstablishedSandboxSession, s as ExposeStreamPortInput, t as ExposeStreamPortResult, u as ExposedPortEndpoint, F as FinalizeRecordingResult, L as LiveModalSandboxLeaseAttribution, M as MintStreamTokenInput, v as MockAgentResponder, w as MockAgentResponderOptions, x as MockExecHandler, y as ModalOrphanSweepResult, z as ModalSandboxAttribution, N as NatsControlRpc, B as NatsRequestConnection, G as NegotiationContext, H as NumstatEntry, P as PROVIDER_REGISTRY, I as ProviderConstructionContext, J as ProviderRegistration, K as RecordingCodec, O as RecordingContentType, Q as RecordingError, S as RecordingProcess, T as RecordingUnavailableError, U as ResolvedActiveBackend, V as RoutableBackendSession, W as RoutableSandbox, X as RoutingSandboxSession, Y as RoutingSandboxSessionDeps, Z as RoutingTransitionEvent, _ as RoutingUnsupportedError, $ as SELFHOSTED_DEFAULT_TIMEOUT_MS, a0 as SELFHOSTED_RECONNECT_WINDOW_MS, a1 as SELFHOSTED_RELAY_STREAM_PATH, a2 as STREAM_PORT, a3 as STREAM_TOKEN_DEFAULT_TTL_SECONDS, a4 as SandboxChannelAService, a5 as SandboxChannelAServiceOptions, a6 as SandboxConfigError, a7 as SandboxCreatedCallback, a8 as SandboxProviderUnavailableError, a9 as SelfhostedApplyDiff, aa as SelfhostedControlError, ab as SelfhostedEditor, ac as SelfhostedEnrollment, ad as SelfhostedExecArgs, ae as SelfhostedExecResult, af as SelfhostedImageOutput, ag as SelfhostedLivenessState, ah as SelfhostedNegotiationInput, ai as SelfhostedRelayConfig, aj as SelfhostedSandboxClient, ak as SelfhostedSession, al as SelfhostedSessionBuild, am as SelfhostedSessionDeps, an as SelfhostedSessionState, ao as SelfhostedUnavailableReason, ap as StartRecordingInput, aq as StreamPortUnavailableError, ar as TERMINAL_SERVER_TIMEOUT_MS, as as TerminalServerError, at as TerminalServerUnsupportedError, au as agentErrorToControlError, av as assertDescriptorRegistryInvariants, aw as assertProviderRegistryInvariants, ax as assertSafeRelPath, ay as backendSupportsOs, az as buildDisplayStackScript, aA as buildSelfhostedBackendSession, aB as buildStreamUrl, aC as buildTerminalServerScript, aD as contentTypeForCodec, aE as createSandboxClient, aF as createSandboxClientForBackend, aG as decodeModalSnapshotId, aH as deletePriorPersistedSnapshot, aI as deleteRecordingArtifacts, aJ as deserializeSandboxSessionStateEnvelope, aK as desktopCapableBackend, aL as ensureDisplayStack, aM as ensureTerminalServer, aN as establishSandboxSessionFromEnvelope, aO as exposeStreamPort, aP as extForCodec, aQ as isExecSessionLostBanner, aR as isProviderSandboxNotFoundError, aS as isSelfhostedProviderNotFoundError, aT as isWorkspaceEscapeError, aU as makeActiveBackendResolver, aV as mintStreamToken, aW as modalSandboxAttributionEnvironment, aX as modalSandboxAttributionTags, aY as negotiateCapabilities, aZ as negotiateSelfhostedCapabilities, a_ as offlineAgentError, a$ as offlineControlResponse, b0 as parseExecBannerSessionId, b1 as parseNumstatZ, b2 as parsePorcelainV2, b3 as parseUnifiedPatch, b4 as readRecordingBytes, b5 as readWorkspaceArchiveFromEnvelopeSessionState, b6 as recordingStorageKey, b7 as restoredSandboxSessionStateFromEntry, b8 as sandboxStateEntryFromRunState, b9 as selectBackend, ba as selfhostedLiveness, bb as serializeEstablishedSandboxEnvelope, bc as setSelfhostedApplyDiff, bd as startRecording, be as stopRecording, bf as stripExecBanner, bg as subjectFor, bh as sweepModalOrphanSandboxes, bi as tagModalSandbox, bj as tearDownDisplayStack, bk as tearDownTerminalServer, bl as terminateModalSandboxById, bm as timeoutAgentError, bn as timeoutControlResponse, bo as verifyStreamToken } from './index-CSGkld-v.js';
|
|
11
12
|
import 'modal';
|
|
12
13
|
import '@opengeni/agent-proto';
|
|
13
14
|
|
|
@@ -65,6 +66,7 @@ declare class SandboxComputer implements Computer {
|
|
|
65
66
|
private guardWrite;
|
|
66
67
|
private shq;
|
|
67
68
|
screenshot(): Promise<string>;
|
|
69
|
+
private readCmdRaw;
|
|
68
70
|
private readScreenshotBytes;
|
|
69
71
|
click(xp: number, yp: number, button: ComputerButton): Promise<void>;
|
|
70
72
|
doubleClick(xp: number, yp: number): Promise<void>;
|
|
@@ -301,7 +303,9 @@ type CompactionItem = Record<string, unknown>;
|
|
|
301
303
|
declare const COMPACTION_SUMMARY_MARKER = "opengeni_context_summary";
|
|
302
304
|
declare const SUMMARY_BUFFER_TOKENS = 20000;
|
|
303
305
|
declare const COMPACT_USER_MESSAGE_MAX_TOKENS = 20000;
|
|
304
|
-
declare const
|
|
306
|
+
declare const DEFAULT_COMPACTION_THRESHOLD_RATIO = 0.6;
|
|
307
|
+
declare const MIN_COMPACTION_THRESHOLD_RATIO = 0.3;
|
|
308
|
+
declare const MAX_COMPACTION_THRESHOLD_RATIO = 0.9;
|
|
305
309
|
declare const COMPACTION_PROMPT: string;
|
|
306
310
|
declare const SUMMARY_PREFIX = "Another language model started to solve this problem and produced a summary of its thinking process. You also have access to the state of the tools that were used by that language model. Use this to build on the work that has already been done and avoid duplicating work. Here is the summary produced by the other language model, use the information in this summary to assist with your own analysis:";
|
|
307
311
|
declare const USER_MESSAGE_TRUNCATION_MARKER = "\n[... middle truncated for context compaction ...]\n";
|
|
@@ -315,9 +319,11 @@ declare function isCompactionSummary(item: unknown): boolean;
|
|
|
315
319
|
*/
|
|
316
320
|
declare function estimateItemTokens(item: CompactionItem): number;
|
|
317
321
|
declare function estimateTokens(items: readonly CompactionItem[]): number;
|
|
322
|
+
declare function clampCompactionThresholdRatio(value: number | undefined | null): number;
|
|
318
323
|
declare function clientCompactionThresholdTokens(input: {
|
|
319
324
|
contextWindowTokens: number;
|
|
320
325
|
contextReservedOutputTokens: number;
|
|
326
|
+
contextCompactionThresholdRatio?: number | null;
|
|
321
327
|
}): number;
|
|
322
328
|
type ClientCompactionDecision = {
|
|
323
329
|
shouldCompact: boolean;
|
|
@@ -330,6 +336,7 @@ declare function decideClientCompaction(input: {
|
|
|
330
336
|
lastInputTokens?: number | null;
|
|
331
337
|
contextWindowTokens: number;
|
|
332
338
|
contextReservedOutputTokens: number;
|
|
339
|
+
contextCompactionThresholdRatio?: number | null;
|
|
333
340
|
force?: boolean;
|
|
334
341
|
}): ClientCompactionDecision;
|
|
335
342
|
declare class CompactionNeededError extends Error {
|
|
@@ -374,12 +381,26 @@ declare function buildCompactionPromptInput(items: readonly CompactionItem[]): C
|
|
|
374
381
|
* message capped) plus one marked summary item.
|
|
375
382
|
*/
|
|
376
383
|
declare function buildCompactionReplacementHistory(items: readonly CompactionItem[], summaryBody: string): CompactionItem[];
|
|
384
|
+
type DeterministicFallbackCompactionInput = {
|
|
385
|
+
items: readonly CompactionItem[];
|
|
386
|
+
cause?: string;
|
|
387
|
+
targetTokens?: number;
|
|
388
|
+
};
|
|
389
|
+
declare function buildDeterministicFallbackCompactionHistory(input: DeterministicFallbackCompactionInput): CompactionItem[];
|
|
377
390
|
/**
|
|
378
391
|
* Build the synthetic summary item (a plain user message) appended to the
|
|
379
392
|
* rebuilt active history.
|
|
380
393
|
*/
|
|
381
394
|
declare function buildSummaryItem(summaryBody: string): CompactionItem;
|
|
382
|
-
|
|
395
|
+
type RenderCompactionTranscriptOptions = {
|
|
396
|
+
/**
|
|
397
|
+
* Hard cap for a rendered transcript. When set, oldest rendered items are
|
|
398
|
+
* dropped first while preserving the final checkpoint prompt; if the retained
|
|
399
|
+
* item itself is too large, it is middle-truncated instead of looping.
|
|
400
|
+
*/
|
|
401
|
+
maxEstimatedTokens?: number;
|
|
402
|
+
};
|
|
403
|
+
declare function renderCompactionPromptInputForChat(input: readonly CompactionItem[], options?: RenderCompactionTranscriptOptions): string;
|
|
383
404
|
|
|
384
405
|
declare const SCREENSHOT_OMITTED_PLACEHOLDER = "[screenshot omitted: an older desktop frame \u2014 the full image remains in the session event log]";
|
|
385
406
|
type ElideStaleScreenshotsResult<T> = {
|
|
@@ -406,6 +427,28 @@ type ModelResponseUsage = {
|
|
|
406
427
|
inputTokensDetails?: Record<string, number> | Array<Record<string, number>>;
|
|
407
428
|
};
|
|
408
429
|
};
|
|
430
|
+
type ResolveConnectionCredentialInput = {
|
|
431
|
+
workspaceId: string;
|
|
432
|
+
subjectId?: string;
|
|
433
|
+
serverId: string;
|
|
434
|
+
toolName?: string;
|
|
435
|
+
connectionRef: McpServerConnectionRef;
|
|
436
|
+
forceRefresh?: boolean;
|
|
437
|
+
};
|
|
438
|
+
type ResolveConnectionCredentialResult = {
|
|
439
|
+
status: "ok";
|
|
440
|
+
headers: Record<string, string>;
|
|
441
|
+
connectionId: string;
|
|
442
|
+
expiresAt?: Date | null;
|
|
443
|
+
} | {
|
|
444
|
+
status: "auth_needed";
|
|
445
|
+
reason: ToolAuthNeededPayload["reason"];
|
|
446
|
+
providerDomain: string;
|
|
447
|
+
connectionId?: string;
|
|
448
|
+
scopes?: string[];
|
|
449
|
+
resource?: string;
|
|
450
|
+
authorizationUrl?: string;
|
|
451
|
+
};
|
|
409
452
|
declare function ensureReadableStreamFrom(): void;
|
|
410
453
|
type AgentSegmentInput = {
|
|
411
454
|
kind: "message";
|
|
@@ -434,6 +477,7 @@ type SandboxFileDownload = {
|
|
|
434
477
|
expiresAt?: Date | string;
|
|
435
478
|
sizeBytes?: number;
|
|
436
479
|
};
|
|
480
|
+
declare function configureRuntimeMetricsHooks(hooks: RuntimeMetricsHooks | null | undefined): void;
|
|
437
481
|
type OpenGeniRuntime = {
|
|
438
482
|
configure: (settings: Settings) => void;
|
|
439
483
|
resolveTurnModel: (settings: Settings, modelId: string) => ReturnType<typeof resolveTurnModel>;
|
|
@@ -446,6 +490,7 @@ type OpenGeniRuntime = {
|
|
|
446
490
|
type ProductionRuntimeOverrides = {
|
|
447
491
|
model?: Model;
|
|
448
492
|
sandboxClient?: unknown;
|
|
493
|
+
metrics?: RuntimeMetricsHooks;
|
|
449
494
|
};
|
|
450
495
|
declare function createProductionAgentRuntime(overrides?: ProductionRuntimeOverrides): OpenGeniRuntime;
|
|
451
496
|
/**
|
|
@@ -455,7 +500,7 @@ declare function createProductionAgentRuntime(overrides?: ProductionRuntimeOverr
|
|
|
455
500
|
* the OpenAI-platform path has only a key (the SDK default client is used via
|
|
456
501
|
* setDefaultOpenAIKey there); the caller then constructs a key-only client.
|
|
457
502
|
*/
|
|
458
|
-
declare function buildOpenAIClientFromSettings(settings: Settings): OpenAI;
|
|
503
|
+
declare function buildOpenAIClientFromSettings(settings: Settings, providerId?: string): OpenAI;
|
|
459
504
|
declare function buildProviderClient(provider: ResolvedModelProvider, settings: Settings): OpenAI;
|
|
460
505
|
/**
|
|
461
506
|
* Bind a model id to a provider's OpenAI client as an @openai/agents `Model`
|
|
@@ -524,9 +569,10 @@ declare function configureOpenAI(settings: Settings): void;
|
|
|
524
569
|
* Run the compaction summarizer as one plain, tool-less, non-streaming model
|
|
525
570
|
* call against the resolved provider. `input` is the active history plus
|
|
526
571
|
* Codex's checkpoint prompt. Returns the trimmed summary text, or null on any
|
|
527
|
-
* failure (the caller
|
|
528
|
-
* -
|
|
529
|
-
* tools, or server-side compaction; it is a
|
|
572
|
+
* failure (the caller can retry with a harder-trimmed transcript, then fall
|
|
573
|
+
* back to deterministic non-LLM compaction). The call deliberately does NOT
|
|
574
|
+
* request reasoning encryption, tools, or server-side compaction; it is a
|
|
575
|
+
* self-contained summarize.
|
|
530
576
|
*
|
|
531
577
|
* Provider-aware: the summary always runs on the SAME provider that serves the
|
|
532
578
|
* turn (registry providers can't summarize through OpenAI/Azure, and vice
|
|
@@ -542,6 +588,7 @@ declare function summarizeForCompaction(settings: Settings, input: Array<Record<
|
|
|
542
588
|
api?: ModelProviderApi;
|
|
543
589
|
maxOutputTokens?: number;
|
|
544
590
|
model?: string;
|
|
591
|
+
maxTranscriptTokens?: number;
|
|
545
592
|
}): Promise<string | null>;
|
|
546
593
|
/**
|
|
547
594
|
* Pull the assistant text out of a Responses API result, shape-tolerant. Only
|
|
@@ -568,6 +615,7 @@ type BuildAgentOptions = {
|
|
|
568
615
|
mcpServers?: MCPServer[];
|
|
569
616
|
workspaceEnvironment?: WorkspaceEnvironmentContext;
|
|
570
617
|
gitTokenSeed?: string;
|
|
618
|
+
toolspaceTokenSeed?: string;
|
|
571
619
|
genesisTitleHint?: boolean;
|
|
572
620
|
instructionsTemplate?: string;
|
|
573
621
|
sessionInstructions?: string;
|
|
@@ -631,6 +679,37 @@ declare function appendSessionInstructions(composed: string, sessionInstructions
|
|
|
631
679
|
* instruction can't drop it. A no-op when the hint is absent.
|
|
632
680
|
*/
|
|
633
681
|
declare function appendGenesisTitleDirective(instructions: string, genesisTitleHint?: boolean): string;
|
|
682
|
+
/**
|
|
683
|
+
* The tool output emitted for an MCP tool call that FAILED with a THROWN error
|
|
684
|
+
* — a JSON-RPC protocol error (e.g. -32602 invalid params), an auth 401/403, a
|
|
685
|
+
* transport failure, a timeout, or tool-not-found. Shaped as an MCP
|
|
686
|
+
* `{ isError: true, content }` result so the failure is CARRIED on the tool
|
|
687
|
+
* output rather than erased.
|
|
688
|
+
*
|
|
689
|
+
* The SDK's `defaultToolErrorFunction` would instead turn a thrown tool error
|
|
690
|
+
* into a plain STRING ("An error occurred while running the tool…") returned as
|
|
691
|
+
* a NORMAL, successful-looking result — so `agent.toolCall.output` carried no
|
|
692
|
+
* error signal and the timeline rendered the failure as success. `normalizeSdkEvent`
|
|
693
|
+
* captures `RunToolCallOutputItem.output` (the raw function return) verbatim, so
|
|
694
|
+
* returning this object makes the emitted payload's `output.isError === true`,
|
|
695
|
+
* which the timeline projection's `isErrorOutput` (packages/react/src/timeline/
|
|
696
|
+
* projection.ts) settles to "failed" and downstream client normalizers read the same field.
|
|
697
|
+
*
|
|
698
|
+
* SCOPE: this only covers THROWN MCP failures (the ones that reach an
|
|
699
|
+
* errorFunction). An MCP tool result carrying `isError: true` INLINE alongside
|
|
700
|
+
* content is stripped to its `content` by @openai/agents-core's streamable-http
|
|
701
|
+
* shim (dist/shims/mcp-server/node.js `callTool` returns `parsed.content`,
|
|
702
|
+
* dropping `parsed.isError`) BEFORE the runtime ever sees it. Covering that mode
|
|
703
|
+
* requires an SDK-level change (preserve `isError`) or reading the raw
|
|
704
|
+
* CallToolResult — tracked separately.
|
|
705
|
+
*/
|
|
706
|
+
declare function mcpToolErrorOutput(error: unknown): {
|
|
707
|
+
isError: true;
|
|
708
|
+
content: [{
|
|
709
|
+
type: "text";
|
|
710
|
+
text: string;
|
|
711
|
+
}];
|
|
712
|
+
};
|
|
634
713
|
declare function buildOpenGeniAgent(settings: Settings, resources: ResourceRef[], options?: BuildAgentOptions): Agent<any, any>;
|
|
635
714
|
/**
|
|
636
715
|
* Build the SandboxAgent capability set provider-aware.
|
|
@@ -675,6 +754,8 @@ type PrepareToolsOptions = {
|
|
|
675
754
|
subjectId?: string;
|
|
676
755
|
subjectLabel?: string;
|
|
677
756
|
firstPartyPermissions?: Permission[];
|
|
757
|
+
resolveCredential?: (input: ResolveConnectionCredentialInput) => Promise<ResolveConnectionCredentialResult>;
|
|
758
|
+
onAuthNeeded?: (payload: ToolAuthNeededPayload) => Promise<void> | void;
|
|
678
759
|
};
|
|
679
760
|
declare function prepareAgentTools(settings: Settings, tools: ToolRef[], options?: PrepareToolsOptions): Promise<PreparedAgentTools>;
|
|
680
761
|
declare function prefixedMcpToolName(registryId: string, toolName: string): string;
|
|
@@ -796,6 +877,7 @@ type SandboxLifecycleHookContext = {
|
|
|
796
877
|
onRuntimeEvent?: (event: NormalizedRuntimeEvent) => Promise<void> | void;
|
|
797
878
|
runAs?: string;
|
|
798
879
|
gitTokenSeed?: string;
|
|
880
|
+
toolspaceTokenSeed?: string;
|
|
799
881
|
};
|
|
800
882
|
type SandboxLifecycleHook = {
|
|
801
883
|
id: string;
|
|
@@ -841,6 +923,8 @@ declare function repositoryUsesSandboxClone(settings: Settings, resource: Extrac
|
|
|
841
923
|
declare function repositoryCloneCommand(resources: Extract<ResourceRef, {
|
|
842
924
|
kind: "repository";
|
|
843
925
|
}>[]): string;
|
|
926
|
+
declare function toolspaceTokenSeedCommand(): string;
|
|
927
|
+
declare function runToolspaceTokenSeedHook(session: SandboxSessionLike, context: SandboxLifecycleHookContext): Promise<void>;
|
|
844
928
|
declare function runRepositoryCloneHook(session: SandboxSessionLike, resources: Extract<ResourceRef, {
|
|
845
929
|
kind: "repository";
|
|
846
930
|
}>[], context?: SandboxLifecycleHookContext): Promise<void>;
|
|
@@ -861,4 +945,4 @@ declare function azureOpenAIDefaultQuery(settings: Pick<Settings, "azureOpenaiAp
|
|
|
861
945
|
*/
|
|
862
946
|
declare function lazySkillSourceWithPackSkills(packSkills: PackSkill[]): LocalDirLazySkillSource;
|
|
863
947
|
|
|
864
|
-
export { type AgentSegmentInput, type BuildAgentOptions,
|
|
948
|
+
export { type AgentSegmentInput, type BuildAgentOptions, COMPACTION_PROMPT, COMPACTION_SUMMARY_MARKER, COMPACT_USER_MESSAGE_MAX_TOKENS, type ClientCompactionDecision, CodexSubscriptionUnavailableError, type CompactionItem, CompactionNeededError, ComputerActionError, ComputerReadOnlyError, type ComputerToolMode, ComputerUnavailableError, type ComputerUseArgs, ComputerUseCapability, type ContextRobustnessFilterOptions, DEFAULT_COMPACTION_THRESHOLD_RATIO, type ElideStaleScreenshotsOptions, type ElideStaleScreenshotsResult, GENESIS_TITLE_DIRECTIVE, type HistoryItem, MAX_COMPACTION_THRESHOLD_RATIO, MIN_COMPACTION_THRESHOLD_RATIO, type ModelResponseUsage, MultiProviderModelProvider, type NormalizedRuntimeEvent, type OpenGeniRuntime, type PackSkill, type PackSkillFile, type PrepareInputOptions, type PrepareToolsOptions, type PreparedAgentInput, type PreparedAgentTools, type ProductionRuntimeOverrides, type ResolveConnectionCredentialInput, type ResolveConnectionCredentialResult, type RunAgentStreamOptions, RuntimeMetricsHooks, SCREENSHOT_OMITTED_PLACEHOLDER, SUMMARY_BUFFER_TOKENS, SUMMARY_PREFIX, SandboxComputer, type SandboxComputerOptions, type SandboxFileDownload, type SandboxLifecycleHook, type SandboxLifecycleHookContext, type SandboxLifecycleHookPhase, USER_MESSAGE_TRUNCATION_MARKER, type WorkspaceEnvironmentContext, agentsErrorRunState, appendGenesisTitleDirective, appendSessionInstructions, applyMissingManifestEntries, azureCliLoginCommand, azureOpenAIDefaultQuery, buildAgentCapabilities, buildCompactionPromptInput, buildCompactionReplacementHistory, buildDeterministicFallbackCompactionHistory, buildManifest, buildModelInstance, buildOpenAIClientFromSettings, buildOpenGeniAgent, buildProviderClient, buildSummaryItem, callModelInputFilterForSettings, clampCompactionThresholdRatio, clientCompactionThresholdTokens, composeAgentInstructions, computerUse, configureOpenAI, configureRuntimeMetricsHooks, contextRobustnessFilterForSettings, coreInstructions, createProductionAgentRuntime, decideClientCompaction, elideStaleScreenshotImages, enforceInputBudget, ensureReadableStreamFrom, estimateItemTokens, estimateTokens, extractResponseOutputText, findCompactionNeededError, findKeepBoundary, isCompactionSummary, isUserMessage, lazySkillSourceWithPackSkills, materializeSandboxFileDownloads, maxTurnsExceededRunState, mcpToolErrorOutput, modelResponseUsageFromSdkEvent, neutralizeToolSearchItemsInSerializedRunState, normalizeComputerCallsFilter, normalizeSdkEvent, normalizeToolOutputForEvent, prefixedMcpToolName, prepareAgentTools, prepareRunInput, renderCompactionPromptInputForChat, repositoryCloneCommand, repositoryUsesSandboxClone, resolveTurnModel, runAgentStream, runAzureCliLoginHook, runBeforeAgentStartHooks, runRepositoryCloneHook, runToolspaceTokenSeedHook, sandboxCommandExitCode, sandboxCommandOutput, sandboxCommandStillRunning, sandboxFileDownloadsForAgent, sandboxLifecycleHooksForIds, sandboxRunAs, sanitizeHistoryItemsForModel, serializeApprovals, stripProviderItemIdsFilter, stripReasoningEncryptedContent, stripReasoningIdentityFromSerializedRunState, summarizeForCompaction, toolspaceTokenSeedCommand, withManifestRefreshOnResume, withSandboxFileDownloads, withSandboxLifecycleHooks, workspaceEnvironmentInstructions };
|