MCPcopy Create free account

hub / github.com/brightdata/pepolehub / functions

Functions235 in github.com/brightdata/pepolehub

↓ 28 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 17 callersFunctioncreateState
( overrides: Partial<ResearchGraphState> = {}, )
src/tests/test-graph-nodes.ts:24
↓ 16 callersFunctionexpectStateUpdate
( update: Partial<ResearchGraphUpdate> | Send[], )
src/tests/test-graph-nodes.ts:42
↓ 11 callersFunctionfirstString
(record: UnknownRecord | undefined, keys: string[])
src/lib/brightdata/research.ts:538
↓ 7 callersFunctiongetCacheKey
(prefix: string, identifier: string)
src/lib/redis/cache.ts:26
↓ 6 callersFunctiongetResearchById
(id: string)
src/lib/cache/research-cache.ts:315
↓ 6 callersFunctionsetCache
(key: string, value: T, ttl: number)
src/lib/redis/cache.ts:48
↓ 5 callersFunctioncoerceNumber
(value: unknown)
src/lib/brightdata/research.ts:549
↓ 5 callersFunctioncreateResearchGraph
( overrides: GraphOverrides = {}, checkpointer: MemorySaver = new MemorySaver(), )
src/lib/research/graph.ts:400
↓ 5 callersFunctiondeleteCache
(key: string)
src/lib/redis/cache.ts:62
↓ 4 callersFunctioncacheFullProfile
(profile: ProfileData)
src/lib/redis/profile-cache.ts:92
↓ 4 callersFunctioncreateState
(overrides: Partial<ResearchGraphState> = {})
src/tests/test-graph-parallel.ts:11
↓ 4 callersFunctiongetCachedProfile
( linkedinUrl: string )
src/lib/cache/index.ts:32
↓ 4 callersFunctionnormalizeUrlKey
(value: string | undefined | null)
src/lib/brightdata/research.ts:518
↓ 4 callersFunctionsaveProfile
(data: ProfileData)
src/lib/cache/index.ts:180
↓ 4 callersFunctiontryParseJson
(text: string)
src/lib/brightdata/research.ts:568
↓ 3 callersFunctionaggregateDataNode
(state)
src/lib/research/graph.ts:293
↓ 3 callersFunctionbatchCacheProfiles
(profiles: ProfileData[])
src/lib/redis/profile-cache.ts:106
↓ 3 callersFunctioncreateExecuteSearchNode
( searchPeople: SearchPersonFn = searchGoogleForPerson, )
src/lib/research/graph.ts:183
↓ 3 callersFunctioncreateFetchLinkedInNode
( fetchProfile: FetchLinkedInProfileFn = fetchLinkedInProfile, )
src/lib/research/graph.ts:119
↓ 3 callersFunctioncreateGenerateSearchQueryNode
( generateQuery: GenerateSearchQueryFn = generateSearchQuery, )
src/lib/research/graph.ts:150
↓ 3 callersFunctioncreateResearchRecord
( linkedinUrl: string, personName: string, personId?: string )
src/lib/cache/research-cache.ts:131
↓ 3 callersFunctioncreateScrapeWebPageNode
( scrapeFn: ScrapeUrlsFn = scrapeUrls, )
src/lib/research/graph.ts:73
↓ 3 callersFunctioncreateSummarizeContentNode
( summarizeFn: SummarizeContentFn = summarizeWebContent, )
src/lib/research/graph.ts:227
↓ 3 callersFunctioncreateWriteReportNode
( generateReport: GenerateReportFn = generateResearchReport, )
src/lib/research/graph.ts:318
↓ 3 callersFunctionexpectRejection
(fn: () => Promise<unknown>, label: string)
src/tests/test-llm-service.ts:92
↓ 3 callersFunctionfetchLinkedInProfile
( linkedinUrl: string )
src/lib/brightdata/linkedin.ts:143
↓ 3 callersFunctiongetCachedResearch
( linkedinUrl: string )
src/lib/cache/research-cache.ts:47
↓ 3 callersFunctiongetProfileFullCacheKey
(linkedinId: string)
src/lib/redis/profile-cache.ts:21
↓ 3 callersFunctiongetProfileSummaryCacheKey
(linkedinId: string)
src/lib/redis/profile-cache.ts:14
↓ 3 callersFunctiongetResearchCacheKey
* Get Redis cache key for research
src/lib/cache/research-cache.ts:383
↓ 3 callersFunctiongetSearchCacheKey
(query: string)
src/lib/redis/search-cache.ts:14
↓ 3 callersFunctionhasGeminiKey
()
src/lib/research/llm-service.ts:325
↓ 3 callersFunctionisPlainObject
(value: unknown)
src/lib/brightdata/research.ts:564
↓ 3 callersFunctionlistRecentResearch
( limit: number = 20, offset: number = 0, status?: ResearchStatus )
src/lib/cache/research-cache.ts:335
↓ 3 callersFunctionlogResult
(label: string, success: boolean)
src/tests/test-research-types.ts:3
↓ 3 callersFunctionmapUsage
( usage: | { inputTokens?: number; outputTokens?: number; totalTokens?: number;
src/lib/research/llm-service.ts:333
↓ 3 callersFunctionnormalizeLinkedInUrl
* Normalize LinkedIn URL
src/lib/cache/research-cache.ts:390
↓ 3 callersFunctionparseSearchQuery
( query: string )
src/lib/search/parser.ts:47
↓ 3 callersFunctionsearchLinkedInProfiles
( query: string, maxResults: number = 10, countryCode?: string | null, )
src/lib/brightdata/search.ts:206
↓ 3 callersFunctionupdateResearchStatus
( id: string, status: ResearchStatus, metadata?: Record<string, unknown> )
src/lib/cache/research-cache.ts:172
↓ 2 callersFunctionbatchGetCachedProfiles
( linkedinIds: string[], )
src/lib/redis/profile-cache.ts:54
↓ 2 callersFunctionbuildLinkedinUrl
(linkedinId: string)
src/app/api/profiles/batch/route.ts:36
↓ 2 callersFunctioncacheProfileSummary
(summary: ProfileSummary)
src/lib/redis/profile-cache.ts:84
↓ 2 callersFunctioncacheResearchInRedis
* Cache research in Redis
src/lib/cache/research-cache.ts:362
↓ 2 callersFunctioncacheSearchResults
( query: string, parsedQuery: ParsedSearchQuery, results: ProfileSummary[], )
src/lib/redis/search-cache.ts:42
↓ 2 callersFunctioncallBrightDataTool
(toolName: string, args: Record<string, unknown>)
src/lib/brightdata/research.ts:316
↓ 2 callersFunctioncleanup
()
src/tests/test-profile-cache.ts:50
↓ 2 callersFunctioncreateResearchGraphBuilder
(overrides: GraphOverrides = {})
src/lib/research/graph.ts:373
↓ 2 callersFunctioncreateScrapedContent
(url: string)
src/tests/test-graph-parallel.ts:37
↓ 2 callersFunctioncreateSearchResult
(url: string, source: string, rank: number)
src/tests/test-graph-parallel.ts:27
↓ 2 callersFunctiondecodeBase64
(data: string | undefined)
src/lib/brightdata/research.ts:576
↓ 2 callersFunctionemptyUsage
()
src/lib/research/llm-service.ts:329
↓ 2 callersFunctionextractArrayLike
(payload: unknown)
src/lib/brightdata/research.ts:387
↓ 2 callersFunctionextractLinkedInId
* Extract LinkedIn ID from URL * Example: https://www.linkedin.com/in/meir-kadosh-7bb5b7224 -> meir-kadosh-7bb5b7224
src/lib/cache/index.ts:11
↓ 2 callersFunctionextractToolPayload
(result: ToolCallResponse, toolName: string)
src/lib/brightdata/research.ts:337
↓ 2 callersFunctiongenerateResearchReport
( data: ResearchDataBundle, options: ResearchReportOptions = {}, )
src/lib/research/llm-service.ts:154
↓ 2 callersFunctiongenerateSearchQuery
( personName: string, linkedinUrl: string, context?: string, )
src/lib/research/llm-service.ts:62
↓ 2 callersFunctiongetApiHeaders
* Get Bright Data API headers
src/lib/brightdata/linkedin.ts:23
↓ 2 callersFunctiongetBrightDataClient
()
src/lib/brightdata/client.ts:10
↓ 2 callersFunctiongetCachedFullProfile
(linkedinId: string)
src/lib/redis/profile-cache.ts:36
↓ 2 callersFunctiongetCachedSearchResults
( query: string, )
src/lib/redis/search-cache.ts:22
↓ 2 callersFunctiongetTTL
(key: string)
src/lib/redis/cache.ts:104
↓ 2 callersFunctionisValidLinkedInProfileUrl
(url: string)
src/lib/brightdata/search.ts:122
↓ 2 callersFunctionmarkResearchFailed
( id: string, errorMessage: string, metadata?: Record<string, unknown> )
src/lib/cache/research-cache.ts:275
↓ 2 callersFunctionnormalizeLinkedInUrl
(url: string)
src/lib/brightdata/search.ts:136
↓ 2 callersFunctionpollForSnapshot
* Poll for snapshot data until ready
src/lib/brightdata/linkedin.ts:74
↓ 2 callersFunctionrouteToScraping
(state: ResearchGraphState)
src/lib/research/graph.ts:449
↓ 2 callersFunctionrouteToSummarization
(state: ResearchGraphState)
src/lib/research/graph.ts:469
↓ 2 callersFunctionrunErrorHarness
()
src/tests/test-llm-service.ts:64
↓ 2 callersFunctionsanitizeUrl
(value?: string | null)
src/lib/brightdata/research.ts:508
↓ 2 callersFunctionsaveResearchReport
( id: string, report: string, sources: Array<{ url: string; summary: string }>, metadata?: Record<stri
src/lib/cache/research-cache.ts:211
↓ 2 callersFunctionstartNode
(state)
src/lib/research/graph.ts:33
↓ 2 callersFunctionsummarizePayload
(payload: unknown, maxLength = 800)
src/lib/brightdata/research.ts:585
↓ 2 callersFunctionsummarizeWebContent
( url: string, content: string, personName: string, options: SummarizeOptions = {}, )
src/lib/research/llm-service.ts:98
↓ 2 callersFunctiontransformBrightDataProfile
( data: BrightDataLinkedInResponse )
src/types/linkedin.ts:165
↓ 2 callersFunctiontransformResearchRecord
* Transform Prisma research record to ResearchRecord type
src/lib/cache/research-cache.ts:407
↓ 2 callersFunctiontriggerLinkedInScrape
* Trigger a LinkedIn profile scrape job
src/lib/brightdata/linkedin.ts:38
↓ 1 callersFunctionaddUsage
(target: LLMUsage, addition: LLMUsage | undefined)
src/lib/research/llm-service.ts:354
↓ 1 callersFunctionbuildFallbackPersonQuery
* Lightweight heuristic fallback in case LLM query generation is unavailable.
src/lib/brightdata/research.ts:270
↓ 1 callersFunctionbuildGoogleSearchUrl
* Build Google search URL with JSON response format and geolocation
src/lib/brightdata/search.ts:44
↓ 1 callersFunctionbuildLinkedinUrl
(linkedinId: string)
src/app/api/profile/[linkedinId]/route.ts:10
↓ 1 callersFunctionbuildOptimizedPersonQuery
(personName: string, linkedinUrl: string, context?: string)
src/lib/brightdata/research.ts:217
↓ 1 callersFunctionbuildQueryPrompt
(personName: string, linkedinUrl: string, context?: string)
src/lib/brightdata/research.ts:246
↓ 1 callersFunctionbuildReportContext
(data: ResearchDataBundle, includeRawData: boolean)
src/lib/research/llm-service.ts:271
↓ 1 callersFunctionbuildReportPrompt
(context: ReturnType<typeof buildReportContext>)
src/lib/research/llm-service.ts:303
↓ 1 callersFunctionbuildResearchBundle
(state: ResearchGraphState)
src/lib/research/graph.ts:496
↓ 1 callersFunctionbuildSearchPrompt
(personName: string, linkedinUrl: string, context?: string)
src/lib/research/llm-service.ts:193
↓ 1 callersFunctionbuildSummaryPrompt
(personName: string, url: string, chunk: string, maxWords: number)
src/lib/research/llm-service.ts:212
↓ 1 callersFunctioncheckRedisHealth
()
src/lib/redis/health.ts:3
↓ 1 callersFunctionchunkText
(text: string, chunkSize: number)
src/lib/research/llm-service.ts:263
↓ 1 callersFunctiondedupeSummaries
(summaries: WebSummary[])
src/lib/research/graph.ts:482
↓ 1 callersFunctiondeleteCachePattern
(pattern: string)
src/lib/redis/cache.ts:75
↓ 1 callersFunctiondrawResearchGraphMermaid
(overrides: GraphOverrides = {})
src/lib/research/graph.ts:408
↓ 1 callersFunctionexistsCache
(key: string)
src/lib/redis/cache.ts:91
↓ 1 callersFunctionextractLinkedInId
(url: string)
src/lib/brightdata/search.ts:154
↓ 1 callersFunctionextractLocationFromSnippet
(snippet: string)
src/lib/brightdata/search.ts:189
↓ 1 callersFunctionfetchLinkedInProfiles
( linkedinUrls: string[] )
src/lib/brightdata/linkedin.ts:184
↓ 1 callersFunctionfetchResearch
()
src/app/research/[id]/page.tsx:48
↓ 1 callersFunctionfetchSummaries
()
src/app/search/page.tsx:52
next →1–100 of 235, ranked by callers