Skip to main content
Plugins

Plugin Overview

While large language models (LLMs) demonstrate exceptional performance on complex tasks, they still face limitations—such as inability to access up-to-date information, tendency to generate hallucinations, and difficulty performing precise calculations. To address these challenges, you can integrate plugins into your LLM applications to extend their capabilities and execute more sophisticated tasks.

Introduction to Plugins

A plugin is a collection of tools. Each plugin may contain multiple tools (APIs), with each tool implementing a specific function. Bailian supports official plugins, third-party plugins, and custom plugins.

Official Plugins

The Component Marketplace includes preconfigured official Bailian plugins. You can invoke them directly without configuring input or output parameters. For usage instructions, see Official and Third-Party Plugins.

Third-Party Plugins

In addition to official plugins, third-party plugins span domains including commercial services, image/video processing, and education—and have undergone performance testing. Once enabled, they can be invoked immediately without additional configuration. For usage instructions, see Official and Third-Party Plugins.

Custom Plugins

You can create custom plugins and integrate them into your LLM applications to enable flexible, tailored functionality extensions.

Plugin Effectiveness Example

Sample InputOutput Without PluginsOutput With Plugins
What is 12313 × 13232?The LLM application cannot accurately compute complex mathematical problems and may produce incorrect results. The correct result is 162,925,616.The LLM application gains robust computational capability and generates accurate calculation results.

Supported Models

ModelModel Identifier
Qwen-Turboqwen-turbo
Qwen-Plusqwen-plus
Qwen-Maxqwen-max
Qwen-VL-Maxqwen-vl-max
Qwen-VL-Plusqwen-vl-plus
Plugin compatibility may vary across models. For the most up-to-date compatibility status, refer to actual execution results in the console.

Plugin Invocation Mechanism

Invoking a plugin fundamentally means invoking one or more tools within that plugin. Bailian supports plugin invocation via Agent Applications, Workflow Applications, and the Assistant API. When invoking plugins through an Agent Application or the Assistant API, the LLM determines whether to call a tool based on:
  • the user’s input,
  • the tool name, and
  • the tool description.
  • If a tool call is required, the LLM selects the appropriate tool. After internal tool execution, the plugin returns the result, which is merged with the original user input and fed back into the LLM to generate the final response.
  • If no tool call is needed, the LLM generates and outputs the response directly.
In a Workflow Application, a plugin functions as a node in the workflow. It executes predefined tasks according to the user’s orchestration—rather than being proactively planned and invoked by the LLM.