{
  "openapi": "3.1.0",
  "info": {
    "title": "AgentWire Modern AI Stack API",
    "version": "2.0.0",
    "description": "Serverless multi-model agent runtime supporting REST, SSE Streaming, Model Context Protocol (MCP), Google A2A v1.0, OpenAI Chat Completions / Responses APIs, and Automated Evals."
  },
  "servers": [
    {
      "url": "http://127.0.0.1:9160"
    }
  ],
  "paths": {
    "/api/agents": {
      "get": {
        "summary": "List all deployed agents",
        "operationId": "listAgents"
      },
      "post": {
        "summary": "Deploy a new agent with MCPs, skills, guardrails, and model failover",
        "operationId": "createAgent"
      }
    },
    "/api/agents/{id}/run": {
      "post": {
        "summary": "Execute an agent (supports JSON, SSE streaming, structured outputs, reasoning effort, and stateful sessions)",
        "operationId": "runAgent"
      }
    },
    "/api/agents/{id}/eval": {
      "post": {
        "summary": "Run deterministic evaluation suite against an agent",
        "operationId": "evalAgent"
      }
    },
    "/mcp": {
      "post": {
        "summary": "Model Context Protocol (MCP) Streamable HTTP JSON-RPC 2.0 endpoint",
        "operationId": "mcpJsonRpc"
      }
    },
    "/api/a2a": {
      "post": {
        "summary": "Google Agent-to-Agent (A2A v1.0) JSON-RPC 2.0 endpoint (tasks/send, tasks/get, tasks/cancel)",
        "operationId": "a2aJsonRpc"
      }
    },
    "/v1/models": {
      "get": {
        "summary": "OpenAI-compatible models list exposing all deployed agents",
        "operationId": "listOpenAiModels"
      }
    },
    "/v1/chat/completions": {
      "post": {
        "summary": "OpenAI-compatible Chat Completions endpoint routed through AgentWire",
        "operationId": "createChatCompletion"
      }
    },
    "/v1/responses": {
      "post": {
        "summary": "OpenAI-compatible Responses API endpoint routed through AgentWire",
        "operationId": "createResponse"
      }
    }
  }
}