Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coze-dev/coze-go
/ functions
Functions
756 in github.com/coze-dev/coze-go
⨍
Functions
756
◇
Types & classes
542
↓ 1 callers
Function
DocumentSourceInfoBuildLocalFile
DocumentSourceInfoBuildLocalFile creates document source information for local file type
datasets_documents.go:384
↓ 1 callers
Function
DocumentSourceInfoBuildWebPage
DocumentSourceInfoBuildWebPage creates document source information for webpage type
datasets_documents.go:368
↓ 1 callers
Method
Error
Error implements the error interface
error.go:93
↓ 1 callers
Method
GenerateJWT
(ctx context.Context, opts *GenerateJWTReq)
auth.go:688
↓ 1 callers
Method
GetMsg
()
base_model.go:62
↓ 1 callers
Method
InputAudioBufferClear
(data *WebSocketInputAudioBufferClearEventData)
websocket_chat_client.go:59
↓ 1 callers
Method
IsConnected
IsConnected returns whether the client is connected
websocket_client.go:215
↓ 1 callers
Method
IsDone
()
workflows_runs.go:73
↓ 1 callers
Function
NewAudioMessageObjectByID
(fileID string)
common.go:196
↓ 1 callers
Function
NewAudioMessageObjectByURL
(fileURL string)
common.go:203
↓ 1 callers
Function
NewFileMessageObjectByID
(fileID string)
common.go:182
↓ 1 callers
Function
NewImageMessageObjectByID
(fileID string)
common.go:175
↓ 1 callers
Function
NewImageMessageObjectByURL
(fileURL string)
common.go:168
↓ 1 callers
Function
NewLastIDPaged
(fetcher PageFetcher[T], pageSize int, nextID *string)
pagination.go:137
↓ 1 callers
Function
NewListDatasetsReq
(spaceID string)
datasets.go:138
↓ 1 callers
Function
NewListWorkspaceReq
()
workspaces.go:47
↓ 1 callers
Function
NewTextMessageObject
NewTextMessageObject Helper functions for creating MessageObjectString
common.go:161
↓ 1 callers
Method
OnChatCreated
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketChatCreatedEvent) error)
websocket_chat_client.go:118
↓ 1 callers
Method
OnChatUpdated
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketChatUpdatedEvent) error)
websocket_chat_client.go:122
↓ 1 callers
Method
OnClientError
(handler func(ctx context.Context, cli *WebSocketAudioTranscription, event *WebSocketClientErrorEvent) error)
websocket_audio_transcription_client.go:85
↓ 1 callers
Method
OnClientError
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketClientErrorEvent) error)
websocket_chat_client.go:110
↓ 1 callers
Method
OnClientError
(handler func(ctx context.Context, cli *WebSocketAudioSpeech, event *WebSocketClientErrorEvent) error)
websocket_audio_speech_client.go:82
↓ 1 callers
Method
OnClosed
(handler func(ctx context.Context, cli *WebSocketAudioTranscription, event *WebSocketClosedEvent) error)
websocket_audio_transcription_client.go:93
↓ 1 callers
Method
OnClosed
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketClosedEvent) error)
websocket_chat_client.go:114
↓ 1 callers
Method
OnClosed
(handler func(ctx context.Context, cli *WebSocketAudioSpeech, event *WebSocketClosedEvent) error)
websocket_audio_speech_client.go:90
↓ 1 callers
Method
OnConversationAudioCompleted
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketConversationAudioCompletedEvent) error)
websocket_chat_client.go:150
↓ 1 callers
Method
OnConversationAudioDelta
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketConversationAudioDeltaEvent) error)
websocket_chat_client.go:142
↓ 1 callers
Method
OnConversationAudioSentenceStart
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketConversationAudioSentenceStartEvent) er
websocket_chat_client.go:138
↓ 1 callers
Method
OnConversationAudioTranscriptCompleted
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketConversationAudioTranscriptCompletedEve
websocket_chat_client.go:182
↓ 1 callers
Method
OnConversationAudioTranscriptUpdate
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketConversationAudioTranscriptUpdateEvent)
websocket_chat_client.go:178
↓ 1 callers
Method
OnConversationChatCanceled
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketConversationChatCanceledEvent) error)
websocket_chat_client.go:174
↓ 1 callers
Method
OnConversationChatCompleted
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketConversationChatCompletedEvent) error)
websocket_chat_client.go:154
↓ 1 callers
Method
OnConversationChatCreated
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketConversationChatCreatedEvent) error)
websocket_chat_client.go:126
↓ 1 callers
Method
OnConversationChatFailed
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketConversationChatFailedEvent) error)
websocket_chat_client.go:158
↓ 1 callers
Method
OnConversationChatInProgress
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketConversationChatInProgressEvent) error)
websocket_chat_client.go:130
↓ 1 callers
Method
OnConversationChatRequiresAction
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketConversationChatRequiresActionEvent) er
websocket_chat_client.go:186
↓ 1 callers
Method
OnConversationCleared
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketConversationClearedEvent) error)
websocket_chat_client.go:170
↓ 1 callers
Method
OnConversationMessageCompleted
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketConversationMessageCompletedEvent) erro
websocket_chat_client.go:146
↓ 1 callers
Method
OnConversationMessageDelta
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketConversationMessageDeltaEvent) error)
websocket_chat_client.go:134
↓ 1 callers
Method
OnError
(handler func(ctx context.Context, cli *WebSocketAudioTranscription, event *WebSocketErrorEvent) error)
websocket_audio_transcription_client.go:89
↓ 1 callers
Method
OnError
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketErrorEvent) error)
websocket_chat_client.go:106
↓ 1 callers
Method
OnError
(handler func(ctx context.Context, cli *WebSocketAudioSpeech, event *WebSocketErrorEvent) error)
websocket_audio_speech_client.go:86
↓ 1 callers
Method
OnInputAudioBufferCleared
(handler func(ctx context.Context, cli *WebSocketAudioTranscription, event *WebSocketInputAudioBufferClearedEv
websocket_audio_transcription_client.go:109
↓ 1 callers
Method
OnInputAudioBufferCleared
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketInputAudioBufferClearedEvent) error)
websocket_chat_client.go:166
↓ 1 callers
Method
OnInputAudioBufferCompleted
(handler func(ctx context.Context, cli *WebSocketAudioTranscription, event *WebSocketInputAudioBufferCompleted
websocket_audio_transcription_client.go:105
↓ 1 callers
Method
OnInputAudioBufferCompleted
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketInputAudioBufferCompletedEvent) error)
websocket_chat_client.go:162
↓ 1 callers
Method
OnInputAudioBufferSpeechStarted
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketInputAudioBufferSpeechStartedEvent) err
websocket_chat_client.go:190
↓ 1 callers
Method
OnInputAudioBufferSpeechStopped
(handler func(ctx context.Context, cli *WebSocketChat, event *WebSocketInputAudioBufferSpeechStoppedEvent) err
websocket_chat_client.go:194
↓ 1 callers
Method
OnInputTextBufferCompleted
(handler func(ctx context.Context, cli *WebSocketAudioSpeech, event *WebSocketInputTextBufferCompletedEvent) e
websocket_audio_speech_client.go:102
↓ 1 callers
Method
OnSpeechAudioCompleted
(handler func(ctx context.Context, cli *WebSocketAudioSpeech, event *WebSocketSpeechAudioCompletedEvent) error
websocket_audio_speech_client.go:110
↓ 1 callers
Method
OnSpeechAudioUpdate
(handler func(ctx context.Context, cli *WebSocketAudioSpeech, event *WebSocketSpeechAudioUpdateEvent) error)
websocket_audio_speech_client.go:106
↓ 1 callers
Method
OnSpeechCreated
(handler func(ctx context.Context, cli *WebSocketAudioSpeech, event *WebSocketSpeechCreatedEvent) error)
websocket_audio_speech_client.go:94
↓ 1 callers
Method
OnSpeechUpdated
(handler func(ctx context.Context, cli *WebSocketAudioSpeech, event *WebSocketSpeechUpdatedEvent) error)
websocket_audio_speech_client.go:98
↓ 1 callers
Method
OnTranscriptionsCreated
(handler func(ctx context.Context, cli *WebSocketAudioTranscription, event *WebSocketTranscriptionsCreatedEven
websocket_audio_transcription_client.go:97
↓ 1 callers
Method
OnTranscriptionsMessageCompleted
(handler func(ctx context.Context, cli *WebSocketAudioTranscription, event *WebSocketTranscriptionsMessageComp
websocket_audio_transcription_client.go:117
↓ 1 callers
Method
OnTranscriptionsMessageUpdate
(handler func(ctx context.Context, cli *WebSocketAudioTranscription, event *WebSocketTranscriptionsMessageUpda
websocket_audio_transcription_client.go:113
↓ 1 callers
Method
OnTranscriptionsUpdated
(handler func(ctx context.Context, cli *WebSocketAudioTranscription, event *WebSocketTranscriptionsUpdatedEven
websocket_audio_transcription_client.go:101
↓ 1 callers
Method
ReadMessage
()
websocket_client.go:51
↓ 1 callers
Method
RefreshToken
RefreshToken refreshes the access token
auth.go:452
↓ 1 callers
Method
RefreshToken
RefreshToken refreshes the access token
auth.go:592
↓ 1 callers
Method
Retrieve
(ctx context.Context, req *RetrieveChatsReq)
chats.go:103
↓ 1 callers
Method
SetFilename
(filename string)
request.go:390
↓ 1 callers
Method
SetReader
(file io.ReadCloser)
request.go:386
↓ 1 callers
Method
SpeechUpdate
(data *WebSocketSpeechUpdateEventData)
websocket_audio_speech_client.go:46
↓ 1 callers
Method
SubmitToolOutputs
(ctx context.Context, req *SubmitToolOutputsChatReq)
chats.go:114
↓ 1 callers
Method
TranscriptionsUpdate
(data *WebSocketTranscriptionsUpdateEventData)
websocket_audio_transcription_client.go:47
↓ 1 callers
Function
WithAuthWWWURL
WithAuthWWWURL adds base URL
auth.go:222
↓ 1 callers
Function
WithEnableLogID
(enableLogID bool)
client.go:68
↓ 1 callers
Method
WriteMessage
(messageType int, data []byte)
websocket_client.go:50
↓ 1 callers
Method
assert
(t *testing.T)
websocket_audio_speech_client_success_test.go:26
↓ 1 callers
Method
assert
(t *testing.T)
websocket_audio_transcriptions_client_success_test.go:25
↓ 1 callers
Method
assert
(t *testing.T)
websocket_chat_client_success_test.go:35
↓ 1 callers
Method
assert
(t *testing.T)
websocket_chat_client_generate_audio_success_test.go:26
↓ 1 callers
Function
bytesToHex
(bytes []byte)
utils.go:36
↓ 1 callers
Method
checkRespErr
()
stream_reader.go:86
↓ 1 callers
Function
couldContainBaseModel
(t reflect.Type)
request.go:567
↓ 1 callers
Method
doGetDeviceCode
(ctx context.Context, workspaceID *string)
auth.go:510
↓ 1 callers
Function
doParseChatEvent
(eventLine map[string]string)
chats.go:382
↓ 1 callers
Function
doParseWorkflowEvent
(eventLine map[string]string)
workflows_runs.go:309
↓ 1 callers
Method
doRequest
(ctx context.Context, rawHttpReq *rawHttpRequest, realResponse interface{})
request.go:126
↓ 1 callers
Function
findBaseModelInValueBFS
(v reflect.Value)
request.go:511
↓ 1 callers
Function
genS256CodeChallenge
genS256CodeChallenge generates S256 code challenge
auth.go:457
↓ 1 callers
Method
getAPIPath
()
auth.go:51
↓ 1 callers
Function
getBaseModelPointer
从任意类型中提取 baseModel 的指针(广度优先)
request.go:503
↓ 1 callers
Method
getCode
getCode gets the verification code
auth.go:428
↓ 1 callers
Function
getCodeMsg
(v interface{}, respContent string)
request.go:393
↓ 1 callers
Function
getCozeClientUserAgent
()
user_agent.go:34
↓ 1 callers
Method
getGetDeviceCodeAPIPath
(workspaceID *string)
auth.go:527
↓ 1 callers
Method
getReq
(clientID string)
auth.go:60
↓ 1 callers
Function
getResponseLogID
(response *http.Response)
request.go:440
↓ 1 callers
Function
getStringFromContext
(ctx context.Context, key string)
request.go:449
↓ 1 callers
Method
handleEvent
(event IWebSocketEvent)
websocket_client.go:332
↓ 1 callers
Function
handleEvents
The stream interface will return an iterator of WorkflowEvent. Developers should iterate through this iterator to obtain WorkflowEvent and handle them
examples/workflows/runs/stream/main.go:59
↓ 1 callers
Method
handleEvents
handleEvents processes received events
websocket_client.go:321
↓ 1 callers
Function
isResponseSuccess
(ctx context.Context, baseResp baseRespInterface, bodyBytes []byte, httpResponse *httpResponse)
request.go:675
↓ 1 callers
Method
needRefresh
()
auth_token.go:80
↓ 1 callers
Function
newAudio
(core *core)
audio.go:48
↓ 1 callers
Function
newFileUploadRequest
(params map[string]string, filekey, fileName string, reader io.Reader)
request.go:361
↓ 1 callers
Function
newMockCore
()
websocket_chat_client_test.go:8
↓ 1 callers
Function
newMockWebSocketConn
(expectedItems []*testdataWebSocketItem)
websocket_client_test.go:80
← previous
next →
201–300 of 756, ranked by callers