Function: decodeGatewayRequest()
decodeGatewayRequest(
protocol,body):DecodedGatewayRequest
Decode one supported external protocol into AI SDK model messages and tools.
Parameters
Section titled “Parameters”protocol
Section titled “protocol”"openai-responses" | "openai-chat" | "anthropic-messages" | "openai-embeddings"
Readonly<Record<string, unknown>>