全部產品
Search
文件中心

DataWorks:GetAgentSessionArtifactMeta - 查詢 Artifact 元資訊與內容

更新時間:May 06, 2026

根據會話ID和檔案路徑擷取Artifact的元資訊及本文內容。

介面說明

請求說明

  • 該介面用於根據 SessionIdArtifactPath 擷取單個 Artifact 的元資訊及本文內容。

  • SessionIdArtifactPath 均為必填參數。

調試

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

調試

授權資訊

當前API暫無授權資訊透出。

請求文法

POST  HTTP/1.1

請求參數

名稱

類型

必填

描述

樣本值

Jsonrpc

string

JSON-RPC 版本,固定 2.0

2.0

Id

string

請求方傳入的 id,原樣回顯

900335678024

Params

object

業務參數

SessionId

string

會話 ID,必填

sess_0f12abc34

ArtifactPath

string

產出路徑,必填

mock/mock_report.md

返回參數

名稱

類型

描述

樣本值

object

Schema of Response

RequestId

string

請求 trace_id,與日誌可關聯

CE70C54F-A3BD-5C19-88EF-2A7D3451C449

JsonRpcResponse

object

JSON-PRC 的返回結果

Jsonrpc

string

JSON-RPC 版本,固定 2.0

2.0

Id

string

請求方傳入的 id,原樣回顯

300010555

Result

object

模型產出物 Meta 資訊

ArtifactPath

string

產出物路徑

mock/mock_report.md

ArtifactName

string

產出物名稱

mock_report.md

ArtifactContent

string

產出物內容

This is md content

樣本

正常返回樣本

JSON格式

{
  "RequestId": "CE70C54F-A3BD-5C19-88EF-2A7D3451C449",
  "JsonRpcResponse": {
    "Jsonrpc": "2.0",
    "Id": "300010555",
    "Result": {
      "ArtifactPath": "mock/mock_report.md",
      "ArtifactName": "mock_report.md",
      "ArtifactContent": "This is md content"
    }
  }
}

錯誤碼

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

變更歷史

更多資訊,參考變更詳情