MCPcopy Create free account

hub / github.com/archie0732/healthy-diet-ai-agent / functions

Functions406 in github.com/archie0732/healthy-diet-ai-agent

↓ 1 callersFunctiondetectExtension
(fileName: string, mimeType?: string | null)
src/server/ragDocuments.ts:42
↓ 1 callersFunctiondetectTotalPages
(html: string)
scripts/sync-mohw-clarifications.ts:80
↓ 1 callersFunctiondeterminePolicyFromRelation
(relationLabel: string)
experiments/version_aware_rag/scripts/apply_policy.ts:17
↓ 1 callersFunctiondiscoverAllKnowledgeSources
( rootDir: string, repository: RagDocumentsRepository | null | undefined )
src/server/knowledgeGraph.ts:619
↓ 1 callersFunctionensureDir
(dir: string)
agent_skills/file_tools.ts:47
↓ 1 callersFunctionextractContent
(html: string)
src/server/mohwNews.ts:152
↓ 1 callersFunctionextractQueryKeywords
(query: string, maxKeywords: number)
agent_skills/file_tools.ts:274
↓ 1 callersFunctionextractSkillDescriptions
(skillsIndex: string)
src/server/agentRuntime.ts:372
↓ 1 callersFunctionextractSummary
(articleHtml: string)
scripts/sync-mohw-clarifications.ts:147
↓ 1 callersFunctionextractTextByExtension
(absolutePath: string, extension: string)
src/server/knowledgeIngestion.ts:139
↓ 1 callersFunctionextractUrls
(text: string)
src/serverHandlers.ts:134
↓ 1 callersFunctionfetchUserProfileContext
(userId?: string)
src/serverHandlers.ts:560
↓ 1 callersMethodfindDocumentByHash
(fileHash: string)
src/server/ragDocuments.test.ts:21
↓ 1 callersFunctionfindDocumentById
( rootDir: string, repository: RagDocumentsRepository | null | undefined, documentId: string )
src/server/knowledgeGraph.ts:606
↓ 1 callersFunctionfindKnowledge
(input: { query: string; topK?: number; sourceTypes?: SourceType[]; forceRefresh?: boolean; }, config:
agent_skills/file_tools.ts:363
↓ 1 callersFunctionformatFailedChatReply
(reason: string)
src/serverHandlers.ts:196
↓ 1 callersFunctionformatProfileUpdateSummary
(fields: ProfileUpdateFields)
src/server/profileApproval.ts:227
↓ 1 callersFunctionformatRoomSummaryIndexContext
(entries: RoomSummaryIndexEntry[])
src/server/roomSummaryIndex.ts:85
↓ 1 callersFunctionformatStartupBanner
(input: { backend: StorageBackend; port: number; aiApiUrl: string; })
src/server/httpRuntime.ts:28
↓ 1 callersFunctionformatSummaryContext
(summaryArray: string[])
src/serverHandlers.ts:146
↓ 1 callersFunctionformatUserProfileContext
(raw: string, userId?: string)
src/serverHandlers.ts:523
↓ 1 callersFunctionformat_markdown_table
將 pdfplumber 提取的表格(List of lists)格式化為標準 Markdown 表格
src/rag_clean/pdf_to_clean_markdown.py:12
↓ 1 callersFunctiongenerate_table_text_description
將二維數據表格的每一行,依據表頭翻譯成 Prose (自然語言敘述) 格式, 極大提升 RAG 的語意對齊與數值檢索能力。
src/rag_clean/pdf_to_clean_markdown.py:46
↓ 1 callersFunctiongetBoundary
(contentType: string)
src/server/ragDocuments.ts:148
↓ 1 callersMethodgetChatHistory
(input: ChatHistoryQuery)
src/storage/types.ts:116
↓ 1 callersMethodgetChatRoomSummary
(threadId: string, userId?: string)
src/storage/types.ts:113
↓ 1 callersFunctiongetCompatibleSkillsIndexCandidates
(skillsIndexFile: string)
src/server/agentRuntime.ts:262
↓ 1 callersFunctiongetCorpus
( config: Pick<AgentConfig, 'rag'>, forceRefresh: boolean )
agent_skills/file_tools.ts:253
↓ 1 callersFunctiongetKnowledgeDocument
(documentId: string)
src/storage/sqlite/adapter.ts:292
↓ 1 callersFunctiongetKnowledgeIngestionJob
(jobId: string)
src/storage/sqlite/adapter.ts:405
↓ 1 callersFunctiongetLanguageInstruction
(language: AgentConfig['responseStyle']['language'])
src/server/agentRuntime.ts:200
↓ 1 callersFunctiongetLatestAiTextFromState
(messages: unknown[] | undefined)
src/server/agentRuntime.ts:126
↓ 1 callersFunctiongetLatestUserTextFromState
(messages: unknown[] | undefined)
src/server/agentRuntime.ts:309
↓ 1 callersFunctiongetParagraphStyleInstruction
( paragraphStyle: AgentConfig['responseStyle']['paragraphStyle'] )
src/server/agentRuntime.ts:208
↓ 1 callersFunctiongetPrimaryImagePayload
(payload: ChatRequestPayload)
src/serverHandlers.ts:96
↓ 1 callersFunctiongetToolJsonInstruction
(language: AgentConfig['responseStyle']['language'])
src/server/agentRuntime.ts:222
↓ 1 callersFunctiongetUserProfile
(userId: string)
src/storage/sqlite/adapter.ts:188
↓ 1 callersFunctionhasAnalyzeFoodToolResult
(messages: unknown[] | undefined)
src/server/agentRuntime.ts:293
↓ 1 callersFunctionhasLegacyMetadataBlock
(content: string)
src/server/mohwNews.ts:194
↓ 1 callersFunctionhasToolResult
(messages: unknown[] | undefined, toolName: string)
src/server/agentRuntime.ts:350
↓ 1 callersFunctionhasUsableLocalContent
(record: ArticleRecord)
src/server/mohwNews.ts:200
↓ 1 callersFunctionisMissingColumnError
(error: unknown, column: string)
agent_skills/db_tools.ts:55
↓ 1 callersFunctionisPrivateOrLocalHostname
(hostname: string)
agent_skills/fetch_web.ts:20
↓ 1 callersFunctionisRoomSummaryIndexEntry
(value: unknown)
src/server/roomSummaryIndex.ts:11
↓ 1 callersFunctionisTimeoutError
(error: unknown)
src/server/httpRuntime.ts:62
↓ 1 callersFunctionisUpstreamConnectionError
(error: unknown)
src/server/httpRuntime.ts:83
↓ 1 callersMethodlistKnowledgeDocuments
()
src/storage/types.ts:117
↓ 1 callersFunctionlistMarkdownFiles
(directory: string)
src/server/knowledgeGraph.ts:216
↓ 1 callersFunctionlistNodes
( cache: KnowledgeGraphCache, options: z.infer<typeof ListNodesSchema> )
src/server/knowledgeGraph.ts:582
↓ 1 callersFunctionloadAgentRuntime
()
src/server/agentRuntime.test.ts:19
↓ 1 callersFunctionlooksLikeLowValueContent
(content: string)
src/server/mohwNews.ts:184
↓ 1 callersFunctionmain
()
experiments/version_aware_rag/scripts/normalize_markdown.ts:32
↓ 1 callersFunctionmain
()
experiments/version_aware_rag/scripts/run_retrieval_eval.ts:187
↓ 1 callersFunctionmain
()
experiments/version_aware_rag/scripts/build_chunks.ts:88
↓ 1 callersFunctionmain
()
experiments/version_aware_rag/scripts/classify_conflicts.ts:70
↓ 1 callersFunctionmain
()
experiments/version_aware_rag/scripts/apply_policy.ts:34
↓ 1 callersFunctionmain
()
experiments/version_aware_rag/scripts/build_chunk_pairs.ts:71
↓ 1 callersFunctionmain
()
src/cli.ts:115
↓ 1 callersFunctionmain
()
src/rag_clean/pdf_to_clean_markdown.py:261
↓ 1 callersFunctionmain
()
scripts/sync-mohw-clarifications.ts:233
↓ 1 callersFunctionmapKnowledgeIngestionJobRow
(row: Record<string, unknown>)
src/storage/sqlite/adapter.ts:79
↓ 1 callersFunctionmapUserProfileRow
(row: Record<string, unknown>)
src/storage/sqlite/adapter.ts:44
↓ 1 callersFunctionmessageContentToText
(content: unknown)
agent_skills/vision_model.ts:15
↓ 1 callersFunctionnormalizeAiApiUrl
(rawUrl: string, isDocker: boolean)
src/server/aiRuntime.ts:7
↓ 1 callersFunctionnormalizeFdaUrl
(url: URL)
src/server/mohwNews.ts:51
↓ 1 callersFunctionnormalizeMimeType
(mimeType?: string | null)
src/server/ragDocuments.ts:63
↓ 1 callersFunctionnormalizeProfileListValue
(rawValue: string)
src/server/profileApproval.ts:156
↓ 1 callersFunctionnormalizeProposalCandidate
(rawOutput: unknown)
src/server/profileApproval.ts:74
↓ 1 callersFunctionnormalizeRoomSummaryIndexEntry
(value: RoomSummaryIndexEntry)
src/server/roomSummaryIndex.ts:21
↓ 1 callersFunctionnormalizeText
(text: string)
experiments/version_aware_rag/scripts/normalize_markdown.ts:8
↓ 1 callersFunctionnormalizeText
(value: string)
src/server/knowledgeGraph.ts:133
↓ 1 callersFunctionnormalizeToolOutputCandidate
(rawOutput: unknown)
agent_skills/conversation_summary_tool.ts:23
↓ 1 callersFunctionnormalizeUserContext
(rawContext: ChatRequestPayload['user_context'])
src/serverHandlers.ts:78
↓ 1 callersFunctionparseAdminIdentity
(req: Request)
src/server/knowledgeGraph.ts:140
↓ 1 callersFunctionparseAdminIdentity
(req: Request)
src/server/ragDocuments.ts:260
↓ 1 callersFunctionparseCliArgs
(argv: string[])
src/cli.ts:20
↓ 1 callersFunctionparseDataUrlImage
( raw: string )
src/server/imageStorage.ts:15
↓ 1 callersFunctionparseDietReport
(value: unknown)
src/storage/sqlite/adapter.ts:35
↓ 1 callersFunctionparseDocx
(absolutePath: string)
src/server/knowledgeIngestion.ts:123
↓ 1 callersFunctionparseDocx
(absolutePath: string)
src/server/ragDocuments.ts:125
↓ 1 callersFunctionparseList
( html: string, )
src/server/mohwNews.ts:100
↓ 1 callersFunctionparseListItems
(html: string)
scripts/sync-mohw-clarifications.ts:99
↓ 1 callersFunctionparseMultipartParts
(body: Buffer, boundary: string)
src/server/ragDocuments.ts:172
↓ 1 callersFunctionparseMultipartUpload
(req: Request)
src/server/ragDocuments.ts:214
↓ 1 callersFunctionparseOptionalBooleanEnv
(value: string | undefined)
src/server/mohwConfig.ts:3
↓ 1 callersFunctionparsePdf
(absolutePath: string)
src/server/knowledgeIngestion.ts:128
↓ 1 callersFunctionparsePdf
(absolutePath: string)
src/server/ragDocuments.ts:130
↓ 1 callersFunctionparseProfileUpdateProposalOutput
(rawOutput: unknown)
src/server/profileApproval.ts:101
↓ 1 callersFunctionparsePublishedDate
(markdown: string, absolutePath?: string)
agent_skills/file_tools.ts:147
↓ 1 callersFunctionparseTxtLike
(absolutePath: string)
src/server/knowledgeIngestion.ts:118
↓ 1 callersFunctionparseTxtLike
(absolutePath: string)
src/server/ragDocuments.ts:120
↓ 1 callersFunctionpersistChatHistoryReply
(input: { chatHistoryId: string; aiReply: string; })
src/serverHandlers.ts:188
↓ 1 callersFunctionpersistFailedChatReply
(input: { chatHistoryId: string; reason: string; storage?: Pick<AppStorage, 'updateChatHistoryReply'>; }
src/serverHandlers.ts:201
↓ 1 callersFunctionpersistSummaryOutputs
({ threadId, chatHistoryId, userId, title, summaryProposals, existingRoomSummary = '', existingR
src/serverHandlers.ts:410
↓ 1 callersFunctionpushOversizedBlock
(block: string)
agent_skills/file_tools.ts:102
↓ 1 callersFunctionreadFrontMatterValue
(markdown: string, fieldName: string)
agent_skills/file_tools.ts:141
↓ 1 callersFunctionreadRequestBody
(req: Request, maxBytes: number)
src/server/ragDocuments.ts:153
↓ 1 callersFunctionresolveAbsolutePath
(rootDir: string, relativePath: string)
src/server/knowledgeGraph.ts:137
↓ 1 callersFunctionresolveAgentConfig
(rawConfig: RawAgentConfig, configDir: string)
src/config/agentConfig.ts:108
↓ 1 callersFunctionresolveSqliteDbPath
()
src/storage/runtime.ts:8
← previousnext →201–300 of 406, ranked by callers