Pular para o conteúdo principal
GET
/
api
/
v1
/
agents
/
{agent_id}
/
runs
/
{run_id}
Python (SDK)
from openapi import SDK, models


with SDK() as sdk:

    res = sdk.agent_runs.get_agent_run(security=models.GetAgentRunSecurity(
        bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
    ), agent_id="<id>", run_id="<id>")

    # Handle response
    print(res)
{
  "object": "agent.run",
  "id": "<string>",
  "agent_id": "<string>",
  "status": "queued",
  "input": "<string>",
  "conversation": "<string>",
  "previous_response_id": "<string>",
  "metadata": {},
  "gateway_response_id": "<string>",
  "gateway_response": "<string>",
  "error": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "completed_at": "2023-11-07T05:31:56Z"
}

Autorizações

Authorization
string
header
obrigatório

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Cabeçalhos

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Parâmetros de caminho

agent_id
string
obrigatório
run_id
string
obrigatório

Resposta

Execução encontrada.

object
enum<string>
obrigatório
Opções disponíveis:
agent.run
id
string
obrigatório
agent_id
string
obrigatório
status
enum<string>
obrigatório
Opções disponíveis:
queued,
completed,
failed
input
obrigatório
conversation
obrigatório
previous_response_id
string | null
obrigatório
metadata
object
obrigatório
gateway_response_id
string | null
obrigatório
gateway_response
obrigatório
error
obrigatório
created_at
string<date-time>
obrigatório
completed_at
string<date-time> | null
obrigatório