MCPcopy Create free account

hub / github.com/Tencent/WeKnora / functions

Functions12,364 in github.com/Tencent/WeKnora

↓ 1,247 callersMethodError
()
internal/handler/knowledgebase_pr3_response_test.go:121
↓ 1,126 callersFunctionInfof
Infof 使用格式化字符串输出信息级别的日志
internal/logger/logger.go:430
↓ 763 callersFunctionWarnf
Warnf 使用格式化字符串输出警告级别的日志
internal/logger/logger.go:440
↓ 614 callersFunctionErrorf
Errorf 使用格式化字符串输出错误级别的日志
internal/logger/logger.go:466
↓ 519 callersMethodNow
()
internal/application/service/audit_log_test.go:62
↓ 476 callersFunctionSetForTest
SetForTest replaces the package singleton with in-memory buffers for the duration of t. Call it once per test. Not safe under t.Parallel().
cli/internal/iostreams/iostreams.go:60
↓ 427 callersMethodString
String returns the string representation of the context key
internal/types/const.go:39
↓ 419 callersFunctionGetLogger
GetLogger 获取日志实例
internal/logger/logger.go:268
↓ 397 callersMethodString
()
cli/internal/compat/compat.go:18
↓ 369 callersMethodSet
(profile, key, value string)
cli/internal/secrets/secrets.go:31
↓ 316 callersMethodError
()
internal/application/repository/retriever/doris/query.go:221
↓ 288 callersFunctionErrorWithFields
ErrorWithFields 输出带有额外字段的错误级别日志
internal/logger/logger.go:471
↓ 285 callersFunctionNewBadRequestError
NewBadRequestError creates a bad request error
internal/errors/errors.go:69
↓ 271 callersMethodString
()
internal/application/service/metric/bleu.go:87
↓ 250 callersFunctionError
Error 输出错误级别的日志
internal/logger/logger.go:461
↓ 244 callersMethodError
()
cli/cmd/agent/create_test.go:237
↓ 229 callersMethodLen
()
internal/application/service/metric/rouge_score.go:53
↓ 200 callersMethodget
(taskID string)
internal/application/service/evaluation.go:80
↓ 195 callersFunctionInfo
Info 输出信息级别的日志
internal/logger/logger.go:425
↓ 192 callersMethodAdd
(ctx context.Context, tenantID uint64, agentID string, sourceTenantID uint64)
internal/types/interfaces/organization.go:218
↓ 174 callersFunctionmust
must is a helper function for error handling Panics if the error is not nil, useful for configuration steps that must succeed Parameters: - err: Error
internal/container/container.go:414
↓ 169 callersMethodClose
Close tears down the stream connection. AutoReconnect is disabled first so that closing the connection does not trigger the SDK's internal reconnect.
internal/im/dingtalk/longconn.go:56
↓ 159 callersMethodGet
Get gets a session visible to the tenant/user scope.
internal/types/interfaces/session.go:63
↓ 158 callersMethoddoRequest
doRequest executes an HTTP request
client/client.go:113
↓ 152 callersFunctionparseResponse
parseResponse parses an HTTP response
client/client.go:190
↓ 148 callersFunctionNewInternalServerError
NewInternalServerError creates an internal server error
internal/errors/errors.go:127
↓ 146 callersMethodGET
(string, ...gin.HandlerFunc)
internal/router/router.go:1376
↓ 144 callersFunctionNewError
NewError constructs a typed error.
cli/internal/cmdutil/errors.go:249
↓ 137 callersMethodCreate
Create creates a model
internal/types/interfaces/model.go:52
↓ 137 callersMethodValue
Value implements the driver.Valuer interface.
internal/types/json.go:42
↓ 134 callersFunctionDebugf
Debugf 使用格式化字符串输出调试级别的日志
internal/logger/logger.go:420
↓ 120 callersMethodWithDetails
WithDetails adds error details
internal/errors/errors.go:63
↓ 112 callersFunctionget
(url: string, config?: any)
frontend/src/utils/request.ts:249
↓ 111 callersMethodDelete
Delete deletes a model
internal/types/interfaces/model.go:65
↓ 110 callersMethodViewer
Role-only guards — pure RequireRole convenience wrappers, named after the matrix entries so route lines stay readable.
internal/router/rbac.go:185
↓ 106 callersFunctioncheck
(desc string, pass bool)
internal/infrastructure/docparser/json_converter_test.go:110
↓ 101 callersMethodDone
Done reports whether a terminal event was observed.
cli/internal/sse/accumulator.go:84
↓ 99 callersFunctionpost
(url: string, data = {}, config?: any)
frontend/src/utils/request.ts:286
↓ 98 callersFunctionpipelineInfo
pipelineInfo logs pipeline info level entries.
internal/application/service/chat_pipeline/common.go:21
↓ 97 callersMethodIndex
Index indexes the index info
internal/types/interfaces/retriever.go:89
↓ 95 callersMethodEmit
Emit publishes an event to all registered handlers
internal/types/event_bus.go:29
↓ 89 callersMethodWrite
Write 重写Write方法,同时写入buffer和原始writer 限制buffer大小,避免SSE等流式响应导致内存无限增长
internal/middleware/logger.go:30
↓ 82 callersMethodAdmin
()
internal/router/rbac.go:193
↓ 81 callersMethodClose
()
internal/datasource/connector/yuque/client_test.go:37
↓ 75 callersFunctionWrapHTTP
WrapHTTP wraps a transport / response error with the typed code derived from its HTTP shape (404 → resource.not_found, 401 → auth.unauthenticated, non
cli/internal/cmdutil/errors.go:267
↓ 74 callersMethodGetByID
GetByID gets a model by ID
internal/types/interfaces/model.go:54
↓ 73 callersMethodGetKnowledgeBaseByID
(ctx context.Context, id string)
internal/middleware/kb_access.go:88
↓ 71 callersMethodUpdate
Update updates a model
internal/types/interfaces/model.go:63
↓ 70 callersMethodExecute
Execute runs the tool with the given arguments
internal/types/agent.go:158
↓ 68 callersMethodError
Error implements the error interface
internal/errors/errors.go:58
↓ 68 callersMethodWantsJSON
WantsJSON reports whether the resolved mode is JSON or NDJSON. Used by callers to choose between the JSON emit path and text rendering.
cli/internal/cmdutil/format.go:94
↓ 67 callersFunctionMustTenantIDFromContext
MustTenantIDFromContext extracts the tenant ID from ctx, panicking if missing.
internal/types/context_helpers.go:31
↓ 67 callersMethodParse
Parse checks whether content is a slash-command and, if so, returns the matching Command and the remaining tokens as args. It returns (nil, nil, fals
internal/im/command_registry.go:36
↓ 66 callersFunctionWrapf
Wrapf wraps cause with a typed code and Sprintf-style message.
cli/internal/cmdutil/errors.go:254
↓ 64 callersMethodName
Name returns the unique identifier for this tool
internal/types/agent.go:149
↓ 63 callersMethodIsStdoutTTY
IsStdoutTTY reports whether stdout is a terminal.
cli/internal/iostreams/iostreams.go:41
↓ 62 callersMethodScan
Scan implements the sql.Scanner interface.
internal/types/json.go:14
↓ 61 callersMethodFormat
(entry *logrus.Entry)
internal/logger/logger.go:80
↓ 60 callersFunctionNewValidationError
NewValidationError creates a validation error
internal/errors/errors.go:152
↓ 60 callersFunctionSetAgentHelp
SetAgentHelp attaches agent-targeted help metadata to a command. Routing: - WEKNORA_AGENT_HELP=1: emit the AgentHelp JSON blob to stdout and return —
cli/internal/cmdutil/agenthelp.go:42
↓ 59 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
internal/application/repository/retriever/opensearch/repository_test.go:999
↓ 59 callersMethodUpdateKnowledge
UpdateKnowledge updates knowledge information.
internal/types/interfaces/knowledge.go:91
↓ 59 callersFunctiont
(key: string)
frontend/src/utils/request.ts:7
↓ 58 callersFunctionCheckFormatFlag
CheckFormatFlag resolves --format + --jq from cmd. Returns: - (*FormatOptions{Mode:""}, nil) flag not set; caller should call ResolveDefault -
cli/internal/cmdutil/format.go:67
↓ 58 callersFunctionmax
(a, b int)
internal/application/service/metric/common.go:32
↓ 55 callersMethodResolveDefault
ResolveDefault fills in Mode when the caller has not explicitly set it: - Mode defaults to FormatJSON - TTY only affects the indent decision (auto-ind
cli/internal/cmdutil/format.go:150
↓ 52 callersFunctionAddFormatFlag
AddFormatFlag attaches the --jq projection field hints (in cmd.Long) for commands that honor --format. The flags themselves are registered as persiste
cli/internal/cmdutil/format.go:46
↓ 52 callersMethodfilter
(self, record: LogRecord)
docreader/utils/request.py:87
↓ 51 callersFunctionNewNotFoundError
NewNotFoundError creates a not found error
internal/errors/errors.go:96
↓ 50 callersMethodLimit
Limit gets the limit for database query
internal/types/search.go:212
↓ 49 callersFunctionNewMemStore
NewMemStore returns an empty in-memory secrets store.
cli/internal/secrets/secrets.go:112
↓ 48 callersMethodError
()
cli/internal/cmdutil/errors.go:132
↓ 48 callersMethodInfo
Info 返回服务商的元数据
internal/models/provider/provider.go:146
↓ 47 callersMethodError
()
internal/types/errors.go:28
↓ 47 callersMethodGetTenantByID
GetTenantByID gets a tenant by ID
internal/types/interfaces/tenant.go:14
↓ 47 callersMethodString
String returns a stable label for Langfuse output payloads.
internal/agent/engine.go:657
↓ 47 callersFunctionopen
()
frontend/public/weknora-widget.js:344
↓ 47 callersMethodwrite
(str string)
internal/im/stream_section.go:11
↓ 46 callersFunctionxmlEscape
xmlEscape replaces characters that would break simple XML attribute / element values. It is intentionally minimal because the rendered output is consu
internal/agent/tools/grep_chunks.go:716
↓ 45 callersMethodIsZero
IsZero returns true if the strategy has no pipelines enabled (zero value).
internal/types/indexing_strategy.go:50
↓ 44 callersFunctionpipelineWarn
pipelineWarn logs pipeline warning level entries.
internal/application/service/chat_pipeline/common.go:26
↓ 43 callersMethodClose
()
docreader/client/client.go:78
↓ 43 callersMethodError
(ctx context.Context, args ...interface{})
internal/im/feishu/longconn.go:79
↓ 43 callersMethodhandleJSON
(path string, status int, body interface{})
internal/datasource/connector/yuque/client_test.go:43
↓ 41 callersFunctionput
(url: string, data = {})
frontend/src/utils/request.ts:290
↓ 40 callersMethodWarn
(ctx context.Context, args ...interface{})
internal/im/feishu/longconn.go:75
↓ 39 callersMethodCleanup
(ctx context.Context)
internal/types/agent.go:165
↓ 39 callersFunctionTenantIDFromContext
TenantIDFromContext extracts the tenant ID from ctx. Returns (0, false) when the key is absent or the value is not uint64.
internal/types/context_helpers.go:25
↓ 39 callersFunctionUserIDFromContext
UserIDFromContext extracts the user ID string from ctx.
internal/types/context_helpers.go:52
↓ 39 callersFunctionmin
min returns the smaller of two integers
client/example.go:256
↓ 38 callersFunctionSplitText
SplitText splits text into chunks with overlap, respecting protected patterns.
internal/infrastructure/chunker/splitter.go:271
↓ 36 callersMethodClose
()
internal/infrastructure/docparser/http_parser.go:102
↓ 36 callersMethodClose
()
internal/models/chat/stream_raw_dump.go:204
↓ 36 callersFunctiontoolErrorResult
toolErrorResult builds an error CallToolResult with IsError=true, a human-readable text fallback (Content), and the error envelope payload (Structured
cli/internal/mcp/tools.go:28
↓ 34 callersMethodGetKnowledgeByID
GetKnowledgeByID retrieves knowledge by ID (uses tenant from context).
internal/types/interfaces/knowledge.go:57
↓ 34 callersFunctiondel
(url: string, data?: any)
frontend/src/utils/request.ts:294
↓ 33 callersMethodRegister
Register creates a new user account
internal/types/interfaces/user.go:12
↓ 32 callersFunctionCreateRetrieveEngineForKB
CreateRetrieveEngineForKB returns a CompositeRetrieveEngine resolved from a KB's VectorStore binding. Resolution rules: - vectorStoreID == nil || *v
internal/application/service/retriever/factory.go:112
↓ 32 callersMethodEnqueue
(task *asynq.Task, opts ...asynq.Option)
internal/types/interfaces/task_enqueuer.go:8
↓ 32 callersFunctionExitCode
ExitCode maps an error to the documented CLI exit code. - 0 success - 1 generic / unknown typed error - fallback bucket: resource.already_exists, re
cli/internal/cmdutil/exit.go:53
next →1–100 of 12,364, ranked by callers