VS Codeセマンティックツール拡張
The Semantic Kernel Tools Extension for Visual Code Studio aids developers in creating and testing semantic functions without writing code. These tools, which utilize the Semantic Kernel SDK, streamline the process of integrating semantic functions into developers' own code【7†source】.
Installation is straightforward: install Visual Studio Code, open it and access the Extensions marketplace, search for "Semantic Kernel Tools," install it, and restart Visual Studio Code【8†source】.
To connect the extension to an AI endpoint, configure it through the Command Palette, selecting an Azure subscription or OpenAI endpoint, and entering necessary details like endpoint type and API key. After configuration, select the semantic function to execute, run it, and view responses in the Output view【9†source】.
Creating a semantic function involves installing the extension, cloning the semantic-kernel repository, and using the Semantic Kernel Functions view to add a new semantic function with a prompt text file【10†source】.
日本語で
Semantic Kernel Tools Extension for Visual Studio Codeは、開発者がコードを書かずにセマンティック機能を作成・テストするのを支援するツールです。これらのツールは、Semantic Kernel SDKを使用しており、開発者のコードにセマンティック機能を統合するプロセスを簡素化しています【7†source】。
インストールは簡単で、Visual Studio Codeをインストールし、拡張機能マーケットプレイスを開き、「Semantic Kernel Tools」を検索してインストールし、Visual Studio Codeを再起動するだけです【8†source】。
AIエンドポイントへの接続は、コマンドパレットを通じて設定し、AzureサブスクリプションまたはOpenAIエンドポイントを選択し、必要な詳細情報を入力します。設定後、実行したいセマンティック機能を選択し、実行し、出力ビューで結果を確認します【9†source】。
セマンティック機能を作成するには、拡張機能をインストールし、semantic-kernelリポジトリをクローンし、Semantic Kernel Functionsビューを使用して新しいセマンティック機能を追加し、プロンプトテキストファイルを作成します【10†source】。
具体的なコードを含めて
Semantic Kernel Tools Extension for Visual Studio Codeは、開発者がコードを書かずにセマンティック機能を作成・テストするためのツールです。これらのツールは、Semantic Kernel SDKを活用しており、開発者の既存のコードへのセマンティック機能の統合を容易にします【7†source】。
インストール手順は以下の通りです:
- Visual Studio Codeをインストール。
- Visual Studio Codeを開き、Shift+Control+Xで拡張機能マーケットプレイスを表示。
- 「Semantic Kernel Tools」を検索してインストール。
- Visual Studio Codeを再起動【8†source】。
AIエンドポイントへの接続は、コマンドパレットから行います。Azure OpenAIリソースがある場合は「Add Azure OpenAI Endpoint」を選択し、詳細情報を入力。OpenAIエンドポイントを使用する場合は「Add AI Endpoint」を選び、必要な情報を入力します。セマンティック機能を選択し、実行アイコンをクリックして実行し、出力ビューで結果を確認します【9†source】。
セマンティック機能の作成方法は以下の通りです:
- 拡張機能をインストール後、Semantic Kernelオプションがアクティビティバーに表示。
- Semantic KernelアイコンをクリックしてSemantic Kernel Functionsビューを開く。
- 「Add Semantic Plugin」アイコンをクリックし、フォルダを選択。
- フォルダ内に新しいプラグイン(MyPlugin1など)を作成し、選択。
- 機能名(MyFunction1など)と説明を入力。
- 新しいプロンプトテキストファイルが自動的に作成され、プロンプトを入力【10†source】。