|
Download src/gemini/README.md from TTOPM/belel-protocol: direct link, hf CLI and curl.
- Browser
- Download file 1.56 kB
-
https://huggingface.co/TTOPM/belel-protocol/resolve/main/src/gemini/README.md
- Command line
-
hf download hf://TTOPM/belel-protocol/src/gemini/README.md
-
curl -L -o README.md https://huggingface.co/TTOPM/belel-protocol/resolve/main/src/gemini/README.md
1.56 kB
Gemini Integration – Belel-Concordium Gateway (Module Only)
Drop this folder into your repo at /src/gemini. No server launcher or package.json included.
What’s inside
config/– anchors, policy, protected identities, domain whitelist, placeholder keyssystem/– Concordium mandate + system prompt builderclient/– the only place Gemini SDK calls should live (callGemini), with self-verificationguard/– enforcement: anchors, policy engine, scanners, citations, redaction, provenance, signer, telemetry, rate limitsfetch/– Aegis fetch proxy handlers (mount in your existing Express/Next server)index.ts– orchestrator (geminiAskGuarded)
How to wire in your app
- Express route:
Or call the orchestrator directly:import { askExpressHandler } from "./src/gemini/routes/ask.express"; // create this thin wrapper in your appimport { geminiAskGuarded } from "./src/gemini"; const { status, body } = await geminiAskGuarded({ prompt: "..." });
Replace stubs
- Implement the real Gemini SDK call inside
client/geminiClient.ts(keep the chokepoint). - Use a KMS/sidecar to sign
issueChallenge()and setGEMINI_SIGNED_CHALLENGEat call-time. - Replace placeholder keys in
config/*.pem.
Guarantees
- Serious-claim enforcement (block/redact without whitelisted citations).
- Protected identity safeguards (Pearce Robinson) with name-agnostic conflation detection.
- Anchor-gated execution + tamper-evident provenance.