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
↓ 4 callers
Function
newOAuthClient
newOAuthClient creates a new OAuth core
auth.go:235
↓ 4 callers
Function
newVariables
(core *core)
variables.go:85
↓ 4 callers
Function
newWebsocketChatClient
(ctx context.Context, core *core, req *CreateWebsocketChatReq)
websocket_chat_client.go:16
↓ 4 callers
Function
newWorkspace
(core *core)
workspaces.go:109
↓ 4 callers
Function
reflectToString
(v reflect.Value)
request.go:625
↓ 3 callers
Function
AsAuthError
AsAuthError 判断错误是否为 CozeAuthError 类型
error.go:108
↓ 3 callers
Method
Cancel
(ctx context.Context, req *CancelChatsReq)
chats.go:92
↓ 3 callers
Method
Clone
(ctx context.Context, req *CloneAudioVoicesReq)
audio_voices.go:9
↓ 3 callers
Function
DocumentUpdateRuleBuildAutoUpdate
DocumentUpdateRuleBuildAutoUpdate creates a rule for automatic updates with specified interval
datasets_documents.go:400
↓ 3 callers
Method
GetAccessToken
GetAccessToken gets the access token, using options pattern
auth.go:646
↓ 3 callers
Method
GetDetail
()
websocket_event.go:14
↓ 3 callers
Method
GetOAuthURL
GetOAuthURL generates OAuth URL
auth.go:391
↓ 3 callers
Method
GetOAuthURL
GetOAuthURL Get OAuth URL
auth.go:772
↓ 3 callers
Method
InputAudioBufferAppend
(data *WebSocketInputAudioBufferAppendEventData)
websocket_chat_client.go:51
↓ 3 callers
Method
InputAudioBufferComplete
(data *WebSocketInputAudioBufferCompleteEventData)
websocket_chat_client.go:55
↓ 3 callers
Method
InputTextBufferAppend
InputTextBufferAppend appends text to the input text buffer
websocket_audio_speech_client.go:51
↓ 3 callers
Method
InputTextBufferComplete
InputTextBufferComplete completes the input text buffer
websocket_audio_speech_client.go:56
↓ 3 callers
Method
IsDone
()
chats.go:415
↓ 3 callers
Function
NewDeviceOAuthClient
NewDeviceOAuthClient creates a new device OAuth core
auth.go:487
↓ 3 callers
Method
Publish
Publish 发布智能体 docs: https://www.coze.cn/open/docs/developer_guides/publish_bot
bots.go:39
↓ 3 callers
Method
WaitForEvent
WaitForEvent waits for specific events
websocket_client.go:243
↓ 3 callers
Method
WriteToFile
(path string)
audio_speech.go:51
↓ 3 callers
Function
mergeWebSocketClientOption
(opt *WebSocketClientOption, other *WebSocketClientOption)
websocket_client.go:61
↓ 3 callers
Function
mockFolder
(id string)
folders_test.go:12
↓ 3 callers
Function
newApps
(core *core)
apps.go:78
↓ 3 callers
Function
newAudioTranscriptions
(core *core)
audio_transcription.go:44
↓ 3 callers
Function
newDatasetsImages
(core *core)
datasets_images.go:12
↓ 3 callers
Function
newUsers
(core *core)
users.go:40
↓ 3 callers
Function
newWebSocketClient
newWebSocketClient creates a new WebSocket client
websocket_client.go:77
↓ 3 callers
Function
newWorkflowRunsHistories
(core *core)
workflows_runs_histories.go:168
↓ 3 callers
Function
newWorkflows
(core *core)
workflows.go:99
↓ 3 callers
Function
newWorkflowsChat
(core *core)
workflows_chat.go:34
↓ 3 callers
Function
newWorkflowsRunsHistoriesExecuteNodes
(core *core)
workflows_runs_histories_execute_nodes.go:50
↓ 3 callers
Function
parsePrivateKey
工具函数
auth.go:785
↓ 3 callers
Function
setBaseRespInterface
(resp any, httpResponse *http.Response)
request.go:612
↓ 3 callers
Method
toQuery
()
websocket_chat.go:23
↓ 2 callers
Function
AsCozeError
AsCozeError checks if the error is of type Error
error.go:31
↓ 2 callers
Function
BuildBotChat
(botIDList []string, permissionList []string)
auth.go:123
↓ 2 callers
Method
Clear
Clear 清除上下文 docs: https://www.coze.cn/open/docs/developer_guides/clear_conversation_context
conversations.go:70
↓ 2 callers
Method
ConversationMessageCreate
(data *WebSocketConversationMessageCreateEventData)
websocket_chat_client.go:63
↓ 2 callers
Method
Do
(*http.Request)
request.go:23
↓ 2 callers
Function
DocumentBaseBuildLocalFile
DocumentBaseBuildLocalFile creates basic document information for local file type
datasets_documents.go:352
↓ 2 callers
Function
DocumentBaseBuildWebPage
DocumentBaseBuildWebPage creates basic document information for webpage type
datasets_documents.go:339
↓ 2 callers
Function
DocumentUpdateRuleBuildNoAuto
DocumentUpdateRuleBuildNoAuto creates a rule for no automatic updates
datasets_documents.go:393
↓ 2 callers
Method
Duplicate
Duplicate creates a copy of an existing template
templates.go:9
↓ 2 callers
Method
GetAccessToken
(ctx context.Context, req *GetPKCEAccessTokenReq)
auth.go:439
↓ 2 callers
Method
GetAccessToken
(ctx context.Context, dReq *GetDeviceOAuthAccessTokenReq)
auth.go:539
↓ 2 callers
Method
GetCode
()
base_model.go:63
↓ 2 callers
Method
GetDetail
()
websocket_event_type.go:300
↓ 2 callers
Method
GetDeviceCode
GetDeviceCode gets the device code
auth.go:502
↓ 2 callers
Method
GetEventType
()
websocket_event_type.go:292
↓ 2 callers
Method
GetID
()
websocket_event.go:13
↓ 2 callers
Method
GetID
()
websocket_event_type.go:296
↓ 2 callers
Method
InputTextGenerateAudio
(data *WebSocketInputTextGenerateAudioEventData)
websocket_chat_client.go:79
↓ 2 callers
Method
Me
Me retrieves the current user's information
users.go:9
↓ 2 callers
Function
NewAuthError
(error *authErrorFormat, statusCode int, logID string)
error.go:82
↓ 2 callers
Function
NewFileMessageObjectByURL
(fileURL string)
common.go:189
↓ 2 callers
Function
ParseWorkflowEventError
ParseWorkflowEventError parses JSON string to WorkflowEventError
workflows_runs.go:106
↓ 2 callers
Function
ParseWorkflowEventInterrupt
ParseWorkflowEventInterrupt parses JSON string to WorkflowEventInterrupt
workflows_runs.go:115
↓ 2 callers
Method
Process
(ctx context.Context, req *ProcessDocumentsReq)
datasets.go:69
↓ 2 callers
Method
RefreshToken
RefreshToken refreshes the access token
auth.go:780
↓ 2 callers
Method
Resume
Resume 恢复运行工作流 docs: https://www.coze.cn/open/docs/developer_guides/workflow_resume
workflows_runs.go:29
↓ 2 callers
Method
SetHTTPResponse
(httpResponse *httpResponse)
base_model.go:59
↓ 2 callers
Method
SetObjectContext
(objs []*MessageObjectString)
conversations_messages.go:124
↓ 2 callers
Method
StreamSubmitToolOutputs
(ctx context.Context, req *SubmitToolOutputsChatReq)
chats.go:127
↓ 2 callers
Method
String
String ...
logger.go:32
↓ 2 callers
Method
Unwrap
Unwrap returns the parent error
error.go:103
↓ 2 callers
Function
WithBaseURL
WithBaseURL adds the base URL for the API
client.go:41
↓ 2 callers
Function
WithHttpClient
WithHttpClient sets a custom HTTP core
client.go:48
↓ 2 callers
Function
WithLogLevel
WithLogLevel sets the logging level
client.go:55
↓ 2 callers
Function
WithLogger
(logger Logger)
client.go:61
↓ 2 callers
Function
createMockResponse
Helper function to create mock response with events
stream_reader_test.go:166
↓ 2 callers
Method
doGetAccessToken
(ctx context.Context, req *getAccessTokenReq)
auth.go:578
↓ 2 callers
Method
dumpWithoutBinary
()
websocket_event.go:191
↓ 2 callers
Method
fetchNextPage
()
pagination.go:97
↓ 2 callers
Method
fetchNextPage
()
pagination.go:153
↓ 2 callers
Method
getHandler
(eventType WebSocketEventType)
websocket_client.go:360
↓ 2 callers
Method
getOAuthURL
getOAuthURL generates OAuth URL
auth.go:281
↓ 2 callers
Method
getWorkspaceOAuthURL
getWorkspaceOAuthURL generates OAuth URL with workspace
auth.go:303
↓ 2 callers
Function
hexChar
(b byte)
utils.go:45
↓ 2 callers
Function
isInReflectKind
(v reflect.Kind, list []reflect.Kind)
request.go:666
↓ 2 callers
Function
mockApp
(id string)
apps_test.go:12
↓ 2 callers
Function
mockWorkflow
(id string)
workflows_test.go:12
↓ 2 callers
Function
newEnterprises
(core *core)
enterprises.go:8
↓ 2 callers
Function
newTemplates
(core *core)
templates.go:56
↓ 2 callers
Function
parseWebSocketEvent
(message []byte)
websocket_event_type.go:267
↓ 2 callers
Method
readCh
(ch chan string)
websocket_client_test.go:104
↓ 2 callers
Method
refreshAccessToken
refreshAccessToken is a convenience method that internally calls getAccessToken
auth.go:351
↓ 2 callers
Function
safeCloseChan
(ch chan T)
websocket_wait.go:242
↓ 2 callers
Method
shutdown
()
websocket_wait.go:230
↓ 2 callers
Method
toReq
()
bots.go:296
↓ 2 callers
Function
withCodeChallenge
withCodeChallenge adds code_challenge parameter
auth.go:468
↓ 2 callers
Function
withCodeChallengeMethod
withCodeChallengeMethod adds code_challenge_method parameter
auth.go:475
↓ 1 callers
Function
BuildAssistantAnswer
BuildAssistantAnswer builds an answer message from assistant
common.go:62
↓ 1 callers
Function
BuildUserQuestionObjects
BuildUserQuestionObjects builds an object message for user question
common.go:51
↓ 1 callers
Function
BuildUserQuestionText
BuildUserQuestionText builds a text message for user question
common.go:40
↓ 1 callers
Method
Close
()
websocket_client.go:49
↓ 1 callers
Method
Create
(ctx context.Context, req *CreateChatsReq)
chats.go:13
↓ 1 callers
Method
Create
(ctx context.Context, req *CreateAudioSpeechReq)
audio_speech.go:10
↓ 1 callers
Function
DocumentSourceInfoBuildImage
DocumentSourceInfoBuildImage creates document source information for image type
datasets_documents.go:376
← previous
next →
101–200 of 756, ranked by callers