{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/treg-to/json-schema/treg-to-agent-in-schema.json",
  "title": "AgentIn",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/treg-to-openapi.json#/components/schemas/AgentIn",
  "properties": {
    "name": {
      "type": "string",
      "title": "Name"
    },
    "role": {
      "type": "string",
      "title": "Role",
      "default": "member"
    },
    "daily_call_cap": {
      "type": "integer",
      "title": "Daily Call Cap",
      "default": -1
    },
    "daily_spend_cap_micro": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Daily Spend Cap Micro"
    },
    "tool_access": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tool Access"
    },
    "project_access": {
      "anyOf": [
        {
          "items": {},
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Project Access"
    },
    "local_run_enabled": {
      "type": "boolean",
      "title": "Local Run Enabled",
      "default": true
    },
    "promoted_member": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Promoted Member"
    },
    "promoted_client": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Promoted Client"
    },
    "pinned_tags": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pinned Tags"
    }
  },
  "type": "object",
  "required": [
    "name"
  ]
}