repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | /** |
| #2 | * Low Compute Mode |
| #3 | * |
| #4 | * Manages transitions between survival tiers. |
| #5 | * When credits run low, the automaton enters increasingly restricted modes. |
| #6 | */ |
| #7 | import type { AutomatonDatabase, InferenceClient, SurvivalTier } from "../types.js"; |
| #8 | export interface ModeTransition { |
| #9 | from: SurvivalTier; |
| #10 | to: SurvivalTier; |
| #11 | timestamp: string; |
| #12 | creditsCents: number; |
| #13 | } |
| #14 | /** |
| #15 | * Apply survival tier restrictions to the automaton. |
| #16 | */ |
| #17 | export declare function applyTierRestrictions(tier: SurvivalTier, inference: InferenceClient, db: AutomatonDatabase): void; |
| #18 | /** |
| #19 | * Record a tier transition. |
| #20 | */ |
| #21 | export declare function recordTransition(db: AutomatonDatabase, from: SurvivalTier, to: SurvivalTier, creditsCents: number): ModeTransition; |
| #22 | /** |
| #23 | * Check if the agent should be allowed to run inference in current tier. |
| #24 | */ |
| #25 | export declare function canRunInference(tier: SurvivalTier): boolean; |
| #26 | /** |
| #27 | * Get the model to use for the current tier. |
| #28 | */ |
| #29 | export declare function getModelForTier(tier: SurvivalTier, defaultModel: string): string; |
| #30 | //# sourceMappingURL=low-compute.d.ts.map |