You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6b6fb56
Browse filesBrowse the repository at this point in the historyBrowse files
feat(search-experts): find who knows a topic from contributors across connected sources
Adds search_experts to the Search MCP, the Assistant and the Organization Search block. Live providers report each result's contributors when asked; the use case ranks them by role, source, recency and rank, matches them to the People directory by email, Slack account or an unambiguous name, and returns evidence links to the items.
'Only this source, such as jira, confluence, google_drive, slack, gitlab or github.'
589
+
),
590
+
startDate: z.iso
591
+
.datetime({offset: true})
592
+
.optional()
593
+
.describe(
594
+
`Inclusive start of the activity window, an ISO datetime with offset. With endDate, at most ${MAX_ACTIVITY_WINDOW_DAYS} days; without either, all time, with recent work weighted higher.`
595
+
),
596
+
endDate: z.iso
597
+
.datetime({offset: true})
598
+
.optional()
599
+
.describe('Exclusive end of the activity window, an ISO datetime with offset.'),
600
+
department: peopleFieldFilter('Only experts whose directory department contains this text.'),
601
+
location: peopleFieldFilter('Only experts whose directory location contains this text.'),
602
+
topK: z.number().int().min(1).max(25).default(10).describe('Maximum experts to return.'),
603
+
})
604
+
.strict()
605
+
.superRefine(refineActivityWindow)
606
+
607
+
exportconstSEARCH_EXPERTS_DESCRIPTION=
608
+
'Find who in this organization knows a topic: people ranked by what they did on matching items you can read (Jira issues assigned or reported, Confluence pages written or edited, Drive files owned or edited, Slack messages, GitLab and GitHub merge and pull requests, Linear issues). Each expert comes with a score, their directory profile when they are in it, what they did by source, and evidence links to the items. Only items your own access returns count. Narrow with source, a date window, department or location.'
609
+
577
610
/** Connection requests name a provider and optionally an owned account to repair. */
'List what you did across your connected sources in a date window, newest first: Slack messages and Gmail mail you sent (replied when the message answers another), Google Calendar meetings you organized or accepted, Jira issues you created or that were assigned to you, Confluence pages you created or edited and comments you wrote. Each item has a documentId for read_document. Follow nextCursor for more; a source that failed and recovers on a later page can return entries older than that page. sources reports each source: not_connected and reconnect carry the provider to connect with oauth_get_auth_link.',
0 commit comments