mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-26 13:18:34 +07:00
Fix the order number of the documents. (#594)
* Fix the order number of the documents. * fix the zh and jp docs as well --------- Co-authored-by: Riskey <riskey47@dify.ai>
This commit is contained in:
@@ -94,7 +94,7 @@ python -m main
|
||||
|
||||
> 詳細: [プラグインのリモートデバッグ](/ja/develop-plugin/features-and-specs/plugin-types/remote-debug-a-plugin)
|
||||
|
||||
#### 4. パッケージングとデプロイ
|
||||
#### 3. パッケージングとデプロイ
|
||||
|
||||
プラグインをパッケージ化:
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ extra:
|
||||
source: "endpoints/slack.py"
|
||||
```
|
||||
|
||||
#### 2. 関数コードの編集
|
||||
### 2. 関数コードの編集
|
||||
|
||||
`endpoints/slack.py`ファイルを修正し、以下のコードを追加します:
|
||||
|
||||
@@ -239,7 +239,7 @@ class SlackEndpoint(Endpoint):
|
||||
return Response(status=200, response="ok")
|
||||
```
|
||||
|
||||
### 2. プラグインのデバッグ
|
||||
### 3. プラグインのデバッグ
|
||||
|
||||
Difyプラットフォームに移動し、プラグインのリモートデバッグアドレスとキーを取得します。
|
||||
|
||||
@@ -290,7 +290,7 @@ alt="Generated POST Request URL"
|
||||
|
||||
---
|
||||
|
||||
### 3. プラグインの検証
|
||||
### 4. プラグインの検証
|
||||
|
||||
コード内で、`self.session.app.chat.invoke`がDifyアプリケーションを呼び出すために使用され、`app_id`や`query`などのパラメータを渡します。応答はSlack Botに返されます。`python -m main`を再度実行してプラグインをデバッグ用に再起動し、SlackがDify Appの応答を正しく表示するかどうかを確認します:
|
||||
|
||||
@@ -298,7 +298,7 @@ alt="Generated POST Request URL"
|
||||
|
||||
---
|
||||
|
||||
### 4. プラグインのパッケージ化(オプション)
|
||||
### 5. プラグインのパッケージ化(オプション)
|
||||
|
||||
プラグインが正しく動作することを確認したら、以下のコマンドでパッケージ化して名前を付けることができます。実行後、現在のディレクトリに`slack_bot.difypkg`ファイルが作成されます。これが最終的なプラグインパッケージです。詳細なパッケージ化手順については、[ローカルファイルとしてパッケージ化して共有](/ja/develop-plugin/publishing/marketplace-listing/release-by-file)を参照してください。
|
||||
|
||||
@@ -312,7 +312,7 @@ dify plugin package ./slack_bot
|
||||
|
||||
---
|
||||
|
||||
### 5. プラグインの公開(オプション)
|
||||
### 6. プラグインの公開(オプション)
|
||||
|
||||
[Dify Marketplaceリポジトリ](https://github.com/langgenius/dify-plugins)にアップロードして公開できます。公開前に、プラグインが[Dify Marketplace公開ガイドライン](/ja/develop-plugin/publishing/marketplace-listing/release-to-dify-marketplace)に準拠していることを確認してください。承認されると、コードはメインブランチにマージされ、プラグインは[Dify Marketplace](https://marketplace.dify.ai/)で公開されます。
|
||||
|
||||
|
||||
@@ -287,7 +287,7 @@ class FlomoTool(Tool):
|
||||
</Step>
|
||||
</Steps>
|
||||
|
||||
## ステップ9:パッケージ化と配布
|
||||
## ステップ8:パッケージ化と配布
|
||||
|
||||
プラグインを共有する準備ができたら:
|
||||
|
||||
|
||||
@@ -289,7 +289,7 @@ class GoogleSearchTool(Tool):
|
||||
|
||||
この例は、`serpapi`にリクエストを送信し、`self.create_json_message`を使用してフォーマットされた`json`データ文字列を返すことを意味します。返却データタイプの詳細については、[プラグインのリモートデバッグ](/ja/develop-plugin/features-and-specs/plugin-types/remote-debug-a-plugin)と[永続ストレージKV](/ja/develop-plugin/features-and-specs/plugin-types/persistent-storage-kv)ドキュメントを参照してください。
|
||||
|
||||
#### 4. ツールプロバイダーコードの完成
|
||||
#### 5. ツールプロバイダーコードの完成
|
||||
|
||||
最後に、認証情報の検証ロジックを実装するプロバイダーの実装コードを作成する必要があります。認証情報の検証が失敗した場合、`ToolProviderCredentialValidationError`例外がスローされます。検証が成功すると、`google_search`ツールサービスが正しくリクエストされます。
|
||||
|
||||
|
||||
@@ -45,11 +45,9 @@ description: Difyプラグイン開発用コマンドラインインターフェ
|
||||
|
||||
これでDify CLIのインストールが完了しました。以下のコマンドを実行してインストールを確認できます:
|
||||
|
||||
<CodeGroup>
|
||||
```bash
|
||||
dify version
|
||||
```
|
||||
</CodeGroup>
|
||||
|
||||
以下のコマンドを使用して新しいDifyプラグインプロジェクトを作成できます:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user