エージェントの作成や更新・取得する際に利用するエージェントオブジェクトの仕様を説明します。

APIレスポンス仕様

基本情報

フィールド説明文字数上限
idstringユニークな識別子(UUID形式)
displayNamestringエージェントの表示名100
descriptionstringエージェントの簡単な説明129
photoUrlstringプロフィール画像のURL
serviceUrlstring関連サービスのURL
providerNamestringサービス提供者の名前60
ownerUidstring所有者の一意識別子
scopestring公開範囲("private"または"public")
useAIResponsebooleanAI応答の使用有無

発話設定

フィールド説明
startUtterancestring初回メッセージのテンプレート(@random:[]形式で複数指定可)
forbiddenUtterancestring禁止された発話の設定
llmErrorUtterancestringLLMエラー時の応答メッセージ
requestLimitExceededUtterancestringリクエスト制限超過時のメッセージ
aiResponseLimitUtterancestringAI応答の制限到達時のメッセージ

クイックリプライ

フィールド説明
quickReplyOptionsarray (string)デフォルトで表示するクイックリプライのオプション配列

自動応答設定

フィールド説明
shouldUseHtmlResponsebooleanHTML応答の使用有無
streambooleanストリーミング応答の有無

LLM設定

フィールド説明
llmstring使用する言語モデルの指定
temperaturenumber応答の多様性を制御するパラメータ (0~1.0)
promptstringエージェントの振る舞いを定義する詳細な指示 (3000文字以内)

制限設定

フィールド説明
aiResponseMaxCountPerDayinteger1日あたりのAI応答最大数
aiResponseMaxCountPerMonthinteger月あたりのAI応答最大数
utteranceMaxLengthinteger発話の最大長

知識設定

フィールド説明
webSearchDataSourceobjectウェブ検索のデータソース設定
knowledgeDataStoreobject知識データストアの使用設定
insertLinksAutomaticallybooleanリンクの自動挿入有無
useUserInfoSummarybooleanユーザー情報要約の使用有無
shouldShowQuerybooleanクエリの表示有無
searchQueryPromptstring検索クエリ生成のためのプロンプト (1500)

文字以内## 高度な設定

フィールド説明
shouldIncludeDataStoreAddDateboolean追記データストア追加日付の含有有無
webhookTimeoutSecintegerWebhookのタイムアウト秒数

knowledgeDataStore オブジェクト

フィールド説明
useKnowledgeDataStoreboolean知識データストアの使用有無
shouldSendDataStoreResultEmailbooleanデータストア結果をメールで送信するかどうか
knowledgeDataStoreNumCandidatesinteger一回の会話で採用するナレッジデータストアのアイテムの数(0~30) ※0の場合は自動調整
knowledgeDataStoreCandidateScoreThresholdfloatナレッジデータストアの検索結果で採用するスコアの閾値 (0~1.0) ※0の場合は自動調整

webSearchDataSource オブジェクト

フィールド説明
dataSourceLabelstringウェブ検索のデータソースラベル
useDeepWebSearchbooleanディープウェブ検索の使用有無

サンプルレスポンス

最後に、JSONサンプルを以下に示します。値は汎用的なものを使用しています:

{ "id": "550e8400-e29b-41d4-a716-446655440000", "displayName": "汎用AIエージェント", "description": "様々なタスクに対応可能な汎用AIエージェント", "photoUrl": "https://example.com/agent-avatar.png", "serviceUrl": "https://api.example.com/ai-agent", "providerName": "AI Solutions Inc.", "ownerUid": "user123456", "scope": "public", "useAIResponse": true, "utterances": { "startUtterance": "@random:[\"こんにちは!どのようなお手伝いができますか?\", \"ようこそ!今日は何をお手伝いしましょうか?\"]", "forbiddenUtterance": "申し訳ありませんが、その内容についてはお答えできません。", "llmErrorUtterance": "エラーが発生しました。しばらくしてからもう一度お試しください。", "requestLimitExceededUtterance": "リクエスト制限に達しました。後でもう一度お試しください。", "aiResponseLimitUtterance": "申し訳ありませんが、応答の制限に達しました。" }, "quickReply": { "quickReplyOptions": ["ヘルプ", "設定", "情報"] }, "autoResponseSettings": { "ruleBasedThresholdLevel": 3, "shouldUseHtmlResponse": false, "stream": true }, "llmSettings": { "llm": "gpt-4", "temperature": 0.7, "prompt": "あなたは親切で効率的なAIエージェントです。ユーザーの質問に簡潔に答えてください。" }, "ttsSettings": { "ttsId": "neural-voice-1", "ttsPitch": 1.0, "ttsSpeed": 1.0 }, "limits": { "aiResponseMaxCountPerDay": 1000, "aiResponseMaxCountPerMonth": 30000, "utteranceMaxLength": 500 }, "knowledge": { "webSearchDataSource": { "dataSourceLabel": "GeneralWebSearch", "useDeepWebSearch": false }, "knowledgeDataStore": { "useKnowledgeDataStore": true, "shouldSendDataStoreResultEmail": false }, "insertLinksAutomatically": true, "useUserInfoSummary": false, "searchResultSummaryLength": 150, "shouldShowQuery": false, "searchQueryPrompt": "ユーザーの質問から最適な検索クエリを生成してください。" }, "advancedSettings": { "additionalPrompt": "", "shouldIncludeDataStoreAddDate": true, "webhookTimeoutSec": 30 } }