{
  "openapi": "3.1.0",
  "info": {
    "title": "Rinat Sultanov public agent APIs",
    "version": "1.0.0",
    "description": "Read-only interfaces; no paid model, checkout, AI Gateway or production writes."
  },
  "servers": [
    {
      "url": "https://rinatsultan.com"
    }
  ],
  "paths": {
    "/nlweb/ask": {
      "post": {
        "operationId": "askPublicSite",
        "summary": "NLWeb 0.55 public-page search",
        "description": "Synchronous JSON-only subset of NLWeb 0.55; no streaming or async promises.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "query"
                ],
                "properties": {
                  "query": {
                    "type": "object",
                    "required": [
                      "text"
                    ],
                    "properties": {
                      "text": {
                        "type": "string",
                        "maxLength": 400
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "NLWeb 0.55 answer or no-results JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad input"
          },
          "429": {
            "description": "Rate limited"
          }
        }
      }
    },
    "/agui/v1": {
      "post": {
        "operationId": "agentEventStream",
        "summary": "AG-UI 1.0 read-only SSE events",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "messages"
                ],
                "properties": {
                  "messages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "role": {
                          "type": "string"
                        },
                        "content": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "AG-UI event stream",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad input"
          },
          "429": {
            "description": "Rate limited"
          }
        }
      }
    },
    "/a2ui/v0.9.1": {
      "post": {
        "operationId": "pilotSurface",
        "summary": "A2UI v0.9.1 read-only JSONL surface",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "messages"
                ],
                "properties": {
                  "messages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "role": {
                          "type": "string"
                        },
                        "content": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Versioned A2UI messages, newline delimited",
            "content": {
              "application/a2ui+json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad input"
          },
          "429": {
            "description": "Rate limited"
          }
        }
      }
    }
  },
  "externalDocs": {
    "description": "Live interface and limitations",
    "url": "https://rinatsultan.com/agent-lab/"
  }
}
