Passer au contenu principal
POST
/
agents
/
agent-versions
/
query
Requête sur les versions d’agent 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
}

Autorisations

Authorization
string
header
requis

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

Corps

application/json

Requête permettant de lister les versions d'un agent.

agent_name
string
requis
project_id
string
requis
limit
integer
défaut:100
Plage requise: 0 <= x <= 10000
offset
integer
défaut:0
Plage requise: x >= 0
sort_by
AgentSortBy · object[] | null

Réponse

Réponse réussie

Réponse contenant des statistiques de version d'agent.

versions
AgentVersionSchema · object[]
requis
total_count
integer
défaut:0