全部產品
Search
文件中心

Intelligent Media Services:ListAIAgentInstance - 查詢AI智能體執行個體列表

更新時間:Apr 21, 2026

查詢AI智能體執行個體列表,可以擷取所有或指定條件下的智能體執行個體列表。

介面說明

該介面允許使用者根據指定的智能體 ID(AIAgentId),以及可選的時間範圍(StartTimeEndTime)、每頁記錄數(PageSize)和當前頁碼(PageNumber)來查詢 AI 智能體執行個體列表。返回結果包含每個執行個體的狀態、運行時配置、模板配置、使用者自訂資料及對話通話記錄的下載連結。

重要 分頁參數預設值:PageSize 為 10,PageNumber 為 1。

調試

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

調試

授權資訊

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

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

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

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

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

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

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

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

操作

存取層級

資源類型

條件關鍵字

關聯操作

ice:ListAIAgentInstance

none

*全部資源

*

請求參數

名稱

類型

必填

描述

樣本值

AIAgentId

string

智能體 Id。

39f8e0bc005e4f309379701645f4***

StartTime

string

查詢的開始時間(ISO 8601 格式)。預設無。

2023-01-01T00:00:00Z

EndTime

string

查詢的結束時間(ISO 8601 格式)。預設無。

2023-01-02T00:00:00Z

PageSize

integer

每頁數量,預設 10,取值範圍 0~100。

10

PageNumber

integer

當前頁數,預設值 1,取值範圍 1~100。

1

返回參數

名稱

類型

描述

樣本值

object

Schema of Response

Instances

array<object>

智能體執行個體結構體列表。

object

CallLogUrl

string

智能體對話通話記錄檔案 URL,該檔案內部是 CallLog 結構(Json 格式)。

https://example.com/call_logs/12345.json

RuntimeConfig AIAgentRuntimeConfig

智能體運行時所需要的配置。

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

Status

string

執行個體狀態:

  • Created:通話啟動但是雙端未建立串連

  • Executing:通話執行中,雙端已經建立串連

  • Finished:通話結束

枚舉值:

  • Finished :

    Finished

  • Executing :

    Executing

Finished

TemplateConfig deprecated AIAgentTemplateConfig

智能體執行個體所使用的模版配置。

{"VoiceChat": {"VoiceId": "zhixiaoxia"}}

UserData

string

使用者自訂資訊。

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

AgentConfig AIAgentConfig

智能體執行個體所使用的模版配置。

RequestId

string

請求 ID。

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

樣本

正常返回樣本

JSON格式

{
  "Instances": [
    {
      "CallLogUrl": "https://example.com/call_logs/12345.json",
      "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\"}}",
      "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": "Explicit"
        },
        "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
              }
            ]
          }
        ]
      }
    }
  ],
  "RequestId": "7B117AF5-2A16-412C-B127-FA6175ED1AD0"
}

錯誤碼

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

變更歷史

更多資訊,參考變更詳情