Skip to main content

Official and third-party plugins

While large language models have powerful natural language processing capabilities, they may need additional features for specific tasks, such as performing web searches or processing images. Model Studio provides a range of official and third-party plugins. You can select plugins to enhance the model's capabilities and expand its use cases.

First-time access to the plugins page

If your Alibaba Cloud account or RAM user (sub-account) does not have the AliyunServiceRoleForSFMAccessCloudAPI role, you cannot access plugins. Follow these instructions to grant the required permissions.
  • Alibaba Cloud account
  • RAM user (sub-account)
If you log in to Model Studio with an Alibaba Cloud account, go to the Plugins page, select the checkbox to agree to the terms, and click Authorize and Enter.The authorization page creates the service-linked role AliyunServiceRoleForSFMAccessCloudAPI, which is associated with the AliyunServiceRolePolicyForSFMAccessCloudAPI policy. This role authorizes Model Studio to access your Alibaba Cloud Marketplace products and make API calls based on the plugin configuration.

Official plugins

The Component Market provides pre-built official plugins from Model Studio. You can call them directly without configuring their input and output parameters.
Plugin nameTool IDDescriptionBilling
Python Code Interpretercode_interpreterEnables the model to run Python code for tasks like mathematical calculations, data analysis, visualization, and data processing.Free
CalculatorcalculatorLets the model perform complex mathematical calculations, such as "12313 * 13232".Free
Image Generationtext_to_imageLets the model generate images from text, such as "Draw a smiling dog."Free for a limited time. Activation is required.
Quark Searchquark_searchLets the model search online for real-time information and public knowledge, such as "What's the weather in Hangzhou today?"
The Quark Search plugin currently retrieves webpage titles, keywords, and summaries, but does not support accessing full webpage content.
Free for a limited time. Activation is required.
Generate QR Codegenerate_qrcodeLets the model generate a QR code from a website URL, such as "Generate a QR code for the Model Studio introduction document: https://help.aliyun.com/model-studio/getting-started/what-is-model-studio".Free
GitHub Searchgithub_searchLets the model search for projects on GitHub, for example, "GitHub Search: Qianwen".Free
Sample inputOutput without pluginOutput with plugin
import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(-2, 2, 100)
y1 = np.sqrt(1 + x**2)
y2 = -np.sqrt(1 + x**2)

plt.plot(x, y1, label='y = sqrt(1 + x^2)')
plt.plot(x, y2, label='y = -sqrt(1 + x^2)')
plt.xlabel('x')
plt.ylabel('y')
plt.title('Hyperbola')
plt.legend()
plt.show()
The agent application cannot execute Python code; it can only provide a text description of the code.The agent application can execute Python code for data visualization and analysis.
python不插.jpegpython插.jpeg
The Python Code Interpreter plugin does not support accessing external networks or uploading local files. The available dependencies are: json5~=0.9.6, jupyter_client~=8.1.0, ipykernel~=6.25.0, seaborn, sympy, pydantic~=1.10.8, pillow~=9.4.0, fastapi~=0.101.1, dynaconf~=3.2.1, oss2~=2.18.1, matplotlib, starlette~=0.27.0, uvicorn~=0.23.2, requests~=2.31.0, scipy, html2text, pandas, pdf2image, pdfminer-six, pypdf, python-pptx, and wordcloud.

Sample input

Output without plugin

Output with plugin

12313*13232

The agent application cannot reliably solve complex math problems and may return incorrect results. The correct answer is 162,925,616.

The agent application has strong calculation capabilities and can generate accurate results.

Sample input

Output without plugin

Output with plugin

Draw a smiling dog.

The agent application cannot draw images or graphics directly and can only describe the scene in text.

The agent application can draw images directly and can generate a picture of a dog based on the instructions.

图文.jpeg

图文插.jpeg

Sample input

Output without plugin

Output with plugin

What is the weather in Hangzhou today?

The agent application cannot access real-time information, so it cannot answer questions about the current weather.

The agent application has web search capabilities to access real-time information and can answer questions about the current weather.

In Output Parameters, you can view the webpages that the model referenced to generate its answer.

Sample input

Output without plugin

Output with plugin

Generate a QR code for the Model Studio introduction document: https://help.aliyun.com/zh/model-studio/getting-started/what-is-model-studio

The agent application cannot generate QR codes directly. Instead, it provides instructions on how to convert a link into a QR code.

The agent application can generate a QR code based on the URL of the Model Studio introduction document.

Sample inputOutput without pluginOutput with plugin
GitHub Search: Tongyi QianwenThe agent application cannot query GitHub directly. Instead, it provides instructions on how to search on GitHub.The agent application can query GitHub projects and provide a list of projects related to Qianwen.
The GitHub Search plugin currently retrieves project titles, links, and summaries. It does not support accessing project details.
Model Studio allows you to call multiple tools in a single task, as shown in the following example. You can select plugins to suit your needs.

Plugins

Sample input

Application output

Quark Search + Image Generation + Generate QR Code

Draw a picture based on today's weather in Hangzhou and generate a QR code for the image URL.

三插件.png

Scan the QR code to download the image:

35efefdb-753e-4594-a96d-b33d0aa1bee3-1.png

Call official plugins

Step 1. Authorize the workspace (if required). You must authorize an official plugin before you can use it in a sub-workspace. This step is not required for the default workspace.
  1. Go to the Plugins page, find the target plugin, and click View Details.
  2. Click Authorization, select the sub-workspace to authorize, and click OK to complete the authorization.
Step 2.Call a plugin.

Third-party plugins

Third-party plugins cover multiple domains, such as business services, image and video, and education. They are quality-tested and can be called directly after activation without further configuration.

Call third-party plugins

Step 1. Activate the third-party plugin.
  1. Go to the Plugins page, find the target plugin, and click View Details.
  2. Select a package, click Free Trial or Buy Now, and follow the on-screen instructions to activate the plugin. After successful activation, the plugin details card displays an Activated status tag.
Step 2.Call a plugin.

Call a plugin

  • Method 1: From the Plug-in page, add a tool to an agent application.
    An official plugin can only be added to an Agent Application in the same workspace.
    1. Find the target plugin and click Add to Agent.
    2. Select the tool and click Next.
    3. Select an agent application and click Confirm Add.
    4. On the application details page, the tool now appears automatically.
      You can also click Select Plug-in to add more tools. You can add up to 10 tools. The agent application selects and calls one or more tools based on the input.
    5. Test the tool by interacting with the model in the input box.
    6. After testing, publish the application.
  • Method 2: Go to the Apps page. In a specific agent or workflow application, add the plugin, test its functionality, and then Publish the application. For more information, see Agent application plugin capabilities and Workflow application plugin node.
  • Method 3: Call tools by using the Assistant API. In the Assistant API documentation, search for the tools keyword to see how to call tools by using the API.

Get the tool ID

A tool ID identifies a specific tool. You must provide the correct tool ID when calling a tool by using an API.
  1. On the Plug-in page, find the target plugin and click View Details.
  2. Under Plug-in Tool, get the tool ID. In this example, the tool ID is calculator.
In addition to official and third-party plugins, Model Studio supports custom plugins. For more information, see Custom plugins.

FAQ

What is the difference between Quark Search and web search (enable_search)?
  • When the Quark Search plugin is enabled, the model directly calls the plugin to perform a search and returns the results as text, which can be directly used to generate the final output. The Quark Search plugin currently retrieves webpage titles, keywords, and summaries, but does not support accessing full webpage content.
  • The web search (enable_search) feature is also based on Quark Search. When web search is enabled, the model uses information from the internet to enrich its response, but it does not simply return raw search results.