mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-17 14:59:35 +00:00
31 lines
556 B
TypeScript
31 lines
556 B
TypeScript
export type DiscordSearchInput = {
|
|
question: string
|
|
keywords: string
|
|
lookback?: string
|
|
}
|
|
|
|
export type DiscordSearchResultItem = {
|
|
id: string
|
|
type: "discord"
|
|
title: string
|
|
path: string
|
|
text: string
|
|
lastEdited: string
|
|
isPrivate: boolean
|
|
}
|
|
|
|
export type DiscordSearchResult = {
|
|
results: Array<DiscordSearchResultItem>
|
|
}
|
|
|
|
export type DiscordSearch = (args: DiscordSearchInput) => Promise<DiscordSearchResult>
|
|
|
|
export type Module = {
|
|
search: DiscordSearch
|
|
}
|
|
|
|
export type {
|
|
DiscordIntegration,
|
|
ModulePermissions,
|
|
ModuleState,
|
|
} from "./integration" |