{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-patch-agent-request-schema.json",
  "title": "PatchAgentRequest",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-beta-a2a-agents-api-openapi.yml#/components/schemas/PatchAgentRequest",
  "properties": {
    "agent_name": {
      "type": "string",
      "title": "Agent Name"
    },
    "agent_card_params": {
      "$ref": "#/$defs/AgentCard"
    },
    "litellm_params": {
      "additionalProperties": true,
      "type": "object",
      "title": "Litellm Params"
    },
    "object_permission": {
      "$ref": "#/$defs/AgentObjectPermission"
    },
    "tpm_limit": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tpm Limit"
    },
    "rpm_limit": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rpm Limit"
    },
    "session_tpm_limit": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Session Tpm Limit"
    },
    "session_rpm_limit": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Session Rpm Limit"
    },
    "static_headers": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Static Headers"
    },
    "extra_headers": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Extra Headers"
    }
  },
  "type": "object",
  "$defs": {
    "APIKeySecurityScheme": {
      "properties": {
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "type": {
          "type": "string",
          "const": "apiKey",
          "title": "Type"
        },
        "in_": {
          "type": "string",
          "enum": [
            "query",
            "header",
            "cookie"
          ],
          "title": "In"
        },
        "name": {
          "type": "string",
          "title": "Name"
        }
      },
      "type": "object",
      "required": [
        "type",
        "in_",
        "name"
      ],
      "title": "APIKeySecurityScheme",
      "description": "Defines a security scheme using an API key."
    },
    "AgentCapabilities": {
      "properties": {
        "streaming": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Streaming"
        },
        "pushNotifications": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Pushnotifications"
        },
        "stateTransitionHistory": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Statetransitionhistory"
        },
        "extensions": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/AgentExtension"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Extensions"
        }
      },
      "type": "object",
      "title": "AgentCapabilities",
      "description": "Defines optional capabilities supported by an agent."
    },
    "AgentCard": {
      "properties": {
        "protocolVersion": {
          "type": "string",
          "title": "Protocolversion"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "description": {
          "type": "string",
          "title": "Description"
        },
        "url": {
          "type": "string",
          "title": "Url"
        },
        "version": {
          "type": "string",
          "title": "Version"
        },
        "capabilities": {
          "$ref": "#/$defs/AgentCapabilities"
        },
        "defaultInputModes": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Defaultinputmodes"
        },
        "defaultOutputModes": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Defaultoutputmodes"
        },
        "skills": {
          "items": {
            "$ref": "#/$defs/AgentSkill"
          },
          "type": "array",
          "title": "Skills"
        },
        "preferredTransport": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Preferredtransport"
        },
        "additionalInterfaces": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/AgentInterface"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Additionalinterfaces"
        },
        "iconUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Iconurl"
        },
        "provider": {
          "anyOf": [
            {
              "$ref": "#/$defs/AgentProvider"
            },
            {
              "type": "null"
            }
          ]
        },
        "documentationUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Documentationurl"
        },
        "securitySchemes": {
          "anyOf": [
            {
              "additionalProperties": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/APIKeySecurityScheme"
                  },
                  {
                    "$ref": "#/$defs/HTTPAuthSecurityScheme"
                  },
                  {
                    "$ref": "#/$defs/OAuth2SecurityScheme"
                  },
                  {
                    "$ref": "#/$defs/OpenIdConnectSecurityScheme"
                  },
                  {
                    "$ref": "#/$defs/MutualTLSSecurityScheme"
                  }
                ]
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Securityschemes"
        },
        "security": {
          "anyOf": [
            {
              "items": {
                "additionalProperties": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "type": "object"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Security"
        },
        "supportsAuthenticatedExtendedCard": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Supportsauthenticatedextendedcard"
        },
        "signatures": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/AgentCardSignature"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signatures"
        }
      },
      "type": "object",
      "title": "AgentCard",
      "description": "The AgentCard is a self-describing manifest for an agent.\nIt provides essential metadata including the agent's identity, capabilities,\nskills, supported communication methods, and security requirements."
    },
    "AgentCardSignature": {
      "properties": {
        "protected": {
          "type": "string",
          "title": "Protected"
        },
        "signature": {
          "type": "string",
          "title": "Signature"
        },
        "header": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Header"
        }
      },
      "type": "object",
      "title": "AgentCardSignature",
      "description": "Represents a JWS signature of an AgentCard."
    },
    "AgentExtension": {
      "properties": {
        "uri": {
          "type": "string",
          "title": "Uri"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "required": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Required"
        },
        "params": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Params"
        }
      },
      "type": "object",
      "title": "AgentExtension",
      "description": "A declaration of a protocol extension supported by an Agent."
    },
    "AgentInterface": {
      "properties": {
        "url": {
          "type": "string",
          "title": "Url"
        },
        "transport": {
          "type": "string",
          "title": "Transport"
        }
      },
      "type": "object",
      "title": "AgentInterface",
      "description": "Declares a combination of a target URL and a transport protocol."
    },
    "AgentObjectPermission": {
      "properties": {
        "mcp_servers": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Servers"
        },
        "mcp_access_groups": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Access Groups"
        },
        "mcp_tool_permissions": {
          "anyOf": [
            {
              "additionalProperties": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Tool Permissions"
        },
        "models": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Models"
        },
        "agents": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Agents"
        }
      },
      "type": "object",
      "title": "AgentObjectPermission"
    },
    "AgentProvider": {
      "properties": {
        "organization": {
          "type": "string",
          "title": "Organization"
        },
        "url": {
          "type": "string",
          "title": "Url"
        }
      },
      "type": "object",
      "title": "AgentProvider",
      "description": "Represents the service provider of an agent."
    },
    "AgentSkill": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "description": {
          "type": "string",
          "title": "Description"
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Tags"
        },
        "inputModes": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Inputmodes"
        },
        "outputModes": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Outputmodes"
        },
        "security": {
          "anyOf": [
            {
              "items": {
                "additionalProperties": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "type": "object"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Security"
        }
      },
      "type": "object",
      "title": "AgentSkill",
      "description": "Represents a distinct capability or function that an agent can perform."
    },
    "HTTPAuthSecurityScheme": {
      "properties": {
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "type": {
          "type": "string",
          "const": "http",
          "title": "Type"
        },
        "scheme": {
          "type": "string",
          "title": "Scheme"
        },
        "bearerFormat": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bearerformat"
        }
      },
      "type": "object",
      "required": [
        "type",
        "scheme",
        "bearerFormat"
      ],
      "title": "HTTPAuthSecurityScheme",
      "description": "Defines a security scheme using HTTP authentication."
    },
    "MutualTLSSecurityScheme": {
      "properties": {
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "type": {
          "type": "string",
          "const": "mutualTLS",
          "title": "Type"
        }
      },
      "type": "object",
      "required": [
        "type"
      ],
      "title": "MutualTLSSecurityScheme",
      "description": "Defines a security scheme using mTLS authentication."
    },
    "OAuth2SecurityScheme": {
      "properties": {
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "type": {
          "type": "string",
          "const": "oauth2",
          "title": "Type"
        },
        "flows": {
          "$ref": "#/$defs/OAuthFlows"
        },
        "oauth2MetadataUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Oauth2Metadataurl"
        }
      },
      "type": "object",
      "required": [
        "type",
        "flows",
        "oauth2MetadataUrl"
      ],
      "title": "OAuth2SecurityScheme",
      "description": "Defines a security scheme using OAuth 2.0."
    },
    "OAuthFlows": {
      "properties": {
        "authorizationCode": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Authorizationcode"
        },
        "clientCredentials": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Clientcredentials"
        },
        "implicit": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Implicit"
        },
        "password": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Password"
        }
      },
      "type": "object",
      "title": "OAuthFlows",
      "description": "Defines the configuration for the supported OAuth 2.0 flows."
    },
    "OpenIdConnectSecurityScheme": {
      "properties": {
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "type": {
          "type": "string",
          "const": "openIdConnect",
          "title": "Type"
        },
        "openIdConnectUrl": {
          "type": "string",
          "title": "Openidconnecturl"
        }
      },
      "type": "object",
      "required": [
        "type",
        "openIdConnectUrl"
      ],
      "title": "OpenIdConnectSecurityScheme",
      "description": "Defines a security scheme using OpenID Connect."
    }
  }
}