Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/WeKnora
/ functions
Functions
12,364 in github.com/Tencent/WeKnora
⨍
Functions
12,364
◇
Types & classes
2,473
↳
Endpoints
4
↓ 1,247 callers
Method
Error
()
internal/handler/knowledgebase_pr3_response_test.go:121
↓ 1,126 callers
Function
Infof
Infof 使用格式化字符串输出信息级别的日志
internal/logger/logger.go:430
↓ 763 callers
Function
Warnf
Warnf 使用格式化字符串输出警告级别的日志
internal/logger/logger.go:440
↓ 614 callers
Function
Errorf
Errorf 使用格式化字符串输出错误级别的日志
internal/logger/logger.go:466
↓ 519 callers
Method
Now
()
internal/application/service/audit_log_test.go:62
↓ 476 callers
Function
SetForTest
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 callers
Method
String
String returns the string representation of the context key
internal/types/const.go:39
↓ 419 callers
Function
GetLogger
GetLogger 获取日志实例
internal/logger/logger.go:268
↓ 397 callers
Method
String
()
cli/internal/compat/compat.go:18
↓ 369 callers
Method
Set
(profile, key, value string)
cli/internal/secrets/secrets.go:31
↓ 316 callers
Method
Error
()
internal/application/repository/retriever/doris/query.go:221
↓ 288 callers
Function
ErrorWithFields
ErrorWithFields 输出带有额外字段的错误级别日志
internal/logger/logger.go:471
↓ 285 callers
Function
NewBadRequestError
NewBadRequestError creates a bad request error
internal/errors/errors.go:69
↓ 271 callers
Method
String
()
internal/application/service/metric/bleu.go:87
↓ 250 callers
Function
Error
Error 输出错误级别的日志
internal/logger/logger.go:461
↓ 244 callers
Method
Error
()
cli/cmd/agent/create_test.go:237
↓ 229 callers
Method
Len
()
internal/application/service/metric/rouge_score.go:53
↓ 200 callers
Method
get
(taskID string)
internal/application/service/evaluation.go:80
↓ 195 callers
Function
Info
Info 输出信息级别的日志
internal/logger/logger.go:425
↓ 192 callers
Method
Add
(ctx context.Context, tenantID uint64, agentID string, sourceTenantID uint64)
internal/types/interfaces/organization.go:218
↓ 174 callers
Function
must
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 callers
Method
Close
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 callers
Method
Get
Get gets a session visible to the tenant/user scope.
internal/types/interfaces/session.go:63
↓ 158 callers
Method
doRequest
doRequest executes an HTTP request
client/client.go:113
↓ 152 callers
Function
parseResponse
parseResponse parses an HTTP response
client/client.go:190
↓ 148 callers
Function
NewInternalServerError
NewInternalServerError creates an internal server error
internal/errors/errors.go:127
↓ 146 callers
Method
GET
(string, ...gin.HandlerFunc)
internal/router/router.go:1376
↓ 144 callers
Function
NewError
NewError constructs a typed error.
cli/internal/cmdutil/errors.go:249
↓ 137 callers
Method
Create
Create creates a model
internal/types/interfaces/model.go:52
↓ 137 callers
Method
Value
Value implements the driver.Valuer interface.
internal/types/json.go:42
↓ 134 callers
Function
Debugf
Debugf 使用格式化字符串输出调试级别的日志
internal/logger/logger.go:420
↓ 120 callers
Method
WithDetails
WithDetails adds error details
internal/errors/errors.go:63
↓ 112 callers
Function
get
(url: string, config?: any)
frontend/src/utils/request.ts:249
↓ 111 callers
Method
Delete
Delete deletes a model
internal/types/interfaces/model.go:65
↓ 110 callers
Method
Viewer
Role-only guards — pure RequireRole convenience wrappers, named after the matrix entries so route lines stay readable.
internal/router/rbac.go:185
↓ 106 callers
Function
check
(desc string, pass bool)
internal/infrastructure/docparser/json_converter_test.go:110
↓ 101 callers
Method
Done
Done reports whether a terminal event was observed.
cli/internal/sse/accumulator.go:84
↓ 99 callers
Function
post
(url: string, data = {}, config?: any)
frontend/src/utils/request.ts:286
↓ 98 callers
Function
pipelineInfo
pipelineInfo logs pipeline info level entries.
internal/application/service/chat_pipeline/common.go:21
↓ 97 callers
Method
Index
Index indexes the index info
internal/types/interfaces/retriever.go:89
↓ 95 callers
Method
Emit
Emit publishes an event to all registered handlers
internal/types/event_bus.go:29
↓ 89 callers
Method
Write
Write 重写Write方法,同时写入buffer和原始writer 限制buffer大小,避免SSE等流式响应导致内存无限增长
internal/middleware/logger.go:30
↓ 82 callers
Method
Admin
()
internal/router/rbac.go:193
↓ 81 callers
Method
Close
()
internal/datasource/connector/yuque/client_test.go:37
↓ 75 callers
Function
WrapHTTP
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 callers
Method
GetByID
GetByID gets a model by ID
internal/types/interfaces/model.go:54
↓ 73 callers
Method
GetKnowledgeBaseByID
(ctx context.Context, id string)
internal/middleware/kb_access.go:88
↓ 71 callers
Method
Update
Update updates a model
internal/types/interfaces/model.go:63
↓ 70 callers
Method
Execute
Execute runs the tool with the given arguments
internal/types/agent.go:158
↓ 68 callers
Method
Error
Error implements the error interface
internal/errors/errors.go:58
↓ 68 callers
Method
WantsJSON
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 callers
Function
MustTenantIDFromContext
MustTenantIDFromContext extracts the tenant ID from ctx, panicking if missing.
internal/types/context_helpers.go:31
↓ 67 callers
Method
Parse
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 callers
Function
Wrapf
Wrapf wraps cause with a typed code and Sprintf-style message.
cli/internal/cmdutil/errors.go:254
↓ 64 callers
Method
Name
Name returns the unique identifier for this tool
internal/types/agent.go:149
↓ 63 callers
Method
IsStdoutTTY
IsStdoutTTY reports whether stdout is a terminal.
cli/internal/iostreams/iostreams.go:41
↓ 62 callers
Method
Scan
Scan implements the sql.Scanner interface.
internal/types/json.go:14
↓ 61 callers
Method
Format
(entry *logrus.Entry)
internal/logger/logger.go:80
↓ 60 callers
Function
NewValidationError
NewValidationError creates a validation error
internal/errors/errors.go:152
↓ 60 callers
Function
SetAgentHelp
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 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
internal/application/repository/retriever/opensearch/repository_test.go:999
↓ 59 callers
Method
UpdateKnowledge
UpdateKnowledge updates knowledge information.
internal/types/interfaces/knowledge.go:91
↓ 59 callers
Function
t
(key: string)
frontend/src/utils/request.ts:7
↓ 58 callers
Function
CheckFormatFlag
CheckFormatFlag resolves --format + --jq from cmd. Returns: - (*FormatOptions{Mode:""}, nil) flag not set; caller should call ResolveDefault -
cli/internal/cmdutil/format.go:67
↓ 58 callers
Function
max
(a, b int)
internal/application/service/metric/common.go:32
↓ 55 callers
Method
ResolveDefault
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 callers
Function
AddFormatFlag
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 callers
Method
filter
(self, record: LogRecord)
docreader/utils/request.py:87
↓ 51 callers
Function
NewNotFoundError
NewNotFoundError creates a not found error
internal/errors/errors.go:96
↓ 50 callers
Method
Limit
Limit gets the limit for database query
internal/types/search.go:212
↓ 49 callers
Function
NewMemStore
NewMemStore returns an empty in-memory secrets store.
cli/internal/secrets/secrets.go:112
↓ 48 callers
Method
Error
()
cli/internal/cmdutil/errors.go:132
↓ 48 callers
Method
Info
Info 返回服务商的元数据
internal/models/provider/provider.go:146
↓ 47 callers
Method
Error
()
internal/types/errors.go:28
↓ 47 callers
Method
GetTenantByID
GetTenantByID gets a tenant by ID
internal/types/interfaces/tenant.go:14
↓ 47 callers
Method
String
String returns a stable label for Langfuse output payloads.
internal/agent/engine.go:657
↓ 47 callers
Function
open
()
frontend/public/weknora-widget.js:344
↓ 47 callers
Method
write
(str string)
internal/im/stream_section.go:11
↓ 46 callers
Function
xmlEscape
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 callers
Method
IsZero
IsZero returns true if the strategy has no pipelines enabled (zero value).
internal/types/indexing_strategy.go:50
↓ 44 callers
Function
pipelineWarn
pipelineWarn logs pipeline warning level entries.
internal/application/service/chat_pipeline/common.go:26
↓ 43 callers
Method
Close
()
docreader/client/client.go:78
↓ 43 callers
Method
Error
(ctx context.Context, args ...interface{})
internal/im/feishu/longconn.go:79
↓ 43 callers
Method
handleJSON
(path string, status int, body interface{})
internal/datasource/connector/yuque/client_test.go:43
↓ 41 callers
Function
put
(url: string, data = {})
frontend/src/utils/request.ts:290
↓ 40 callers
Method
Warn
(ctx context.Context, args ...interface{})
internal/im/feishu/longconn.go:75
↓ 39 callers
Method
Cleanup
(ctx context.Context)
internal/types/agent.go:165
↓ 39 callers
Function
TenantIDFromContext
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 callers
Function
UserIDFromContext
UserIDFromContext extracts the user ID string from ctx.
internal/types/context_helpers.go:52
↓ 39 callers
Function
min
min returns the smaller of two integers
client/example.go:256
↓ 38 callers
Function
SplitText
SplitText splits text into chunks with overlap, respecting protected patterns.
internal/infrastructure/chunker/splitter.go:271
↓ 36 callers
Method
Close
()
internal/infrastructure/docparser/http_parser.go:102
↓ 36 callers
Method
Close
()
internal/models/chat/stream_raw_dump.go:204
↓ 36 callers
Function
toolErrorResult
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 callers
Method
GetKnowledgeByID
GetKnowledgeByID retrieves knowledge by ID (uses tenant from context).
internal/types/interfaces/knowledge.go:57
↓ 34 callers
Function
del
(url: string, data?: any)
frontend/src/utils/request.ts:294
↓ 33 callers
Method
Register
Register creates a new user account
internal/types/interfaces/user.go:12
↓ 32 callers
Function
CreateRetrieveEngineForKB
CreateRetrieveEngineForKB returns a CompositeRetrieveEngine resolved from a KB's VectorStore binding. Resolution rules: - vectorStoreID == nil || *v
internal/application/service/retriever/factory.go:112
↓ 32 callers
Method
Enqueue
(task *asynq.Task, opts ...asynq.Option)
internal/types/interfaces/task_enqueuer.go:8
↓ 32 callers
Function
ExitCode
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