Custom Agents
Custom Agents
SDK — Inline guardrails
from highflame import Highflame, Shield, BlockedError
client = Highflame(api_key="hf_sk_...")
shield = Shield(client)
@shield.prompt(mode="enforce")
def chat(message: str) -> str:
return openai.chat.completions.create(
model="openai/gpt-4o-mini",
messages=[{"role": "user", "content": message}],
).choices[0].message.contentAgent Gateway — Centralized proxy
Last updated