withResponsesWebSocketSession
此内容尚不支持你的语言。
function withResponsesWebSocketSession<T>(callback, options): Promise<T>;Runs a callback within a session-scoped Responses API websocket provider/runner and closes the provider afterwards so websocket connections do not keep the process alive.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
|
|
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
( |
|
|
Returns
Section titled “Returns”Promise<T>