Download src/agents/embedded-agent-runner/compact.runtime.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 805 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/agents/embedded-agent-runner/compact.runtime.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/agents/embedded-agent-runner/compact.runtime.ts
-
curl -L -o compact.runtime.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/agents/embedded-agent-runner/compact.runtime.ts
805 Bytes
| /** | |
| * Lazy-loads the embedded-agent compaction runtime. | |
| */ | |
| import { createLazyImportLoader } from "../../shared/lazy-promise.js"; | |
| import type { CompactEmbeddedAgentSessionRuntimeParams } from "./compact.types.js"; | |
| import type { EmbeddedAgentCompactResult } from "./types.js"; | |
| const compactRuntimeLoader = createLazyImportLoader(() => import("./compact.js")); | |
| function loadCompactRuntime() { | |
| return compactRuntimeLoader.load(); | |
| } | |
| /** Loads the compaction runtime on demand and forwards the direct compaction call. */ | |
| export async function compactEmbeddedAgentSessionOnDemand( | |
| params: CompactEmbeddedAgentSessionRuntimeParams, | |
| ): Promise<EmbeddedAgentCompactResult> { | |
| const { compactEmbeddedAgentSessionDirect } = await loadCompactRuntime(); | |
| return compactEmbeddedAgentSessionDirect(params); | |
| } | |