IM-Copilot 生成AI連携アクション設定¶
概要¶
IM-Copilot のアクションに関する設定です。この設定ファイルでは、各アクションごとに利用するドライバ種別の設定を行います。
モジュール IM-Copilot モジュール フォーマットファイル(xsd) WEB-INF/schema/im-copilot-action-config.xsd 設定場所 WEB-INF/conf/im-copilot-action-config.xml<?xml version="1.0" encoding="UTF-8"?> <im-copilot-action-config xmlns="https://www.intra-mart.jp/im-copilot/im-copilot-action-config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.intra-mart.jp/im-copilot/im-copilot-action-config ../schema/im-copilot-action-config.xsd "> <default-actions> <action type="chat" driver-type="open-ai"> </action> <action type="images-generations" driver-type="open-ai"> </action> <action type="embeddings" driver-type="open-ai"> </action> <action type="audio-transcriptions" driver-type="open-ai"> </action> <action type="audio-speech" driver-type="open-ai"> </action> </default-actions> <actions tenant="foo"> <action type="chat" driver-type="azure-open-ai"> </action> <action type="images-generations" driver-type="azure-open-ai"> </action> <action type="embeddings" driver-type="azure-open-ai"> </action> <action type="audio-transcriptions" driver-type="azure-open-ai"> </action> <action type="audio-speech" driver-type="open-ai"> </action> </actions> <actions tenant="bar"> <action type="chat" driver-type="azure-open-ai"> </action> <action type="images-generations" driver-type="open-ai"> </action> <action type="embeddings" driver-type="azure-open-ai"> </action> <action type="audio-transcriptions" driver-type="open-ai"> </action> <action type="audio-speech" driver-type="open-ai"> </action> </actions> <actions tenant="baz"> <action type="chat" driver-type="amazon-bedrock"> </action> <action type="images-generations" driver-type="amazon-bedrock"> </action> <action type="embeddings" driver-type="amazon-bedrock"> </action> <action type="audio-transcriptions" driver-type="open-ai"> </action> <action type="audio-speech" driver-type="open-ai"> </action> </actions> </im-copilot-action-config>
リファレンス¶
デフォルトアクション情報設定¶
タグ名 default-actions テナント共通で管理するデフォルトアクション情報を設定します。個別のテナントアクション情報が設定されていないテナントにおいては、デフォルトアクション情報が使用されます。【設定項目】
<default-actions> .... </default-actions>
必須項目 × 複数設定 × 設定値・設定する内容 デフォルトのアクション情報の各種設定を指定します。 単位・型 なし 省略時のデフォルト値 なし 親タグ im-copilot-action-config
テナントアクション情報設定¶
タグ名 actions テナントを指定してアクション情報を設定します。テナントアクション情報は、そのテナントにおいてはデフォルトアクション情報よりも優先して使用されます。【設定項目】
<actions tenant="foo"> .... </actions>
必須項目 × 複数設定 ○ 設定値・設定する内容 アクション情報の各種設定を指定します。 単位・型 なし 省略時のデフォルト値 なし 親タグ im-copilot-action-config 【属性】
属性名 説明 必須 デフォルト値 tenant このアクション情報の設定を特定するテナントIDです。○ なし
アクション情報設定¶
タグ名 action アクション情報の設定を行います。【設定項目】
<actions tenant="foo"> <action type="chat" driver-type="azure-open-ai"> </action> .... </actions>
必須項目 ○ 複数設定 ○ 設定値・設定する内容 アクション情報を指定します。 単位・型 なし 省略時のデフォルト値 なし 親タグ default-actions または actions 【属性】
属性名 説明 必須 デフォルト値 type アクションのタイプを設定します。2024年10月現在、指定可能な値は以下の通りです。
- チャット:
chat
- 画像生成:
images-generations
- 埋め込み:
embeddings
- 文字起こし:
audio-transcriptions
- 音声生成:
audio-speech
○ なし driver-type 生成AIサービスのタイプを設定します。2024年10月現在、指定可能な値は以下の通りです。
- OpenAI の場合:
open-ai
- Azure OpenAI Service の場合:
azure-open-ai
- Amazon Bedrock の場合:
amazon-bedrock
○ なし コラム
指定できるタイプは今後の製品アップデートに合わせて追加または変更される場合があります。