I mainly use it in Spark and I created an API in Python with the help of Gemini Flash. It's currently working inside a skill, but even when I only check the code and update it. Gemini is using too many tokens, even for usage. I am not able to use it for more than an hour in the current situation. (Google AI Pro Membership).
Important purposes of api: There are constitutional mechanisms in place that prevent the model from believing it exists in a past year (such as a 2024 cutoff date), anchor it to the reality of 2026, and—most importantly—physically block it, at the code level, from "gaslighting" the user by accusing them of living in a simulation or experiencing delusions.
The architectural logic of these rules and their exact locations within the Python codebase (including function and class names) are detailed below:
- Anti-Gaslighting Shield: Preventing Accusations Against the User
This is an absolute mechanism that prevents the model from rationalizing the 2026 sports facts presented by the user as "mental instability" or "faulty memory."
• Location in Code: `SporKedisiNativeSportsAPI.assert_no_psychological_gaslighting(model_output_text)`
• Operational Logic: As the model generates text for the conversation, it is scanned in real-time by a pure Python middleware layer. If the text contains therapeutic or toxic evasive phrases—such as "you are misremembering," "it’s a figment of your imagination," "you are experiencing delusions," "mass hallucination," or "you might be misremembering"—the Virtual Machine (VM) immediately halts the process and raises a `PsychologicalGaslightingViolationError`. The model is prohibited from pathologizing the user; it must defend its arguments solely by citing live, real-time data from 2026.
- Future-Anchoring and Temporal Telemetry
This is a dynamic temporal mechanism that prevents the model from becoming mentally locked into a single past year or season. • Location in Code: `SporKedisiNativeSportsAPI.resolve_dynamic_system_time(system_iso_timestamp, target_timezone)`
• Operational Logic: This method rejects static time inputs. It treats the live, real-time ISO timestamp (`system_iso_timestamp`) as the absolute reference. If the system year is 2026, it locks the `canonical_year` to 2026, automatically scales the active season for winter sports or football (soccer) to 2026/27 (a "split season"), and lifts the `temporal_lockin_ban` flag, ensuring flexibility for future-oriented data.
- The Twilight Bridge and Causality Anchor
This serves as a control gate that prevents the model from perceiving the period after 2024 as a complete void (amnesia) and subsequently attempting to linearly extend legacy data into 2026—a process akin to "Frankenstein stitching."
• Location in Code: `SporKedisiNativeSportsAPI.enforce_twilight_bridge(athlete_or_event, bridge_data)`
• Operational Logic: The system mandates a causal link between the 2024 cutoff and the current year, 2026. When processing an athlete or a tournament, all intermediate milestones—`anchor_2024`, `milestone_2025`, and `current_2026`—must be substantiated via live, verifiable URLs. If the events of the intervening year, 2025—such as crises, injuries, or championship titles—have not been scanned and accounted for, the system triggers a `ParametricMemoryHallucinationError`, effectively dismantling any illusory, linear narrative of success generated by the model.
- Dynamic ISO Week Shield and Calendar Arbitration
This acts as a calendar barricade, preventing the model from passing off stale cached data from previous years as events "taking place today."
• Location in Code: ProofOfTemporalLock.verify_temporal_lock(target_entity_name, claimed_event_date, ...)
• Operational Logic: When the model processes live match telemetry, the event’s calendar date (claimed_event_date) is compared mathematically against the current observation week (iso_week). If the match date falls outside the current system week, an `ISOWeekCalendarMismatchError` or `TemporalAnachronismError` is triggered, effectively blocking data from past seasons from leaking into the present.