메인 콘텐츠로 건너뛰기
POST
/
calls
/
stream_query
콜 쿼리 스트림
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이면 응답에 확장된 컬럼의 원시 값(raw value)이 포함됩니다. false이면 응답에서 expand_columns는 필터링과 정렬에만 사용됩니다. 이는 예를 들어 성능상의 이유로 클라이언트가 참조(ref)를 직접 해석(resolve)하려는 경우에 유용합니다.

응답

성공 응답