メインコンテンツへスキップ
POST
/
agents
/
query
GenAI Agentsクエリ
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 の集約済みエージェント統計とともにエージェントを一覧表示するためのリクエストです。

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