MCPcopy Create free account

hub / github.com/coze-dev/coze-go / functions

Functions756 in github.com/coze-dev/coze-go

↓ 4 callersFunctionnewOAuthClient
newOAuthClient creates a new OAuth core
auth.go:235
↓ 4 callersFunctionnewVariables
(core *core)
variables.go:85
↓ 4 callersFunctionnewWebsocketChatClient
(ctx context.Context, core *core, req *CreateWebsocketChatReq)
websocket_chat_client.go:16
↓ 4 callersFunctionnewWorkspace
(core *core)
workspaces.go:109
↓ 4 callersFunctionreflectToString
(v reflect.Value)
request.go:625
↓ 3 callersFunctionAsAuthError
AsAuthError 判断错误是否为 CozeAuthError 类型
error.go:108
↓ 3 callersMethodCancel
(ctx context.Context, req *CancelChatsReq)
chats.go:92
↓ 3 callersMethodClone
(ctx context.Context, req *CloneAudioVoicesReq)
audio_voices.go:9
↓ 3 callersFunctionDocumentUpdateRuleBuildAutoUpdate
DocumentUpdateRuleBuildAutoUpdate creates a rule for automatic updates with specified interval
datasets_documents.go:400
↓ 3 callersMethodGetAccessToken
GetAccessToken gets the access token, using options pattern
auth.go:646
↓ 3 callersMethodGetDetail
()
websocket_event.go:14
↓ 3 callersMethodGetOAuthURL
GetOAuthURL generates OAuth URL
auth.go:391
↓ 3 callersMethodGetOAuthURL
GetOAuthURL Get OAuth URL
auth.go:772
↓ 3 callersMethodInputAudioBufferAppend
(data *WebSocketInputAudioBufferAppendEventData)
websocket_chat_client.go:51
↓ 3 callersMethodInputAudioBufferComplete
(data *WebSocketInputAudioBufferCompleteEventData)
websocket_chat_client.go:55
↓ 3 callersMethodInputTextBufferAppend
InputTextBufferAppend appends text to the input text buffer
websocket_audio_speech_client.go:51
↓ 3 callersMethodInputTextBufferComplete
InputTextBufferComplete completes the input text buffer
websocket_audio_speech_client.go:56
↓ 3 callersMethodIsDone
()
chats.go:415
↓ 3 callersFunctionNewDeviceOAuthClient
NewDeviceOAuthClient creates a new device OAuth core
auth.go:487
↓ 3 callersMethodPublish
Publish 发布智能体 docs: https://www.coze.cn/open/docs/developer_guides/publish_bot
bots.go:39
↓ 3 callersMethodWaitForEvent
WaitForEvent waits for specific events
websocket_client.go:243
↓ 3 callersMethodWriteToFile
(path string)
audio_speech.go:51
↓ 3 callersFunctionmergeWebSocketClientOption
(opt *WebSocketClientOption, other *WebSocketClientOption)
websocket_client.go:61
↓ 3 callersFunctionmockFolder
(id string)
folders_test.go:12
↓ 3 callersFunctionnewApps
(core *core)
apps.go:78
↓ 3 callersFunctionnewAudioTranscriptions
(core *core)
audio_transcription.go:44
↓ 3 callersFunctionnewDatasetsImages
(core *core)
datasets_images.go:12
↓ 3 callersFunctionnewUsers
(core *core)
users.go:40
↓ 3 callersFunctionnewWebSocketClient
newWebSocketClient creates a new WebSocket client
websocket_client.go:77
↓ 3 callersFunctionnewWorkflowRunsHistories
(core *core)
workflows_runs_histories.go:168
↓ 3 callersFunctionnewWorkflows
(core *core)
workflows.go:99
↓ 3 callersFunctionnewWorkflowsChat
(core *core)
workflows_chat.go:34
↓ 3 callersFunctionnewWorkflowsRunsHistoriesExecuteNodes
(core *core)
workflows_runs_histories_execute_nodes.go:50
↓ 3 callersFunctionparsePrivateKey
工具函数
auth.go:785
↓ 3 callersFunctionsetBaseRespInterface
(resp any, httpResponse *http.Response)
request.go:612
↓ 3 callersMethodtoQuery
()
websocket_chat.go:23
↓ 2 callersFunctionAsCozeError
AsCozeError checks if the error is of type Error
error.go:31
↓ 2 callersFunctionBuildBotChat
(botIDList []string, permissionList []string)
auth.go:123
↓ 2 callersMethodClear
Clear 清除上下文 docs: https://www.coze.cn/open/docs/developer_guides/clear_conversation_context
conversations.go:70
↓ 2 callersMethodConversationMessageCreate
(data *WebSocketConversationMessageCreateEventData)
websocket_chat_client.go:63
↓ 2 callersMethodDo
(*http.Request)
request.go:23
↓ 2 callersFunctionDocumentBaseBuildLocalFile
DocumentBaseBuildLocalFile creates basic document information for local file type
datasets_documents.go:352
↓ 2 callersFunctionDocumentBaseBuildWebPage
DocumentBaseBuildWebPage creates basic document information for webpage type
datasets_documents.go:339
↓ 2 callersFunctionDocumentUpdateRuleBuildNoAuto
DocumentUpdateRuleBuildNoAuto creates a rule for no automatic updates
datasets_documents.go:393
↓ 2 callersMethodDuplicate
Duplicate creates a copy of an existing template
templates.go:9
↓ 2 callersMethodGetAccessToken
(ctx context.Context, req *GetPKCEAccessTokenReq)
auth.go:439
↓ 2 callersMethodGetAccessToken
(ctx context.Context, dReq *GetDeviceOAuthAccessTokenReq)
auth.go:539
↓ 2 callersMethodGetCode
()
base_model.go:63
↓ 2 callersMethodGetDetail
()
websocket_event_type.go:300
↓ 2 callersMethodGetDeviceCode
GetDeviceCode gets the device code
auth.go:502
↓ 2 callersMethodGetEventType
()
websocket_event_type.go:292
↓ 2 callersMethodGetID
()
websocket_event.go:13
↓ 2 callersMethodGetID
()
websocket_event_type.go:296
↓ 2 callersMethodInputTextGenerateAudio
(data *WebSocketInputTextGenerateAudioEventData)
websocket_chat_client.go:79
↓ 2 callersMethodMe
Me retrieves the current user's information
users.go:9
↓ 2 callersFunctionNewAuthError
(error *authErrorFormat, statusCode int, logID string)
error.go:82
↓ 2 callersFunctionNewFileMessageObjectByURL
(fileURL string)
common.go:189
↓ 2 callersFunctionParseWorkflowEventError
ParseWorkflowEventError parses JSON string to WorkflowEventError
workflows_runs.go:106
↓ 2 callersFunctionParseWorkflowEventInterrupt
ParseWorkflowEventInterrupt parses JSON string to WorkflowEventInterrupt
workflows_runs.go:115
↓ 2 callersMethodProcess
(ctx context.Context, req *ProcessDocumentsReq)
datasets.go:69
↓ 2 callersMethodRefreshToken
RefreshToken refreshes the access token
auth.go:780
↓ 2 callersMethodResume
Resume 恢复运行工作流 docs: https://www.coze.cn/open/docs/developer_guides/workflow_resume
workflows_runs.go:29
↓ 2 callersMethodSetHTTPResponse
(httpResponse *httpResponse)
base_model.go:59
↓ 2 callersMethodSetObjectContext
(objs []*MessageObjectString)
conversations_messages.go:124
↓ 2 callersMethodStreamSubmitToolOutputs
(ctx context.Context, req *SubmitToolOutputsChatReq)
chats.go:127
↓ 2 callersMethodString
String ...
logger.go:32
↓ 2 callersMethodUnwrap
Unwrap returns the parent error
error.go:103
↓ 2 callersFunctionWithBaseURL
WithBaseURL adds the base URL for the API
client.go:41
↓ 2 callersFunctionWithHttpClient
WithHttpClient sets a custom HTTP core
client.go:48
↓ 2 callersFunctionWithLogLevel
WithLogLevel sets the logging level
client.go:55
↓ 2 callersFunctionWithLogger
(logger Logger)
client.go:61
↓ 2 callersFunctioncreateMockResponse
Helper function to create mock response with events
stream_reader_test.go:166
↓ 2 callersMethoddoGetAccessToken
(ctx context.Context, req *getAccessTokenReq)
auth.go:578
↓ 2 callersMethoddumpWithoutBinary
()
websocket_event.go:191
↓ 2 callersMethodfetchNextPage
()
pagination.go:97
↓ 2 callersMethodfetchNextPage
()
pagination.go:153
↓ 2 callersMethodgetHandler
(eventType WebSocketEventType)
websocket_client.go:360
↓ 2 callersMethodgetOAuthURL
getOAuthURL generates OAuth URL
auth.go:281
↓ 2 callersMethodgetWorkspaceOAuthURL
getWorkspaceOAuthURL generates OAuth URL with workspace
auth.go:303
↓ 2 callersFunctionhexChar
(b byte)
utils.go:45
↓ 2 callersFunctionisInReflectKind
(v reflect.Kind, list []reflect.Kind)
request.go:666
↓ 2 callersFunctionmockApp
(id string)
apps_test.go:12
↓ 2 callersFunctionmockWorkflow
(id string)
workflows_test.go:12
↓ 2 callersFunctionnewEnterprises
(core *core)
enterprises.go:8
↓ 2 callersFunctionnewTemplates
(core *core)
templates.go:56
↓ 2 callersFunctionparseWebSocketEvent
(message []byte)
websocket_event_type.go:267
↓ 2 callersMethodreadCh
(ch chan string)
websocket_client_test.go:104
↓ 2 callersMethodrefreshAccessToken
refreshAccessToken is a convenience method that internally calls getAccessToken
auth.go:351
↓ 2 callersFunctionsafeCloseChan
(ch chan T)
websocket_wait.go:242
↓ 2 callersMethodshutdown
()
websocket_wait.go:230
↓ 2 callersMethodtoReq
()
bots.go:296
↓ 2 callersFunctionwithCodeChallenge
withCodeChallenge adds code_challenge parameter
auth.go:468
↓ 2 callersFunctionwithCodeChallengeMethod
withCodeChallengeMethod adds code_challenge_method parameter
auth.go:475
↓ 1 callersFunctionBuildAssistantAnswer
BuildAssistantAnswer builds an answer message from assistant
common.go:62
↓ 1 callersFunctionBuildUserQuestionObjects
BuildUserQuestionObjects builds an object message for user question
common.go:51
↓ 1 callersFunctionBuildUserQuestionText
BuildUserQuestionText builds a text message for user question
common.go:40
↓ 1 callersMethodClose
()
websocket_client.go:49
↓ 1 callersMethodCreate
(ctx context.Context, req *CreateChatsReq)
chats.go:13
↓ 1 callersMethodCreate
(ctx context.Context, req *CreateAudioSpeechReq)
audio_speech.go:10
↓ 1 callersFunctionDocumentSourceInfoBuildImage
DocumentSourceInfoBuildImage creates document source information for image type
datasets_documents.go:376
← previousnext →101–200 of 756, ranked by callers