Download src/agents/runtime/index.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 1.25 kB
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/agents/runtime/index.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/agents/runtime/index.ts
-
curl -L -o index.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/agents/runtime/index.ts
1.25 kB
| /** OpenClaw-owned agent runtime facade; the plugin SDK module owns the adapter. */ | |
| export { | |
| Agent, | |
| bashExecutionToText, | |
| buildSessionContext, | |
| calculateContextTokens, | |
| collectEntriesForBranchSummaryFromBranches, | |
| compact, | |
| estimateContextTokens, | |
| estimateTokens, | |
| findCutPoint, | |
| findTurnStartIndex, | |
| generateBranchSummary, | |
| generateSummary, | |
| getLastAssistantUsage, | |
| openClawAgentCoreRuntime, | |
| prepareBranchEntries, | |
| prepareCompaction, | |
| serializeConversation, | |
| shouldCompact, | |
| BRANCH_SUMMARY_PREFIX, | |
| BRANCH_SUMMARY_SUFFIX, | |
| COMPACTION_SUMMARY_PREFIX, | |
| COMPACTION_SUMMARY_SUFFIX, | |
| DEFAULT_COMPACTION_SETTINGS, | |
| IMAGE_BLOCK_TOKENS, | |
| } from "../../plugin-sdk/agent-core.js"; | |
| export type { | |
| AfterToolCallContext, | |
| AfterToolCallResult, | |
| AgentEvent, | |
| AgentMessage, | |
| AgentOptions, | |
| AgentState, | |
| AgentTool, | |
| AgentToolResult, | |
| AgentToolUpdateCallback, | |
| BashExecutionMessage, | |
| BranchPreparation, | |
| BranchSummaryDetails, | |
| BranchSummaryResult, | |
| CompactionDetails, | |
| CompactionPreparation, | |
| CompactionResult, | |
| CompactionSettings, | |
| CompactionSummaryPrompt, | |
| ContextUsageEstimate, | |
| FileOperations, | |
| Result, | |
| SessionTreeEntry, | |
| StreamFn, | |
| ThinkingLevel, | |
| ToolExecutionMode, | |
| } from "../../plugin-sdk/agent-core.js"; | |