{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aimeat-io/json-schema/aimeat-io-ai-call-role-schema.json",
  "title": "AiCallRole",
  "description": "The AI role the call runs as: one of the caller's role ids (GET /v1/ai/roles), or for an app a role it declares in its aimeat-ai meta and the owner bound. Its providers and models for the capability come first, in its order. A named `model` or `provider` wins over it. Refused 400 INVALID_BODY when it is not a string of 1 to 300 characters; AI_ROLE_UNKNOWN, AI_ROLE_NOT_DECLARED, AI_ROLE_LACKS_CAPABILITY (400) and AI_ROLE_NOT_BOUND (409) as on POST /v1/ai/complete.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aimeat-io-ai-api-openapi.yml#/components/schemas/AiCallRole",
  "type": "string",
  "minLength": 1,
  "maxLength": 300
}