API · 6 operationer
agent-runtime
Genererad ur services/agent-runtime/openapi.json, kontraktsversion 0.1.0. Auth-modell och anropare står i atlasen.
GET /healthz
Healthz
Liveness. Aldrig beroende av nedströms — en trasig dörr ska ge degraderade svar, inte en omstartsloop.
| Svar | Beskrivning | Kropp |
|---|---|---|
200 | Successful Response | { [nyckel]: string } application/json |
GET /readyz
Readyz
Readiness. Databasen prövas i Task 7, när den finns.
| Svar | Beskrivning | Kropp |
|---|---|---|
200 | Successful Response | { [nyckel]: string } application/json |
POST /v1/sessions
Create Session
| Parameter | I | Typ | Krävs |
|---|---|---|---|
authorization | header | string | null | nej |
Kropp: SessionCreate application/json
| Svar | Beskrivning | Kropp |
|---|---|---|
201 | Successful Response | SessionCreated application/json |
422 | Validation Error | HTTPValidationError application/json |
DELETE /v1/sessions/{session_id}
Delete Session
| Parameter | I | Typ | Krävs |
|---|---|---|---|
session_id | path | string (uuid) | ja |
authorization | header | string | null | nej |
| Svar | Beskrivning | Kropp |
|---|---|---|
204 | Successful Response | — |
422 | Validation Error | HTTPValidationError application/json |
GET /v1/sessions/{session_id}
Get Session
| Parameter | I | Typ | Krävs |
|---|---|---|---|
session_id | path | string (uuid) | ja |
authorization | header | string | null | nej |
| Svar | Beskrivning | Kropp |
|---|---|---|
200 | Successful Response | SessionRead application/json |
422 | Validation Error | HTTPValidationError application/json |
POST /v1/sessions/{session_id}/turns
Run Turn
| Parameter | I | Typ | Krävs |
|---|---|---|---|
session_id | path | string (uuid) | ja |
authorization | header | string | null | nej |
Kropp: TurnRequest application/json
| Svar | Beskrivning | Kropp |
|---|---|---|
200 | Successful Response | any application/json |
422 | Validation Error | HTTPValidationError application/json |
Scheman
HTTPValidationError
| Fält | Typ | Krävs |
|---|---|---|
detail | ValidationError[] | nej |
SessionCreate
| Fält | Typ | Krävs |
|---|---|---|
assistant_id | string (uuid) | ja |
SessionCreated
| Fält | Typ | Krävs |
|---|---|---|
expires_at | string (date-time) | ja |
session_id | string (uuid) | ja |
SessionRead
| Fält | Typ | Krävs |
|---|---|---|
assistant_id | string (uuid) | ja |
created_at | string (date-time) | ja |
expires_at | string (date-time) | ja |
session_id | string (uuid) | ja |
TurnRequest
| Fält | Typ | Krävs |
|---|---|---|
content | string | ja |
ValidationError
| Fält | Typ | Krävs |
|---|---|---|
ctx | object | nej |
input | any | nej |
loc | string | integer[] | ja |
msg | string | ja |
type | string | ja |