메인 콘텐츠로 건너뛰기
POST
/
agents
/
agent-versions
/
query
GenAI 에이전트 버전 쿼리
curl --request POST \
  --url https://api.example.com/agents/agent-versions/query \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_name": "<string>",
  "project_id": "<string>",
  "limit": 100,
  "offset": 0,
  "sort_by": [
    {
      "field": "<string>",
      "direction": "desc"
    }
  ]
}
'
{
  "versions": [
    {
      "agent_name": "<string>",
      "agent_version": "<string>",
      "error_count": 123,
      "first_seen": "2023-11-07T05:31:56Z",
      "invocation_count": 123,
      "last_seen": "2023-11-07T05:31:56Z",
      "project_id": "<string>",
      "span_count": 123,
      "total_duration_ms": 123,
      "total_input_tokens": 123,
      "total_output_tokens": 123
    }
  ],
  "total_count": 0
}

인증

Authorization
string
header
필수

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

본문

application/json

에이전트의 버전 목록을 요청합니다.

agent_name
string
필수
project_id
string
필수
limit
integer
기본값:100
필수 범위: 0 <= x <= 10000
offset
integer
기본값:0
필수 범위: x >= 0
sort_by
AgentSortBy · object[] | null

응답

성공 응답

에이전트 버전 통계를 포함하는 응답입니다.

versions
AgentVersionSchema · object[]
필수
total_count
integer
기본값:0