全部產品
Search
文件中心

Intelligent Media Services:DescribeAIAgentInstance - 查詢智能體執行個體詳情

更新時間:Mar 21, 2026

查詢執行個體。

介面說明

  • 功能描述:此介面用於查詢指定智能體執行個體的詳細資料。

  • 使用情境:當需要監控或分析智能體在通話中的表現,或者調試智能體配置效果時,可調用此介面擷取所需資料。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

ice:DescribeAIAgentInstance

none

*全部資源

*

請求參數

名稱

類型

必填

描述

樣本值

InstanceId

string

智能體執行個體 ID。

說明

InstanceId 為智能體執行個體啟動成功後,返回的唯一的 Id。啟動智能體介面,請參見StartAIAgentInstance GenerateAIAgentCall

39f8e0bc005e4f309379701645f4****

返回參數

名稱

類型

描述

樣本值

object

Schema of Response

Instance

object

智能體執行個體資訊

CallLogUrl

string

通話日誌的 URL。

https://example.com/call_logs/12345

RuntimeConfig AIAgentRuntimeConfig

智能體運行時的配置資訊。

{"VoiceChat":{"AgentUserId":"voice_agent_001","ChannelId":"voice_channel_001","AuthToken":"your_voice_chat_auth_token"}}

Status

string

智能體執行個體的狀態,如 Finished,Executing。

枚舉值:

  • Finished :

    結束

  • Executing :

    運行中

Finished

TemplateConfig deprecated AIAgentTemplateConfig

智能體模版配置。

{"VoiceChat": {"AppId": "your_voice_chat_app_id"}}

UserData

string

使用者自訂資訊。

{"Email":"johndoe@example.com","Preferences":{"Language":"en"}}

SessionId

string

對話的唯一標記,預設無。

955535**************

AgentConfig AIAgentConfig

智能體模版配置。

GmtCreate

string

建立時間(UTC)

2025-07-18T06:39:08.000+00:00

GmtModified

string

修改時間(UTC)

2025-07-18T06:40:12.000+00:00

RequestId

string

請求 ID。

7B117AF5-2A16-412C-B127-FA6175ED1AD0

樣本

正常返回樣本

JSON格式

{
  "Instance": {
    "CallLogUrl": "https://example.com/call_logs/12345",
    "RuntimeConfig": {
      "VoiceChat": {
        "AuthToken": "eyJhcHBpZCI6ICIxMjM0MTIzNxxxxx",
        "AgentUserId": "877ae632caae49b1afc81c2e8194ffb4",
        "ChannelId": "70f22d5784194938a7e387052f2b3208"
      },
      "AuthToken": "eyJhcHBpZCI6ICIxMjM0MTIzNxxxxx",
      "AgentUserId": "877ae632caae49b1afc81c2e8194ffb4",
      "VisionChat": {
        "AuthToken": "eyJhcHBpZCI6ICIxMjM0MTIzNxxxxx",
        "AgentUserId": "877ae632caae49b1afc81c2e8194ffb4",
        "ChannelId": "70f22d5784194938a7e387052f2b3208"
      },
      "ChannelId": "70f22d5784194938a7e387052f2b3208\n",
      "AvatarChat3D": {
        "AuthToken": "eyJhcHBpZCI6ICIxMjM0MTIzNxxxxx",
        "AgentUserId": "877ae632caae49b1afc81c2e8194ffb4",
        "ChannelId": "70f22d5784194938a7e387052f2b3208"
      }
    },
    "Status": "Finished",
    "TemplateConfig": {
      "VoiceChat": {
        "Greeting": "早上好,我的朋友",
        "LlmHistory": [
          {
            "Role": "user",
            "Content": "你好"
          }
        ],
        "WorkflowOverrideParams": "{}",
        "EnableIntelligentSegment": true,
        "AvatarUrlType": "USER",
        "AvatarUrl": "http://example.com/a.jpg",
        "VoiceIdList": [
          "zhixiaoxia"
        ],
        "CharBreak": true,
        "EnableVoiceInterrupt": true,
        "VoiceprintId": "uniqueId",
        "GracefulShutdown": false,
        "InterruptWords": [
          "停止"
        ],
        "UserOnlineTimeout": 60,
        "AsrLanguageId": "zh_mandarin",
        "UserOfflineTimeout": 5,
        "LlmSystemPrompt": "你是一位友好且樂於助人的助手,專註於為使用者提供準確的資訊和建議。",
        "BailianAppParams": "{}",
        "VadLevel": 11,
        "LlmHistoryLimit": 10,
        "AsrMaxSilence": 400,
        "WakeUpQuery": "今天天氣怎麼樣?",
        "Volume": 100,
        "VoiceId": "zhixiaoxia",
        "UseVoiceprint": false,
        "MaxIdleTime": 600,
        "AsrHotWords": [
          "檢查"
        ],
        "EnablePushToTalk": false
      },
      "VisionChat": {
        "Greeting": "早上好,我的朋友!\n",
        "LlmHistory": [
          {
            "Role": "user",
            "Content": "你好"
          }
        ],
        "WorkflowOverrideParams": "{}",
        "EnableIntelligentSegment": true,
        "VoiceIdList": [
          "zhixiaoxia"
        ],
        "CharBreak": true,
        "EnableVoiceInterrupt": true,
        "VoiceprintId": "uniqueId",
        "GracefulShutdown": false,
        "InterruptWords": [
          "停止"
        ],
        "UserOnlineTimeout": 60,
        "AsrLanguageId": "zh_mandarin",
        "UserOfflineTimeout": 5,
        "LlmSystemPrompt": "你是一位友好且樂於助人的助手,專註於為使用者提供準確的資訊和建議。\n",
        "BailianAppParams": "{}",
        "VadLevel": 0,
        "LlmHistoryLimit": 10,
        "AsrMaxSilence": 400,
        "WakeUpQuery": "今天天氣怎麼樣?",
        "Volume": 100,
        "VoiceId": "zhixiaoxia",
        "UseVoiceprint": false,
        "MaxIdleTime": 600,
        "AsrHotWords": [
          "檢查"
        ],
        "EnablePushToTalk": false
      },
      "AvatarChat3D": {
        "Greeting": "早上好,我的朋友!",
        "LlmHistory": [
          {
            "Role": "user",
            "Content": "你好"
          }
        ],
        "WorkflowOverrideParams": "{}",
        "EnableIntelligentSegment": true,
        "VoiceIdList": [
          "zhixiaoxia"
        ],
        "AvatarId": "1231",
        "CharBreak": true,
        "EnableVoiceInterrupt": true,
        "VoiceprintId": "uniqueId",
        "GracefulShutdown": false,
        "InterruptWords": [
          "停止"
        ],
        "UserOnlineTimeout": 60,
        "AsrLanguageId": "zh_mandarin",
        "UserOfflineTimeout": 5,
        "LlmSystemPrompt": "你是一位友好且樂於助人的助手,專註於為使用者提供準確的資訊和建議。",
        "BailianAppParams": "{}",
        "VadLevel": 0,
        "LlmHistoryLimit": 10,
        "AsrMaxSilence": 400,
        "WakeUpQuery": "今天天氣怎麼樣?",
        "Volume": 100,
        "VoiceId": "zhixiaoxia",
        "UseVoiceprint": false,
        "MaxIdleTime": 600,
        "AsrHotWords": [
          "檢查"
        ],
        "EnablePushToTalk": false
      }
    },
    "UserData": "{\"Email\":\"johndoe@example.com\",\"Preferences\":{\"Language\":\"en\"}}",
    "SessionId": "955535**************",
    "AgentConfig": {
      "Greeting": "你好",
      "WakeUpQuery": "今天天氣怎麼樣?\n",
      "MaxIdleTime": 600,
      "UserOnlineTimeout": 60,
      "UserOfflineTimeout": 5,
      "EnablePushToTalk": false,
      "GracefulShutdown": true,
      "Volume": 100,
      "WorkflowOverrideParams": "{}",
      "AvatarUrl": "http://example.com/a.jpg\n",
      "AvatarUrlType": "USER",
      "EnableIntelligentSegment": true,
      "AsrConfig": {
        "AsrLanguageId": "zh_mandarin",
        "AsrMaxSilence": 400,
        "AsrHotWords": [
          "檢查"
        ],
        "VadLevel": 11,
        "CustomParams": "mode=fast&sample=16000&format=wav",
        "VadDuration": 300
      },
      "TtsConfig": {
        "VoiceId": "longcheng_v2\n\n",
        "VoiceIdList": [
          "zhixiaoxia"
        ],
        "PronunciationRules": [
          {
            "Word": "一一零",
            "Pronunciation": "么么零",
            "Type": "replacement"
          }
        ],
        "ModelId": "speech-01-turbo",
        "LanguageId": "Chinese",
        "Emotion": "happy",
        "SpeechRate": 1
      },
      "LlmConfig": {
        "LlmHistory": [
          {
            "Role": "user",
            "Content": "你好"
          }
        ],
        "LlmHistoryLimit": 10,
        "LlmSystemPrompt": "你是一位友好且樂於助人的助手,專註於為使用者提供準確的資訊和建議。\n",
        "BailianAppParams": "\"{\\\"biz_params\\\":{\\\"user_defined_params\\\":{\\\"your_plugin_id\\\":{\\\"article_index\\\":2}}},\\\"memory_id\\\":\\\"your_memory_id\\\",\\\"image_list\\\":[\\\"https://your_image_url\\\"],\\\"rag_options\\\":{\\\"pipeline_ids\\\":[\\\"your_id\\\"],\\\"file_ids\\\":[\\\"文檔ID1\\\",\\\"文檔ID2\\\"],\\\"metadata_filter\\\":{\\\"name\\\":\\\"張三\\\"},\\\"structured_filter\\\":{\\\"key1\\\":\\\"value1\\\",\\\"key2\\\":\\\"value2\\\"},\\\"tags\\\":[\\\"標籤1\\\",\\\"標籤2\\\"]}}\"",
        "OpenAIExtraQuery": "api-version=2024-02-01&api-key=sk-xxx",
        "LlmCompleteReply": true,
        "FunctionMap": [
          {
            "Function": "hangup",
            "MatchFunction": "hangup"
          }
        ],
        "OutputMinLength": 5,
        "OutputMaxDelay": 2000,
        "HistorySyncWithTTS": false
      },
      "AvatarConfig": {
        "AvatarId": "5257"
      },
      "InterruptConfig": {
        "EnableVoiceInterrupt": true,
        "InterruptWords": [
          "打斷一下"
        ],
        "NoInterruptMode": "cache",
        "KeepInterruptWordsForLLM": true
      },
      "VoiceprintConfig": {
        "UseVoiceprint": false,
        "VoiceprintId": "zhixiaoxia",
        "RegistrationMode": ""
      },
      "TurnDetectionConfig": {
        "TurnEndWords": [
          "我說完了"
        ],
        "Mode": "Semantic",
        "SemanticWaitDuration": -1,
        "Eagerness": "High"
      },
      "ExperimentalConfig": "\"\"",
      "VcrConfig": {
        "StillFrameMotion": {
          "Enabled": false,
          "CallbackDelay": 3000
        },
        "InvalidFrameMotion": {
          "Enabled": false,
          "CallbackDelay": 3000
        },
        "PeopleCount": {
          "Enabled": false
        },
        "Equipment": {
          "Enabled": false
        },
        "HeadMotion": {
          "Enabled": false
        },
        "LookAway": {
          "Enabled": true
        }
      },
      "AmbientSoundConfig": {
        "ResourceId": "f67901c595834************",
        "Volume": 50
      },
      "AutoSpeechConfig": {
        "UserIdle": {
          "WaitTime": 5000,
          "MaxRepeats": 5,
          "Messages": [
            {
              "Text": "您還在嗎?",
              "Probability": 0.5
            }
          ]
        },
        "LlmPending": {
          "WaitTime": 3000,
          "Messages": [
            {
              "Text": "稍等一下",
              "Probability": 0.5
            }
          ]
        }
      },
      "BackChannelingConfigs": [
        {
          "Enabled": true,
          "TriggerStage": "pause_detected",
          "Probability": 0.5,
          "Words": [
            {
              "Text": "嗯嗯",
              "Probability": 0.3
            }
          ]
        }
      ],
      "BackChannelingConfig": [
        {
          "Enabled": true,
          "TriggerStage": "pause_detected",
          "Probability": 0.5,
          "Words": [
            {
              "Text": "嗯嗯",
              "Probability": 0.3
            }
          ]
        }
      ]
    },
    "GmtCreate": "2025-07-18T06:39:08.000+00:00",
    "GmtModified": "2025-07-18T06:40:12.000+00:00"
  },
  "RequestId": "7B117AF5-2A16-412C-B127-FA6175ED1AD0"
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情