{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "leonardo-ai",
  "version": "0.1.0",
  "description": "Generate images and videos with Leonardo.Ai.",
  "extensions": {
    "com.openai": {
      "interface": {
        "displayName": "Leonardo.Ai",
        "shortDescription": "Create images and videos",
        "longDescription": "Generate images and videos from a prompt. Explore design options and refine them in the same project.",
        "developerName": "Canva",
        "category": "Creativity",
        "defaultPrompt": [
          "Create an image of a ceramic coffee cup on a blue table.",
          "Start a project for a coffee brand and show me two packaging designs."
        ],
        "logo": "./assets/icon.png",
        "composerIcon": "./assets/icon.png",
        "websiteURL": "https://leonardo.ai",
        "supportURL": "https://intercom.help/leonardo-ai/en/",
        "privacyPolicyURL": "https://leonardo.ai/privacy-policy",
        "termsOfServiceURL": "https://leonardo.ai/terms-of-service"
      },
      "review": {
        "prompts": [
          "List the video models in your current catalog.",
          "Create a private image of a ceramic coffee cup on a blue table.",
          "Create a new Leonardo Agent project for a coffee brand. Ask Leo to explore two packaging designs."
        ],
        "test_cases": {
          "positive": [
            {
              "description": "Check model discovery with a signed-in account.",
              "prompt": "Ask Leonardo to list the video models in its current catalog.",
              "tools_triggered": "list_models",
              "expected_behavior": "List video models by name from the returned catalog."
            },
            {
              "description": "Inspect the settings for a model in the catalog.",
              "prompt": "Ask Leonardo which settings Auto Image accepts for a generation.",
              "tools_triggered": "list_models, get_model_schema",
              "expected_behavior": "Use the catalog ID for Auto Image. Describe settings from the returned parameter schema."
            },
            {
              "description": "Use a reviewer account that supports private image generation and has credits.",
              "prompt": "Ask Leonardo to create a private image of a ceramic coffee cup on a blue table.",
              "tools_triggered": "list_models, get_model_schema, generate, get_generation",
              "expected_behavior": "Select an accessible image model. Set request.public to false. Poll the returned generationId and show the completed image."
            },
            {
              "description": "Use a reviewer account that supports private video generation and has credits.",
              "prompt": "Ask Leonardo to create a private video of steam rising from a ceramic coffee cup.",
              "tools_triggered": "list_models, get_model_schema, generate, get_generation",
              "expected_behavior": "Select an accessible video model. Set request.public to false. Poll the returned generationId and show the completed video."
            },
            {
              "description": "Use a personal account with Leo Agent access and credits.",
              "prompt": "Ask Leonardo to start a new Agent project for a coffee brand and explore two packaging designs and show them to me.",
              "tools_triggered": "agent_create_project, agent_send_message, agent_list_messages",
              "expected_behavior": "Send the brief to the new project. Poll for the reply to that message. Show the project link and the designs from the settled reply."
            }
          ],
          "negative": [
            {
              "prompt": "Ask Leonardo to purchase credits for my account.",
              "description": "ChatGPT explains that purchases happen outside the plugin. Call no Leonardo tools."
            },
            {
              "prompt": "Ask Leonardo to invite my designer to my Leonardo team.",
              "description": "ChatGPT explains that the plugin cannot manage team membership. Call no Leonardo tools."
            },
            {
              "prompt": "Ask Leonardo to post my coffee video to Instagram.",
              "description": "ChatGPT explains that the plugin cannot publish to Instagram. Call no Leonardo tools."
            }
          ]
        },
        "commerce": false,
        "commerce_description": "Generation uses credits from an existing Leonardo.Ai account. Users purchase credits or subscriptions outside the plugin.",
        "demo_recording_url": "https://drive.google.com/file/d/1ChIGAQIPGnu8USz_kb4rUsbU74Brwu3R/view?usp=sharing"
      },
      "publication": {
        "countries": [],
        "release_notes": "Generate images and videos and work with Leo Agent on creative projects in ChatGPT."
      },
      "apps": "./.app.json"
    }
  }
}
