Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Superflows-AI/superflows
/ functions
Functions
445 in github.com/Superflows-AI/superflows
⨍
Functions
445
◇
Types & classes
38
↓ 4 callers
Function
getRelevantDocChunks
( userQuery: string, org_id: number, nChunksInclude: number, supabase: SupabaseClient<Database>, )
lib/embed-docs/docsSearch.ts:7
↓ 4 callers
Function
getSearchDocsAction
( org: { id: number; name: string; api_key: string }, currentHost: string, )
lib/builtinActions.ts:6
↓ 4 callers
Function
getUserMessageText
( questionText: string, variables: Record<string, any>, )
lib/v3/utils.ts:4
↓ 4 callers
Function
hideMostRecentFunctionOutputs
( chatHistory: GPTMessageInclSummary[], )
lib/edge-runtime/utils.ts:396
↓ 4 callers
Method
initialize
( userMessage: string, orgId: number, conversationIndex: number, supabase: SupabaseClient<Data
lib/edge-runtime/llmResponseCache.ts:25
↓ 4 callers
Function
isEmail
(string: string)
lib/utils.ts:455
↓ 4 callers
Function
isPhoneNumber
(string: string)
lib/utils.ts:460
↓ 4 callers
Function
makeHttpRequest
( url: string, requestOptions: RequestInit, localHostname: string, )
lib/edge-runtime/requests.ts:240
↓ 4 callers
Function
objectNotEmpty
(obj: Object)
lib/utils.ts:168
↓ 4 callers
Function
parseLegacyAnthropicStreamedData
( claudeOutString: string, )
lib/parsers/parsers.ts:36
↓ 4 callers
Function
pullInMessageData
( answer_id: string, supabase: SupabaseClient<Database>, )
components/approval/verifyAnswerScreen.tsx:893
↓ 4 callers
Function
replaceMarkdownLinks
( inputString: string | undefined, )
pages/api/swagger-to-actions.ts:377
↓ 3 callers
Function
MessageInclSummaryToGPT
( message: GPTMessageInclSummary, )
lib/edge-runtime/utils.ts:58
↓ 3 callers
Function
apiMockPrompt
( path: string, requestMethod: RequestMethod, requestParameters: Chunk[] | null, responseType: Propert
lib/prompts/apiMock.ts:4
↓ 3 callers
Function
chatToDocsPrompt
( userDescription: string | undefined, orgInfo: Pick<Organization, "name" | "description" | "chatbot_instr
lib/prompts/chatBot.ts:219
↓ 3 callers
Method
checkChatCache
(chatHistory: GPTMessageInclSummary[])
lib/edge-runtime/llmResponseCache.ts:196
↓ 3 callers
Function
dataAnalysisAction
(org: { id: number })
lib/v2/builtinActions.ts:6
↓ 3 callers
Function
generateApiKey
()
lib/apiKey.ts:3
↓ 3 callers
Function
getChunkUniquenessString
(chunk: SimilaritySearchResult)
lib/edge-runtime/utils.ts:198
↓ 3 callers
Function
getDataAnalysisPrompt
( command: string, calledActions: CalledAction[], varNames: string[], orgInfo: Pick<Organization, "nam
lib/prompts/dataAnalysis.ts:13
↓ 3 callers
Function
getFreeTierUsage
( supabase: SupabaseClient<Database>, orgId: number, )
lib/edge-runtime/utils.ts:138
↓ 3 callers
Function
getHost
(req: NextRequest)
lib/edge-runtime/utils.ts:155
↓ 3 callers
Function
getSecondaryModel
(mainModel: string)
lib/queryLLM.ts:356
↓ 3 callers
Function
isAlphaNumericUnderscore
(str: string)
lib/utils.ts:84
↓ 3 callers
Function
isName
(string: string)
lib/utils.ts:481
↓ 3 callers
Function
isTextWithSubstance
(text: string)
lib/embed-docs/utils.ts:4
↓ 3 callers
Function
joinArraysNoDuplicates
( arr1: T[], arr2: T[], uniqueKey: keyof T, )
lib/utils.ts:566
↓ 3 callers
Function
joinShortChunks
(arr: string[], tokenLimit: number)
lib/embed-docs/utils.ts:236
↓ 3 callers
Function
languageLine
( language: string | null, keywordsStr?: string, )
lib/v2/prompts/utils.ts:61
↓ 3 callers
Function
processAPIoutput
( out: Json | Json[], chosenAction: Action, )
lib/edge-runtime/requests.ts:15
↓ 3 callers
Function
requestCorrectionPrompt
( missingParam: string, action: Action, )
lib/prompts/requestCorrection.ts:32
↓ 3 callers
Function
snakeToCamel
(str: string)
supabase/functions/execute-code-2/utils.ts:119
↓ 3 callers
Function
splitMarkdownIntoSentences
(markdown: string)
lib/embed-docs/utils.ts:199
↓ 3 callers
Function
textToJson
(text: string)
components/actions/editActionModal.tsx:505
↓ 2 callers
Function
Dottie
( // Dottie talks to docs controller: ReadableStreamDefaultController, reqData: AnswersType, org: OrgJoi
lib/edge-runtime/ai.ts:73
↓ 2 callers
Method
_history_matches
(chatHistory: GPTMessageInclSummary[])
lib/edge-runtime/llmResponseCache.ts:142
↓ 2 callers
Function
addGPTdataToProperties
( properties: Properties, gptOutput: string, arrayIdx: number | null = null, )
lib/utils.ts:373
↓ 2 callers
Function
addTabsToVariables
(str: string)
components/actions/viewPromptModal.tsx:116
↓ 2 callers
Function
applyConversationFilters
( conversation: ConversationSidebarItem, includePlaygroundItems: SelectBoxWithDropdownOption[], includeF
components/transcripts/transcriptSearchSidebar.tsx:372
↓ 2 callers
Function
bodyPropertiesFromRequestBodyContents
( requestBodyContents: Json, )
lib/edge-runtime/requests.ts:200
↓ 2 callers
Method
checkChatSummaryCache
(chatHistory: GPTMessageInclSummary[])
lib/edge-runtime/llmResponseCache.ts:306
↓ 2 callers
Function
checkCodeExecutionOutput
( returnedData: ExecuteCode2Item[] | null, )
lib/v3/edge-runtime/dataAnalysis.ts:13
↓ 2 callers
Function
checkPlotData
(data: any)
lib/v2/edge-runtime/dataAnalysis.ts:571
↓ 2 callers
Function
combineChunks
(chunks: SimilaritySearchResult[])
lib/edge-runtime/utils.ts:265
↓ 2 callers
Function
combineSelectedFunctions
( ensembleSelectedFns: ActionFilteringOutput[], actions: ActionPlusApiInfo[], )
lib/v2/edge-runtime/filterActions.ts:66
↓ 2 callers
Function
convertToGraphData
( executeCodeResponse: ExecuteCode2Item[], )
lib/v3/edge-runtime/dataAnalysis.ts:108
↓ 2 callers
Function
convertWrittenCodeToExecutable
( code: string, variableData: ApprovalVariable[], )
lib/v3/prompts_parsers/codeGen.ts:161
↓ 2 callers
Function
executeMessages
( messages: Pick< ApprovalAnswerMessage, "raw_text" | "message_idx" | "message_type" >[], isDocs
lib/v3/edge-runtime/matching.ts:352
↓ 2 callers
Function
exponentialRetryWrapper
( func: (...args: Args) => Promise<Output>, args: Args, retries: number, )
supabase/functions/execute-code-2/utils.ts:1
↓ 2 callers
Function
fetchPage
(page: number)
lib/hooks/useDocumentsLoader.ts:41
↓ 2 callers
Function
filterActions
( userRequest: string, actions: ActionPlusApiInfo[], org: { name: string; id: number }, model: string,
lib/v2/edge-runtime/filterActions.ts:16
↓ 2 callers
Function
findAndReplaceID
(json: Json | Json[])
lib/edge-runtime/apiResponseSimplification.ts:26
↓ 2 callers
Function
forgeLogMessage
(url: string, requestOptions: RequestInit)
lib/edge-runtime/requests.ts:32
↓ 2 callers
Function
forgeLogMessage
(url: string, requestOptions: RequestInit)
supabase/functions/execute-code-2/requests.ts:29
↓ 2 callers
Function
formatReqBodySchema
( schema: OpenAPIV3_1.SchemaObject | undefined, nestingLevel: number = 0, isRequired: boolean = false,
lib/v2/prompts/chatBot.ts:55
↓ 2 callers
Function
getActionFilteringDescriptions
( selectedActions: Pick<Action, "name" | "filtering_description">[], )
lib/v2/prompts/utils.ts:21
↓ 2 callers
Function
getChatHistoryText
(chatHistory: ChatGPTMessage[])
lib/v2/prompts/summariseChatHistory.ts:81
↓ 2 callers
Function
getConversations
( from: number, to: number, includeFeedbackItems: SelectBoxWithDropdownOption[], includePlaygroundItem
components/transcripts/transcriptSearchSidebar.tsx:409
↓ 2 callers
Function
getLLMRequestChat
( messages: ChatGPTMessage[], params: ChatGPTParams = {}, model: string, )
lib/queryLLM.ts:179
↓ 2 callers
Function
getLLMResponse
( prompt: string | ChatGPTMessage[], params: ChatGPTParams = {}, model: string, )
lib/queryLLM.ts:31
↓ 2 callers
Function
getNextAnswerId
( supabase: SupabaseClient<Database>, groupId: string, )
components/approval/verifyAnswerScreen.tsx:872
↓ 2 callers
Function
getOAIRequestCompletion
( prompt: string, params: ChatGPTParams = {}, model: string, )
lib/queryLLM.ts:146
↓ 2 callers
Function
getOrGenerateID
(value: string)
lib/edge-runtime/apiResponseSimplification.ts:52
↓ 2 callers
Function
getPossibleJsonChunk
(text: string)
lib/embed-docs/utils.ts:154
↓ 2 callers
Function
getSummarizeTextPrompt
( textToSummarize: string, organization: Omit<Organization, "created_at" | "join_link_id">, )
lib/prompts/summarizeText.ts:11
↓ 2 callers
Function
getType
( type: typeType | undefined, enums: any[] | undefined, )
lib/v2/prompts/chatBot.ts:30
↓ 2 callers
Function
getUniqueLinks
( links: Link[], base_url: string, url_docs: string, )
lib/embed-docs/getNestedUrls.ts:116
↓ 2 callers
Function
hallucinateDocsSystemPrompt
( userDescription: string | undefined, orgInfo: { name: string; description: string; }, langua
lib/prompts/hallucinateDocs.ts:3
↓ 2 callers
Function
isFunctionMessageTooLong
( message: FunctionMessageInclSummary, )
lib/edge-runtime/utils.ts:352
↓ 2 callers
Function
isJsonString
(str: string)
lib/utils.ts:89
↓ 2 callers
Function
isOSModel
(model: string)
lib/queryLLM.ts:172
↓ 2 callers
Function
makeUrlAbsolute
(url: string, href: string)
lib/utils.ts:447
↓ 2 callers
Function
pageGetServerSideProps
( ctx: GetServerSidePropsContext, )
components/getServerSideProps.ts:4
↓ 2 callers
Function
preStreamProcessOutMessage
( outMessage: FunctionMessageInclSummary, command: FunctionCall, chosenAction: Action, )
lib/edge-runtime/utils.ts:358
↓ 2 callers
Function
preamble
( controller: ReadableStreamDefaultController, conversationId: number, )
lib/v2/edge-runtime/ai.ts:879
↓ 2 callers
Function
preamble
( controller: ReadableStreamDefaultController, conversationId: number, actions: ActionPlusApiInfo[], r
lib/edge-runtime/ai.ts:702
↓ 2 callers
Function
propertiesToChunks
(properties: Properties)
lib/utils.ts:416
↓ 2 callers
Function
reformatActionData
( data: Action & { apis: Api & { fixed_headers: HeaderRow[] } }, params: Record<string, any>, requestDat
pages/api/v1/confirm.ts:399
↓ 2 callers
Function
reformatFromFuse
( data: { item: Obj; refIndex: number; score?: number }[], )
lib/utils.ts:618
↓ 2 callers
Function
removeFromHtml
(node: HTMLBodyElement, tags: string[])
lib/embed-docs/embedDocs.ts:139
↓ 2 callers
Function
removeHiddenElements
( body: cheerio.Cheerio<cheerio.Element>, )
pages/api/parse-html.ts:57
↓ 2 callers
Function
removeMarkdownLinks
(text: string)
lib/prompts/chatBot.ts:45
↓ 2 callers
Function
removeUrlsFromObjs
( obj: Json | Json[], existingStore?: StringMapping, )
lib/edge-runtime/apiResponseSimplification.ts:65
↓ 2 callers
Function
requestCorrectionSystemPrompt
( orgInfo: { name: string; description: string; }, userDescription: string | undefined, )
lib/prompts/requestCorrection.ts:5
↓ 2 callers
Function
runCodeGen
( userRequest: string, actions: ActionPlusApiInfo[], org: Pick< Organization, | "id" | "name
lib/v2/edge-runtime/ai.ts:898
↓ 2 callers
Function
saveAnalyticsToDB
( instructionMessage: string, llmResponse: string, orgId: number, dbData: { conversationId: number; in
lib/v2/edge-runtime/dataAnalysis.ts:44
↓ 2 callers
Function
saveAnalyticsToDB
( instructionMessage: string, llmResponse: string, orgId: number, dbData: { conversationId: number; in
lib/edge-runtime/dataAnalysis.ts:48
↓ 2 callers
Function
scoreItem
(item: any)
pages/approval/index.tsx:500
↓ 2 callers
Function
slugMatchesPath
(path: string, slug: string)
pages/api/mock/[...slug].ts:32
↓ 2 callers
Function
sortObjectToArray
( obj: Record<string, ValueType>, )
lib/edge-runtime/utils.ts:386
↓ 2 callers
Function
splitPath
(path: string)
lib/utils.ts:261
↓ 2 callers
Function
storeActionsAwaitingConfirmation
( toConfirm: ToConfirm[], conversationId: number, )
lib/edge-runtime/ai.ts:746
↓ 2 callers
Function
stripBasicTypescriptTypes
( jsCodeString: string, definedTypeNames?: string[], )
lib/v2/prompts/dataAnalysis.ts:232
↓ 2 callers
Function
summariseChatHistory
( chatHistory: ChatGPTMessage[], language: string | null, org: { id: number; name: string; description:
lib/v2/edge-runtime/summariseChatHistory.ts:9
↓ 2 callers
Function
summarizeText
( text: string, organization: Omit<Organization, "created_at" | "join_link_id">, )
lib/edge-runtime/summarize.ts:9
↓ 2 callers
Function
swapKeysValues
(json: { [key: string]: string })
lib/utils.ts:426
↓ 2 callers
Function
validateVariablesValid
( questionText: string, variables: ApprovalVariable[], )
components/approval/addQuestionModal.tsx:219
↓ 1 callers
Function
Cassius
( // Yond Cassius has a lean and hungry look, // He thinks too much; such men are dangerous controller:
lib/v3/edge-runtime/ai.ts:53
↓ 1 callers
Function
GPTChatFormatToClaudeInstant
( chatMessages: ChatGPTMessage[], )
lib/queryLLM.ts:438
↓ 1 callers
Function
GPTChatFormatToPhind
(chatMessages: ChatGPTMessage[])
lib/queryLLM.ts:416
← previous
next →
101–200 of 445, ranked by callers