@personaai/runtimev0.11.0

RuntimeRequest — @personaai/runtime

Generated field table for RuntimeRequest — do not edit

Generated from sdk/runtime/dist/typedoc.json — do not edit.

RuntimeRequest

Framework-neutral inbound request. A framework adapter (Express, Node http, ...) translates its own request object into this shape and calls Runtime.handle() — the runtime never imports a framework.

Source: types/request.ts:15

Interface

FieldTypeDescription
methodRuntimeMethod— _ types/request.ts:16_
pathstringPathname only (no query string). May still include the mountPath prefix — the runtime strips it. — _ types/request.ts:18_
headersRecord<string, string | undefined>Header names as the adapter received them (Node's http already lowercases these). — _ types/request.ts:20_
queryRecord<string, string | undefined>— _ types/request.ts:21_
bodyunknownAlready-parsed JSON body, or undefined for bodyless requests. For a multipart request (POST /files, POST /knowledge/:id/documents), this holds the non-file form fields (e.g. { agentId, threadId }) — the file(s) themselves are on file/files, not here. Parsing raw bytes is the adapter's job either way. — _ types/request.ts:29_
file?RuntimeUploadedFileThe uploaded file, for a multipart POST /files request (single-file upload) only. — _ types/request.ts:31_
files?RuntimeUploadedFile[]The uploaded files, for a multipart POST /knowledge/:id/documents request (multi-file upload) only. — _ types/request.ts:33_
userIdstring | nullThe resolved external user id. Always null on the request the host constructs — the runtime fills this in via resolveUser before an auth-required route handler sees it. — _ types/request.ts:39_