{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asap-cool/json-schema/asap-cool-agent-view-schema.json",
  "title": "AgentView",
  "description": "Public projection of an [`Agent`].",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asap-cool-agents-api-openapi.yml#/components/schemas/AgentView",
  "type": "object",
  "required": [
    "id",
    "kind",
    "name",
    "persona",
    "model",
    "status",
    "scopes",
    "tools",
    "settings",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "description": "Creation timestamp, RFC 3339."
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Stable identifier."
    },
    "kind": {
      "type": "string",
      "description": "Polymorphic surface discriminator."
    },
    "model": {
      "type": "string",
      "description": "LLM model id."
    },
    "name": {
      "type": "string",
      "description": "Human-readable name."
    },
    "persona": {
      "type": "string",
      "description": "Persona injected into the system prompt."
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "OAuth-style scopes the agent's tools may exercise."
    },
    "settings": {
      "description": "Free-form kind-specific settings."
    },
    "status": {
      "type": "string",
      "description": "Lifecycle status."
    },
    "tools": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Wire names of tools the agent is allowed to call."
    },
    "updated_at": {
      "type": "string",
      "description": "Last update timestamp, RFC 3339."
    }
  }
}