본문으로 건너뛰기

함수: decodeWsFrame()

function decodeWsFrame(data): InboundFrame;

정의 위치: packages/ai/src/stream-to-websocket.ts:48

클라이언트→서버 프레임 하나를 디코딩합니다. { type: 'abort', runId } 객체는 제어 프레임이며, 그 외의 값은 RunAgentInput으로 처리되고 이후 chatParamsFromRequestBody에서 검증됩니다.

매개변수

data

string

반환값

InboundFrame