Files
oh-my-opencode/dist/tools/delegate-task/token-limiter.d.ts
T
2026-03-14 04:56:50 +00:00

5 lines
354 B
TypeScript

import type { BuildSystemContentInput } from "./types";
export declare function estimateTokenCount(text: string): number;
export declare function truncateToTokenBudget(content: string, maxTokens: number): string;
export declare function buildSystemContentWithTokenLimit(input: BuildSystemContentInput, maxTokens: number | undefined): string | undefined;