İçeriğe geç

Yerleşik ajan

Ajan oturumları, olayları, iletiler, bütçe ve araç onayları.

Bu sayfada

Kavramlar: Yerleşik ajan

Uç özetleri OpenAPI belgesinden gelir ve İngilizcedir.

GET/v1/agent/sessions

Built-in agent sessions of the team (full sign-in only)

İşlem (MCP aracı)
listAgentSessions
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
projectİsteğe bağlısorgustring
limitİsteğe bağlısorguintegermin 1, max 100, default 50

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKobject
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

POST/v1/agent/sessions

Start the built-in agent: it builds and publishes a preview version. Spends agent credits up to the budget

İşlem (MCP aracı)
startAgentSession
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
Idempotency-Keyİsteğe bağlıbaşlıkstringReplays the first response for 24 hourslength 8–128

İstek gövdesi

application/jsonobjectZorunlu

İstek gövdesi
AdTürAçıklama
promptZorunlustringmax length 8000
projectİsteğe bağlıstringExisting project id or name
budgetCentsİsteğe bağlıintegermin 50, max 5000

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
201StartedAgentSession
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
402ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
409ProblemProblem (RFC 9457)
502ProblemProblem (RFC 9457)
503ProblemProblem (RFC 9457)

GET/v1/agent/sessions/{session}

One agent session

İşlem (MCP aracı)
getAgentSession
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
sessionZorunluyolstringSession id (`ags_…`)

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKAgentSession
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

GET/v1/agent/sessions/{session}/events

Conversation and progress of an agent session, oldest first; pass after=<seq> for new events

İşlem (MCP aracı)
listAgentEvents
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
sessionZorunluyolstringSession id (`ags_…`)
afterİsteğe bağlısorguintegermin 0
limitİsteğe bağlısorguintegermin 1, max 200

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKobject
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

POST/v1/agent/sessions/{session}/messages

Send a message to the agent

İşlem (MCP aracı)
sendAgentMessage
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
sessionZorunluyolstringSession id (`ags_…`)

İstek gövdesi

application/jsonobjectZorunlu

İstek gövdesi
AdTürAçıklama
textZorunlustringmax length 8000

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKAgentSession
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
402ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
409ProblemProblem (RFC 9457)
502ProblemProblem (RFC 9457)

POST/v1/agent/sessions/{session}/interrupt

Stop what the agent is doing

İşlem (MCP aracı)
interruptAgentSession
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
sessionZorunluyolstringSession id (`ags_…`)

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKAgentSession
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
409ProblemProblem (RFC 9457)
502ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.

POST/v1/agent/sessions/{session}/budget

Change the session budget; a paused session continues

İşlem (MCP aracı)
setAgentBudget
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
sessionZorunluyolstringSession id (`ags_…`)

İstek gövdesi

application/jsonobjectZorunlu

İstek gövdesi
AdTürAçıklama
budgetCentsZorunluinteger

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKAgentSession
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
402ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
409ProblemProblem (RFC 9457)
502ProblemProblem (RFC 9457)

POST/v1/agent/sessions/{session}/confirmations/{event}

Allow or deny a command the agent is waiting on

İşlem (MCP aracı)
confirmAgentTool
Kimlik
API anahtarı (pfa_…)OAuth belirteci (pfo_…)

Parametreler

Parametreler
AdYerTürAçıklama
sessionZorunluyolstringSession id (`ags_…`)
eventZorunluyolstringPending event id

İstek gövdesi

application/jsonobjectZorunlu

İstek gövdesi
AdTürAçıklama
allowZorunluboolean
messageİsteğe bağlıstringmax length 500

Yanıtlar

Yanıtlar
DurumAçıklamaGövde
200OKAgentSession
400ProblemProblem (RFC 9457)
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)
404ProblemProblem (RFC 9457)
409ProblemProblem (RFC 9457)
502ProblemProblem (RFC 9457)

İlgili hata kodları

Bu ucun ve API’nin bu bölümünün döndürdüğü hata kodları. Her biri ne olduğunu ve ne yapılacağını anlatır.