メインコンテンツへスキップ
POST
/
calls
/
stream_query
Calls クエリ ストリーム
curl --request POST \
  --url https://api.example.com/calls/stream_query \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "<string>",
  "filter": {
    "op_names": [
      "<string>"
    ],
    "input_refs": [
      "<string>"
    ],
    "output_refs": [
      "<string>"
    ],
    "parent_ids": [
      "<string>"
    ],
    "trace_ids": [
      "<string>"
    ],
    "call_ids": [
      "<string>"
    ],
    "thread_ids": [
      "<string>"
    ],
    "turn_ids": [
      "<string>"
    ],
    "trace_roots_only": true,
    "wb_user_ids": [
      "<string>"
    ],
    "wb_run_ids": [
      "<string>"
    ]
  },
  "limit": 123,
  "offset": 123,
  "sort_by": [
    {
      "field": "<string>",
      "direction": "asc"
    }
  ],
  "query": {
    "$expr": {
      "$and": [
        {
          "$literal": "<string>"
        }
      ]
    }
  },
  "include_costs": false,
  "include_feedback": false,
  "include_storage_size": false,
  "include_total_storage_size": false,
  "columns": [
    "<string>"
  ],
  "expand_columns": [
    "inputs.self.message",
    "inputs.model.prompt"
  ],
  "return_expanded_column_values": true
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

承認

Authorization
string
header
必須

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

ヘッダー

accept
string
デフォルト:application/jsonl

ボディ

application/json
project_id
string
必須
filter
CallsFilter · object
limit
integer | null
offset
integer | null
sort_by
SortBy · object[] | null
query
Query · object
include_costs
boolean | null
デフォルト:false

ベータ版機能のため、今後変更される可能性があります。true の場合、レスポンスに各呼び出しのモデルコストが含まれます。

include_feedback
boolean | null
デフォルト:false

ベータ版機能のため、今後変更される可能性があります。true の場合、レスポンスに各呼び出しのフィードバックが含まれます。

include_storage_size
boolean | null
デフォルト:false

ベータ版機能のため、今後変更される可能性があります。true の場合、レスポンスに各呼び出しのストレージサイズが含まれます。

include_total_storage_size
boolean | null
デフォルト:false

ベータ版機能のため、今後変更される可能性があります。true の場合、レスポンスにトレース全体のストレージサイズが含まれます。

columns
string[] | null
expand_columns
string[] | null

展開するカラム。つまり、他のオブジェクトへの参照を含む列を指定します。

:
[
"inputs.self.message",
"inputs.model.prompt"
]
return_expanded_column_values
boolean | null
デフォルト:true

true の場合、レスポンスには展開されたカラムの生のデータ値が含まれます。false の場合、レスポンスの expand_columns はフィルタリングと並べ替えにのみ使用されます。これは、たとえばパフォーマンス上の理由から、クライアント側で参照を自分で解決したい場合に便利です。

レスポンス

成功したレスポンス