Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

47 changes: 18 additions & 29 deletions ja/develop-plugin/dev-guides-and-walkthroughs/cheatsheet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ dimensions:
standard_title: Cheatsheet
language: ja
title: チートシート
description: 環境要件、インストール方法、開発プロセス、プラグインのカテゴリとタイプ、一般的なコードスニペット、よくある問題の解決策を含む、Dify プラグイン開発の包括的なリファレンスガイドです。開発者が素早く参照できるように設計されています。
description: 環境セットアップ、インストール、開発プロセス、プラグインタイプを含む、Dify プラグイン開発のクイックリファレンス
---

<Note> ⚠️ このドキュメントは AI によって自動翻訳されています。不正確な部分がある場合は、[英語版](/en/develop-plugin/dev-guides-and-walkthroughs/cheatsheet) を参照してください。</Note>

## 環境要件

- Python バージョン 3.12
- Dify プラグインスキャフォールドツール (dify-plugin-daemon)
- Python バージョン 3.12
- Dify プラグインスキャフォールドツール (`dify-plugin-daemon`)

> 詳細: [開発ツールの初期化](/ja/develop-plugin/getting-started/cli)
セットアップ手順については、[開発ツールの初期化](/ja/develop-plugin/getting-started/cli)を参照してください。

## Dify プラグイン開発パッケージの取得

[Dify Plugin CLI](https://github.com/langgenius/dify-plugin-daemon/releases)
GitHub リリースページから [Dify Plugin CLI](https://github.com/langgenius/dify-plugin-daemon/releases) をダウンロードしてください。

### 各プラットフォームのインストール方法

Expand Down Expand Up @@ -70,7 +70,7 @@ dify version

## 開発パッケージの実行

ここでは `dify` を例として使用します。ローカルインストール方法を使用している場合は、コマンドを適宜置き換えてください。例: `./dify-plugin-darwin-arm64 plugin init`
以下の例では `dify` をコマンドとして使用しています。ローカルインストールの場合は、コマンドを適宜置き換えてください。例:`./dify-plugin-darwin-arm64 plugin init`

## プラグイン開発プロセス

Expand All @@ -80,9 +80,9 @@ dify version
./dify plugin init
```

プロンプトに従って、基本的なプラグイン情報の設定を完了してください
プロンプトに従って、基本的なプラグイン情報を設定してください。

> 詳細: [Dify プラグイン開発: Hello World ガイド](/ja/develop-plugin/dev-guides-and-walkthroughs/tool-plugin)
詳細なウォークスルーについては、[Dify プラグイン開発: Hello World ガイド](/ja/develop-plugin/dev-guides-and-walkthroughs/tool-plugin)を参照してください。

### 2. 開発モードで実行

Expand All @@ -92,7 +92,7 @@ dify version
python -m main
```

> 詳細: [プラグインのリモートデバッグ](/ja/develop-plugin/features-and-specs/plugin-types/remote-debug-a-plugin)
デバッグの詳細については、[プラグインのリモートデバッグ](/ja/develop-plugin/features-and-specs/plugin-types/remote-debug-a-plugin)を参照してください。

### 3. パッケージングとデプロイ

Expand All @@ -103,13 +103,13 @@ cd ..
dify plugin package ./yourapp
```

> 詳細: [公開の概要](/ja/develop-plugin/publishing/marketplace-listing/release-overview)
公開の詳細については、[公開の概要](/ja/develop-plugin/publishing/marketplace-listing/release-overview)を参照してください。

## プラグインカテゴリ

### ツールラベル

カテゴリ `tag` [class ToolLabelEnum(Enum)](https://github.com/langgenius/dify-plugin-sdks/blob/main/python/dify_plugin/entities/tool.py)
カテゴリタグは [`ToolLabelEnum`](https://github.com/langgenius/dify-plugin-sdks/blob/main/python/dify_plugin/entities/tool.py) で定義されています:

```python
class ToolLabelEnum(Enum):
Expand All @@ -133,25 +133,14 @@ class ToolLabelEnum(Enum):

## プラグインタイプリファレンス

Dify は様々なタイプのプラグイン開発をサポートしています
Dify は複数のプラグインタイプをサポートしています

- **ツールプラグイン**: サードパーティの API とサービスを統合
> 詳細: [Dify プラグイン開発: Hello World ガイド](/ja/develop-plugin/dev-guides-and-walkthroughs/tool-plugin)

- **モデルプラグイン**: AI モデルを統合
> 詳細: [モデルプラグイン](/ja/develop-plugin/features-and-specs/plugin-types/model-designing-rules)、[新しいモデルのクイック統合](/ja/develop-plugin/dev-guides-and-walkthroughs/creating-new-model-provider)

- **エージェント戦略プラグイン**: Agent の思考と意思決定戦略をカスタマイズ
> 詳細: [エージェント戦略プラグイン](/ja/develop-plugin/features-and-specs/advanced-development/reverse-invocation)

- **拡張プラグイン**: Endpoints や WebApp など、Dify プラットフォームの機能を拡張
> 詳細: [拡張プラグイン](/ja/develop-plugin/dev-guides-and-walkthroughs/endpoint)

- **データソースプラグイン**: ナレッジベースパイプラインのドキュメントデータソースおよび開始点として機能
> 詳細: [データソースプラグイン](/ja/develop-plugin/dev-guides-and-walkthroughs/datasource-plugin)

- **トリガープラグイン**: サードパーティのイベントに基づいてワークフローの実行を自動的にトリガー
> 詳細: [トリガープラグイン](/ja/develop-plugin/dev-guides-and-walkthroughs/trigger-plugin)
- **ツールプラグイン**:サードパーティの API とサービスを統合します。[Dify プラグイン開発: Hello World ガイド](/ja/develop-plugin/dev-guides-and-walkthroughs/tool-plugin)を参照してください。
- **モデルプラグイン**:AI モデルを統合します。[モデルプラグイン](/ja/develop-plugin/features-and-specs/plugin-types/model-designing-rules)および[新しいモデルのクイック統合](/ja/develop-plugin/dev-guides-and-walkthroughs/creating-new-model-provider)を参照してください。
- **Agent 戦略プラグイン**:Agent の思考と意思決定戦略をカスタマイズします。[Agent 戦略プラグイン](/ja/develop-plugin/features-and-specs/advanced-development/reverse-invocation)を参照してください。
- **拡張プラグイン**:Endpoints や WebApp など、Dify プラットフォームの機能を拡張します。[拡張プラグイン](/ja/develop-plugin/dev-guides-and-walkthroughs/endpoint)を参照してください。
- **データソースプラグイン**:ナレッジパイプラインのドキュメントデータソースおよび開始点として機能します。[データソースプラグイン](/ja/develop-plugin/dev-guides-and-walkthroughs/datasource-plugin)を参照してください。
- **トリガープラグイン**:サードパーティのイベントに基づいてワークフローの実行を自動的にトリガーします。[トリガープラグイン](/ja/develop-plugin/dev-guides-and-walkthroughs/trigger-plugin)を参照してください。

{/*
Contributing Section
Expand Down
Loading