public class WebsocketsChatClient extends BaseWebsocketsClient
CLOSE_TIMEOUT_SECONDS, executorService, listener, logger, ws| Modifier | Constructor and Description |
|---|---|
protected |
WebsocketsChatClient(okhttp3.OkHttpClient client,
String wsHost,
WebsocketsChatCreateReq req) |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
buildUrl(String wsHost,
WebsocketsChatCreateReq req) |
void |
chatUpdate(ChatUpdateEventData data) |
void |
conversationChatCancel() |
void |
conversationChatSubmitToolOutputs(ConversationChatSubmitToolOutputsEvent.Data data) |
void |
conversationClear() |
void |
conversationMessageCreate(Message data) |
protected BaseCallbackHandler |
getCallbackHandler() |
protected void |
handleEvent(okhttp3.WebSocket ws,
String text) |
void |
inputAudioBufferAppend(byte[] data) |
void |
inputAudioBufferAppend(String data) |
void |
inputAudioBufferClear() |
void |
inputAudioBufferComplete() |
close, parseEventType, sendEventprotected WebsocketsChatClient(okhttp3.OkHttpClient client,
String wsHost,
WebsocketsChatCreateReq req)
protected static String buildUrl(String wsHost, WebsocketsChatCreateReq req)
public void chatUpdate(ChatUpdateEventData data)
public void conversationChatCancel()
public void conversationChatSubmitToolOutputs(ConversationChatSubmitToolOutputsEvent.Data data)
public void conversationClear()
public void conversationMessageCreate(Message data)
public void inputAudioBufferAppend(String data)
public void inputAudioBufferAppend(byte[] data)
public void inputAudioBufferClear()
public void inputAudioBufferComplete()
protected BaseCallbackHandler getCallbackHandler()
getCallbackHandler in class BaseWebsocketsClientprotected void handleEvent(okhttp3.WebSocket ws,
String text)
handleEvent in class BaseWebsocketsClientCopyright © 2025. All rights reserved.