{
  "schema_version": "openagent.agent_resource_packet.v1",
  "id": "res_phi_4",
  "slug": "phi-4",
  "name": "Phi-4",
  "canonical_url": "https://www.openagent.bot/models/phi-4",
  "category": "models",
  "resource_type": "model",
  "summary": "Microsoft's compact 14B dense reasoning model, MIT-licensed, tops MMLU in its size class with 16K context.",
  "capabilities": [
    "local-inference",
    "inference"
  ],
  "constraints": [
    "open-source",
    "open-weights",
    "self-hosted",
    "local-first"
  ],
  "scenarios": [
    "local-ai",
    "self-hosted-ai"
  ],
  "deployment_modes": [
    "local",
    "self_hosted",
    "cloud"
  ],
  "interfaces": [
    "docs",
    "demo"
  ],
  "integrations": [
    "GitHub",
    "Hugging Face"
  ],
  "permission_surface": [
    "memory"
  ],
  "risk_level": "low",
  "source_confidence": "low",
  "recommended_workflows": [
    "Local or private AI stack"
  ],
  "avoid_when": [
    "Use cases requiring very long context beyond 16K tokens",
    "Workloads that need a large MoE architecture with hundreds of billions of parameters"
  ],
  "primary_actions": [
    "Open Hugging Face"
  ],
  "evidence_urls": [
    "https://huggingface.co/microsoft/phi-4"
  ],
  "last_verified_at": "2026-06-16",
  "machine_readable": {
    "json_url": "https://www.openagent.bot/models/phi-4.json",
    "markdown_url": "https://www.openagent.bot/models/phi-4.md",
    "agent_json_url": "https://www.openagent.bot/models/phi-4.agent.json"
  }
}