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
↓ 141 callers
Method
LogID
()
base_model.go:10
↓ 128 callers
Function
randomString
(length int)
request_test.go:27
↓ 125 callers
Function
newMockTransport
(fn func(req *http.Request) (*http.Response, error))
auth_test.go:23
↓ 124 callers
Function
newCoreWithTransport
(transport http.RoundTripper)
request_test.go:16
↓ 96 callers
Function
mockResponse
(statusCode int, body interface{})
auth_test.go:38
↓ 77 callers
Method
Response
()
pagination.go:4
↓ 76 callers
Method
rawRequest
(ctx context.Context, req *RawRequestReq, resp interface{})
request.go:37
↓ 54 callers
Function
ptr
(s T)
utils.go:16
↓ 50 callers
Method
Error
Error implements the error interface
error.go:23
↓ 49 callers
Method
List
(ctx context.Context, req *ListAppReq)
apps.go:8
↓ 48 callers
Method
Create
Create 创建智能体 docs: https://www.coze.cn/open/docs/developer_guides/create_bot
bots.go:11
↓ 43 callers
Method
Errorf
(ctx context.Context, message string, args ...interface{})
logger.go:106
↓ 36 callers
Method
Close
()
stream_reader.go:19
↓ 34 callers
Method
HasMore
()
pagination.go:9
↓ 32 callers
Method
Recv
()
stream_reader.go:20
↓ 31 callers
Method
Err
()
pagination.go:5
↓ 29 callers
Method
Items
()
pagination.go:6
↓ 26 callers
Method
Retrieve
Retrieve 获取已发布智能体配置(即将下线) docs: https://www.coze.cn/open/docs/developer_guides/get_metadata
bots.go:53
↓ 23 callers
Function
registerChatEventHandler
(c *WebSocketChat, eventType WebSocketEventType, handler func(ctx context.Context, cli *WebSocketChat, event *
websocket_chat_client.go:100
↓ 22 callers
Method
String
()
auth.go:89
↓ 19 callers
Method
Log
(ctx context.Context, level LogLevel, message string, args ...interface{})
logger.go:12
↓ 18 callers
Method
Delete
(ctx context.Context, req *DeleteDatasetsReq)
datasets.go:58
↓ 18 callers
Method
Update
Update 更新智能体 docs: https://www.coze.cn/open/docs/developer_guides/update_bot
bots.go:25
↓ 17 callers
Function
WithAuthBaseURL
WithAuthBaseURL adds base URL
auth.go:215
↓ 16 callers
Method
GetEventType
()
websocket_event.go:12
↓ 16 callers
Function
newWebSocketEvent
(eventType WebSocketEventType, data any)
websocket_event.go:1013
↓ 16 callers
Function
ptrValue
(s *T)
utils.go:8
↓ 16 callers
Method
sendEvent
发送事件
websocket_client.go:222
↓ 15 callers
Method
Next
()
pagination.go:8
↓ 14 callers
Method
Current
()
pagination.go:7
↓ 14 callers
Method
Name
()
files.go:49
↓ 12 callers
Method
Connect
()
websocket.go:4
↓ 12 callers
Function
NewNumberPaged
(fetcher PageFetcher[T], pageSize, pageNum int)
pagination.go:77
↓ 12 callers
Method
Ptr
()
audio.go:19
↓ 11 callers
Method
Stream
(ctx context.Context, req *CreateChatsReq)
chats.go:79
↓ 11 callers
Function
WithAuthHttpClient
(client HTTPClient)
auth.go:228
↓ 11 callers
Function
newCore
(opt *clientOption)
client.go:125
↓ 11 callers
Function
newHTTPClientWithTransport
(fn func(req *http.Request) (*http.Response, error))
request_test.go:12
↓ 10 callers
Method
Total
()
pagination.go:14
↓ 10 callers
Method
Wait
(eventTypes ...WebSocketEventType)
websocket.go:7
↓ 10 callers
Function
newAudioVoiceprintGroups
(core *core)
audio_voiceprint_groups.go:155
↓ 9 callers
Method
Log
(ctx context.Context, level LogLevel, msg string, args ...interface{})
logger.go:123
↓ 9 callers
Method
RegisterHandler
RegisterHandler registers all handlers with the client
websocket_chat_client.go:199
↓ 9 callers
Method
Token
(ctx context.Context)
auth_token.go:9
↓ 9 callers
Function
getWebSocketEventTypeIndex
(WebSocketEventType WebSocketEventType)
websocket_wait.go:21
↓ 9 callers
Function
newAudioVoiceprintGroupsFeatures
(core *core)
audio_voiceprint_groups_features.go:179
↓ 9 callers
Function
registerAudioTranscriptionEventHandler
(c *WebSocketAudioTranscription, eventType WebSocketEventType, handler func(ctx context.Context, cli *WebSocke
websocket_audio_transcription_client.go:79
↓ 8 callers
Function
NewError
(code int, msg, logID string)
error.go:14
↓ 8 callers
Function
NewJWTOAuthClient
NewJWTOAuthClient creates a new JWT OAuth core
auth.go:612
↓ 8 callers
Method
Upload
(ctx context.Context, req *UploadFilesReq)
files.go:9
↓ 8 callers
Function
getRefreshBefore
(ttl int)
auth_token.go:29
↓ 8 callers
Function
newChats
(core *core)
chats.go:479
↓ 8 callers
Function
newConversationMessage
(core *core)
conversations_messages.go:97
↓ 8 callers
Function
newEventWaiter
(enableEvents []WebSocketEventType)
websocket_wait.go:26
↓ 8 callers
Function
registerAudioSpeechEventHandler
(c *WebSocketAudioSpeech, eventType WebSocketEventType, handler func(ctx context.Context, cli *WebSocketAudioS
websocket_audio_speech_client.go:76
↓ 8 callers
Method
wait
(ctx context.Context, eventTypes []WebSocketEventType, waitAll bool)
websocket_wait.go:40
↓ 7 callers
Function
NewCozeAPI
(auth Auth, opts ...CozeAPIOption)
client.go:80
↓ 7 callers
Function
mockStreamResponse
(data string)
chats_test.go:13
↓ 7 callers
Function
newBots
(core *core)
bots.go:339
↓ 7 callers
Function
newConversations
(core *core)
conversations.go:190
↓ 7 callers
Function
newEnterprisesMembers
(core *core)
enterprises_members.go:114
↓ 7 callers
Function
newWorkflowRun
(core *core)
workflows_runs.go:335
↓ 7 callers
Function
newWorkspacesMembers
(core *core)
workspaces_members.go:133
↓ 6 callers
Method
IsConnected
()
websocket.go:6
↓ 6 callers
Function
NewJWTAuth
(client *JWTOAuthClient, opt *GetJWTAccessTokenReq)
auth_token.go:40
↓ 6 callers
Function
NewTokenAuth
NewTokenAuth creates a new token authentication instance.
auth_token.go:23
↓ 6 callers
Method
OnEvent
(eventType WebSocketEventType, handler EventHandler)
websocket.go:8
↓ 6 callers
Function
WritePCMToWavFile
(file string, audioPCMData []byte)
examples/websockets/util/write.go:8
↓ 6 callers
Function
mustToJson
(obj any)
utils.go:52
↓ 6 callers
Function
newAudioVoices
(core *core)
audio_voices.go:149
↓ 6 callers
Function
newDatasets
(core *core)
datasets.go:240
↓ 6 callers
Function
newDatasetsDocuments
(core *core)
datasets_documents.go:435
↓ 6 callers
Function
newStdLogger
newStdLogger ...
logger.go:54
↓ 6 callers
Function
ptrNotZero
(s T)
utils.go:20
↓ 6 callers
Method
trigger
TriggerEvent 触发事件
websocket_wait.go:205
↓ 5 callers
Method
Infof
(ctx context.Context, message string, args ...interface{})
logger.go:98
↓ 5 callers
Function
NewUploadFile
(reader io.Reader, fileName string)
files.go:65
↓ 5 callers
Function
NewWebOAuthClient
NewWebOAuthClient creates a new Web OAuth core
auth.go:739
↓ 5 callers
Method
Warnf
(ctx context.Context, message string, args ...interface{})
logger.go:102
↓ 5 callers
Method
getAccessToken
(ctx context.Context, params getAccessTokenParams)
auth.go:333
↓ 5 callers
Function
newChatMessages
(core *core)
chats_messages.go:44
↓ 5 callers
Function
newConversationsMessagesFeedback
(core *core)
conversations_messages_feedback.go:93
↓ 5 callers
Function
newFiles
(core *core)
files.go:103
↓ 5 callers
Function
newFolders
(core *core)
folders.go:107
↓ 5 callers
Function
newStream
(ctx context.Context, core *core, resp *http.Response, processor eventProcessor[T])
stream_reader.go:37
↓ 5 callers
Function
newWebSocketAudioSpeechClient
(ctx context.Context, core *core, req *CreateWebsocketAudioSpeechReq)
websocket_audio_speech_client.go:15
↓ 5 callers
Function
newWebSocketAudioTranscriptionClient
(ctx context.Context, core *core, req *CreateWebsocketAudioTranscriptionReq)
websocket_audio_transcription_client.go:16
↓ 4 callers
Method
CreateAndPoll
(ctx context.Context, req *CreateChatsReq, timeout *int)
chats.go:27
↓ 4 callers
Method
GetAccessToken
GetAccessToken gets the access token
auth.go:754
↓ 4 callers
Method
Log
Log ...
logger.go:88
↓ 4 callers
Function
NewPKCEOAuthClient
NewPKCEOAuthClient creates a new PKCE OAuth core
auth.go:373
↓ 4 callers
Function
connMockWebSocket
(mockData string)
websocket_client_test.go:62
↓ 4 callers
Function
generateRandomString
(length int)
utils.go:28
↓ 4 callers
Method
handleClientError
handleClientError handles errors
websocket_client.go:345
↓ 4 callers
Function
mockHTTPResponse
()
stream_reader_test.go:16
↓ 4 callers
Function
newAudioLive
(core *core)
audio_live.go:65
↓ 4 callers
Function
newAudioRooms
(core *core)
audio_rooms.go:125
↓ 4 callers
Function
newAudioSpeech
(core *core)
audio_speech.go:67
↓ 4 callers
Function
newHTTPResponse
(resp *http.Response)
base_model.go:82
↓ 4 callers
Function
newMockDataSource
newMockDataSource 创建模拟数据源
pagination_test.go:24
next →
1–100 of 756, ranked by callers