mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-27 13:28:32 +07:00
---
title: 插件开发
---
{/*
贡献者注意:
----------------
本文档为旧版文档,即将弃用。
请勿对此版本进行更改。
所有更新应指向新版本:
/plugin-dev-zh/0111-getting-started-dify-plugin
*/}
<Card title="本文档即将弃用" icon="circle-exclamation" href="/plugin-dev-zh/0111-getting-started-dify-plugin">
<p>作为我们文档重组的一部分,此页面正在逐步淘汰。</p>
<p><u><b>点击此卡片</b></u>跳转到包含最新信息的更新版本。</p>
<p>如果您在新的文档中发现任何差异或需要改进的地方,请使用页面底部的“报告问题”按钮。</p>
</Card>
### 快速开始
你可以通过以下**插件开发示例**,了解如何开发不同类型的插件,快速上手并掌握插件开发过程中可能涉及的功能组件。正式开始插件开发前,需要在本地环境中安装并初始化开发脚手架。请参考以下内容:
<Card title="安装插件开发工具" icon="link" href="./initialize-development-tools">
initialize-development-tools.md
</Card>
以 **GoogleSearch** 工具为例,介绍如何开发工具类插件。开发示例请参考以下内容:
<Card title="工具插件" icon="link" href="tool-plugin">
tool-plugin.md
</Card>
以 **Anthropic** 和 **Xinference** 模型为例,分别介绍如何开发**模型插件**(又称为**模型供应商**),其中包含预定义模型和自定义模型插件两种类型。
* 预定义模型是指已经由 AI 厂商训练好并面向市场的模型,通常是闭源模型(例如 GPT 系列模型和 Claude 系列模型),你可以直接调用这些模型能力完成特定任务,无需进行额外的训练或配置。
* 自定义模型插件允许开发者集成私有训练或已进行特定配置的私有模型,以满足本地场景要求。
开发示例请参考以下内容:
<Card title="模型插件" icon="link" href="model-plugin/README">
model-plugin
</Card>
Extension 插件允许开发者将业务代码封装为插件,并自动提供 Endpoint 请求入口,可以被理解为托管在 Dify 平台内的 API 服务。开发示例请参考以下内容:
<Card title="扩展插件" icon="link" href="extension-plugin">
extension-plugin
</Card>
### 接口文档
如果你想阅读插件项目的详细接口文档,请阅读以下标准规范文档:
1. [通用结构标准定义](../../schema-definition/general-specifications)
2. [Manifest 标准定义](../../schema-definition/manifest)
3. [工具接入标准定义](../../schema-definition/tool)
4. [模型接入简介](../../schema-definition/model/)
5. [Endpoint 标准定义](../../schema-definition/endpoint)
6. [扩展 Agent 策略](../../schema-definition/agent)
7. 反向调用 Dify 平台能力
1. 反向调用 [app.md](../../schema-definition/reverse-invocation-of-the-dify-service/app)
2. 反向调用 [model.md](../../schema-definition/reverse-invocation-of-the-dify-service/model)
3. 反向调用节点 [node.md](../../schema-definition/reverse-invocation-of-the-dify-service/node)
4. 反向调用工具 [tool.md](../../schema-definition/reverse-invocation-of-the-dify-service/tool)
8. [插件持久化存储能力](../../schema-definition/persistent-storage)
### 贡献指南
想为官方插件市场贡献更多插件,或面向社区开源插件?请参考以下详细的插件贡献指南:
* [Marketplace 发布指南](../../publish-plugins/publish-to-dify-marketplace/)
了解如何将你的插件发布至 Dify Marketplace,向更多 Dify 用户分享你的成果。
* [GitHub 发布指南](../../publish-plugins/publish-plugin-on-personal-github-repo)
学习如何在 GitHub 上发布和管理插件,确保插件的持续优化和社区协作。
欢迎加入贡献者行列,与全球开发者共同完善 Dify 生态系统!
{/*
Contributing Section
DO NOT edit this section!
It will be automatically generated by the script.
*/}
---
[编辑此页面](https://github.com/langgenius/dify-docs/edit/main/zh-hans/plugins/quick-start/develop-plugins/README.mdx) | [提交问题](https://github.com/langgenius/dify-docs/issues/new?template=docs.yml)