Ui Ai Sdk Chat
Authorization
host AuthorizationBearer <token>
Checked by host({authenticate}), which maps the request to a Principal or rejects it.
In: header
Path Parameters
agent*string
A key of host({agents}).
Length
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
POST /v1/ui/ai-sdk/{agent}: the part of an AI SDK 7 chat request (DefaultChatTransport's body) that threads reads. Other keys, and other fields of messages and parts, are ignored: the browser's history is never read as truth.
Response Body
text/event-stream
application/json
curl -X POST "https://example.com/v1/ui/ai-sdk/string" \ -H "Content-Type: application/json" \ -d '{ "id": "string", "messages": [ { "id": "string", "role": "system", "parts": [ { "type": "string" } ] } ], "trigger": "submit-message" }'"string"