/
opt
/
canhelp
/
node_modules
/
@anthropic-ai
/
sdk
/
lib
/
tools
/
/opt/canhelp/node_modules/@anthropic-ai/sdk/lib/tools
mkdir
upload
Name
Size
Mode
Actions
BetaRunnableTool.d.mts
1119
0644
edit
dl
rm
BetaRunnableTool.d.mts.map
767
0644
edit
dl
rm
BetaRunnableTool.d.ts
1117
0644
edit
dl
rm
BetaRunnableTool.d.ts.map
766
0644
edit
dl
rm
BetaRunnableTool.js
121
0644
edit
dl
rm
BetaRunnableTool.js.map
137
0644
edit
dl
rm
BetaRunnableTool.mjs
56
0644
edit
dl
rm
BetaRunnableTool.mjs.map
138
0644
edit
dl
rm
BetaToolRunner.d.mts
5862
0644
edit
dl
rm
BetaToolRunner.d.mts.map
1743
0644
edit
dl
rm
BetaToolRunner.d.ts
5855
0644
edit
dl
rm
BetaToolRunner.d.ts.map
1742
0644
edit
dl
rm
BetaToolRunner.js
19102
0644
edit
dl
rm
BetaToolRunner.js.map
9295
0644
edit
dl
rm
BetaToolRunner.mjs
18438
0644
edit
dl
rm
BetaToolRunner.mjs.map
9326
0644
edit
dl
rm
CompactionControl.d.mts
2238
0644
edit
dl
rm
CompactionControl.d.mts.map
418
0644
edit
dl
rm
CompactionControl.d.ts
2236
0644
edit
dl
rm
CompactionControl.d.ts.map
417
0644
edit
dl
rm
CompactionControl.js
1601
0644
edit
dl
rm
CompactionControl.js.map
229
0644
edit
dl
rm
CompactionControl.mjs
1460
0644
edit
dl
rm
CompactionControl.mjs.map
247
0644
edit
dl
rm
ToolError.d.mts
1107
0644
edit
dl
rm
ToolError.d.mts.map
336
0644
edit
dl
rm
ToolError.d.ts
1105
0644
edit
dl
rm
ToolError.d.ts.map
335
0644
edit
dl
rm
ToolError.js
1245
0644
edit
dl
rm
ToolError.js.map
609
0644
edit
dl
rm
ToolError.mjs
1117
0644
edit
dl
rm
ToolError.mjs.map
599
0644
edit
dl
rm
ToolRunner.d.mts
5569
0644
edit
dl
rm
ToolRunner.d.mts.map
1564
0644
edit
dl
rm
ToolRunner.d.ts
5564
0644
edit
dl
rm
ToolRunner.d.ts.map
1563
0644
edit
dl
rm
ToolRunner.js
14656
0644
edit
dl
rm
ToolRunner.js.map
6662
0644
edit
dl
rm
ToolRunner.mjs
14145
0644
edit
dl
rm
ToolRunner.mjs.map
6664
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.d.ts
(2236B)
import { Model } from "../../resources.js"; export declare const DEFAULT_TOKEN_THRESHOLD = 100000; export declare const DEFAULT_SUMMARY_PROMPT = "You have been working on the task described above but have not yet completed it. Write a continuation summary that will allow you (or another instance of yourself) to resume work efficiently in a future context window where the conversation history will be replaced with this summary. Your summary should be structured, concise, and actionable. Include:\n1. Task Overview\nThe user's core request and success criteria\nAny clarifications or constraints they specified\n2. Current State\nWhat has been completed so far\nFiles created, modified, or analyzed (with paths if relevant)\nKey outputs or artifacts produced\n3. Important Discoveries\nTechnical constraints or requirements uncovered\nDecisions made and their rationale\nErrors encountered and how they were resolved\nWhat approaches were tried that didn't work (and why)\n4. Next Steps\nSpecific actions needed to complete the task\nAny blockers or open questions to resolve\nPriority order if multiple steps remain\n5. Context to Preserve\nUser preferences or style requirements\nDomain-specific details that aren't obvious\nAny promises made to the user\nBe concise but complete\u2014err on the side of including information that would prevent duplicate work or repeated mistakes. Write in a way that enables immediate resumption of the task.\nWrap your summary in <summary></summary> tags."; export interface CompactionControl { /** * The context token threshold at which to trigger compaction. * * When the cumulative token count (input + output) across all messages exceeds this threshold, * the message history will be automatically summarized and compressed. * * @default 100000 */ contextTokenThreshold?: number; /** * The model to use for generating the compaction summary. * If not specified, defaults to the same model used for the tool runner. */ model?: Model; /** * The prompt used to instruct the model on how to generate the summary. */ summaryPrompt?: string; enabled: boolean; } //# sourceMappingURL=CompactionControl.d.ts.map
Save
cmd:
run