메인 콘텐츠로 건너뛰기
POST
/
agents
/
query
GenAI 에이전트 쿼리
curl --request POST \
  --url https://api.example.com/agents/query \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "<string>",
  "filters": {
    "agent_name": "<string>"
  },
  "limit": 100,
  "offset": 0,
  "sort_by": [
    {
      "field": "<string>",
      "direction": "desc"
    }
  ]
}
'
{
  "agents": [
    {
      "agent_name": "<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

프로젝트의 집계된 통계와 함께 에이전트 목록을 요청합니다.

project_id
string
필수
filters
AgentsQueryFilters · object

에이전트 쿼리를 위한 선택 필터입니다.

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

응답

성공 응답

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

agents
AgentSchema · object[]
필수
total_count
integer
기본값:0