# Agenți (/ro/docs/api/gateway/agents)

Rulezi un agent server-side sincron sau ca run asincron pe care îl interoghezi, îl urmărești în stream sau îl anulezi.

API-ul de agenți împachetează bucla proprie a gateway-ului cu unelte. Rulările sincrone returnează răspunsul inline; cele asincrone returnează `202` cu un id pe care îl interoghezi, îl urmărești peste SSE (replay complet la reconectare — fără `Last-Event-ID`) sau îl anulezi. Concepte și limite: [ghidul de agenți](../../agents/index.mdx).

<OpenAPIPage document="./openapi/ro/gateway.yaml" operations={[{path: '/v1/agents/run',method: 'post'},{path: '/v1/agents/runs',method: 'post'},{path: '/v1/agents/runs/stats',method: 'get'},{path: '/v1/agents/runs/{id}',method: 'get'},{path: '/v1/agents/runs/{id}/steps',method: 'get'},{path: '/v1/agents/runs/{id}/stream',method: 'get'},{path: '/v1/agents/runs/{id}/cancel',method: 'post'}]} />
