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
↓ 115 callers
Function
classNames
( ...classes: (string | undefined | null | boolean)[] )
lib/utils.ts:7
↓ 48 callers
Function
streamInfo
(step: any)
lib/v3/edge-runtime/ai.ts:72
↓ 33 callers
Function
useProfile
()
components/contextManagers/profile.tsx:119
↓ 26 callers
Function
getActionTSSignature
( action: Action, includeReturnType: boolean = false, returnedObject: any = null, isAsync: boolean = f
lib/prompts/tsConversion.ts:131
↓ 25 callers
Function
exponentialRetryWrapper
( func: (...args: Args) => Promise<Output>, args: Args, retries: number, )
lib/utils.ts:24
↓ 25 callers
Function
parseGeneratedCode
( rawCode: string, actions: Pick<Action, "name">[], )
lib/v2/prompts/dataAnalysis.ts:101
↓ 24 callers
Function
getActionDescriptions
(actions: Action[])
lib/prompts/chatBot.ts:127
↓ 21 callers
Function
replacePlaceholdersDuringStreaming
( content: string, placeholderBuffer: string, placeholderToOriginalMap: Record<string, string>, )
lib/edge-runtime/angelaUtils.ts:108
↓ 21 callers
Function
snakeToCamel
(str: string)
lib/utils.ts:578
↓ 21 callers
Function
streamInfo
(step: StreamingStepInput)
lib/edge-runtime/ai.ts:712
↓ 20 callers
Function
getActionTSSignatures
( actions: Action[], includeReturnType: boolean = true, )
lib/prompts/tsConversion.ts:250
↓ 18 callers
Function
constructHttpRequest
({ action, parameters, organization, userApiKey, stream, }: ActionToHttpRequest)
lib/edge-runtime/requests.ts:40
↓ 17 callers
Function
getTokenCount
(prompt: ChatGPTMessage[] | string)
lib/utils.ts:131
↓ 16 callers
Function
isChoiceRequired
( schema: OpenAPIV3_1.SchemaObject, parentRequired: boolean = true, )
lib/actionUtils.ts:3
↓ 15 callers
Function
getLongFunctionCall
(numTokens: number)
__tests__/lib/edge-runtime/removeOldestFunctionCalls.test.ts:21
↓ 15 callers
Function
removeOldestFunctionCalls
( chatGptPrompt: ChatGPTMessage[], model?: "3" | "3-16k" | "4", maxTokens?: number, maxTokensOut: numb
lib/edge-runtime/utils.ts:73
↓ 14 callers
Function
formatPlotData
(plotMessage: { type: "plot"; args: BertieGraphData; })
lib/v2/edge-runtime/dataAnalysis.ts:594
↓ 14 callers
Function
splitOutCodeChunks
(sectionText: string)
lib/embed-docs/utils.ts:105
↓ 13 callers
Function
removeIdsFromObjs
( obj: Json | Json[], existingStore?: StringMapping, )
lib/edge-runtime/apiResponseSimplification.ts:7
↓ 13 callers
Function
repopulateVariables
( obj: Json | Json[], originalToPlaceholderMap: StringMapping, )
lib/edge-runtime/apiResponseSimplification.ts:214
↓ 13 callers
Function
sanitizeMessages
( messages: ChatGPTMessage[], sanitizeUrlsFirst: boolean, )
lib/edge-runtime/apiResponseSimplification.ts:159
↓ 12 callers
Function
Action_Fixture
(path: string)
__tests__/apiMock/slug.test.ts:56
↓ 12 callers
Function
parseTellUser
(output: string)
lib/v2/prompts/utils.ts:5
↓ 12 callers
Function
removePropertiesItems
(json: object)
pages/api/mock/[...slug].ts:391
↓ 11 callers
Function
checkCodeExecutionOutput
( returnedData: ExecuteCode2Item[] | null, conversationId: number, nLoops?: number, )
lib/v2/edge-runtime/dataAnalysis.ts:368
↓ 11 callers
Function
chunksToProperties
(chunks: Chunk[])
lib/utils.ts:320
↓ 11 callers
Function
explainPlotChatPrompt
( chatHistory: ChatGPTMessage[], userDescriptionSection: string, org: Pick<Organization, "name" | "descr
lib/v3/prompts_parsers/explanation.ts:13
↓ 11 callers
Function
jsonSplitter
( json: any, path: (string | number)[] = [], )
lib/utils.ts:265
↓ 10 callers
Function
extractRequiredParamDetails
( query: string, paramName: string, )
lib/prompts/requestCorrection.ts:63
↓ 10 callers
Function
getMessages
( userCopilotMessages: ChatGPTMessage[], actions: Action[], userDescription: string | undefined, orgIn
lib/prompts/chatBot.ts:190
↓ 10 callers
Function
parseClarificationOutput
( output: string, )
lib/v2/prompts/clarification.ts:131
↓ 9 callers
Function
formatBodySchemaToTS
( schema: OpenAPIV3_1.SchemaObject | undefined, nestingLevel: number = 0, isRequired: boolean = false,
lib/prompts/tsConversion.ts:17
↓ 9 callers
Function
getSessionFromCookie
( req: NextRequest, res?: NextResponse, )
lib/edge-runtime/utils.ts:411
↓ 9 callers
Function
jsonReconstruct
(chunks: Chunk[])
lib/utils.ts:294
↓ 9 callers
Function
logPrompt
(prompt: ChatGPTMessage[])
lib/utils.ts:626
↓ 9 callers
Function
openAiCost
( messages: ChatGPTMessage[], put: "in" | "out", model: string, )
lib/utils.ts:98
↓ 9 callers
Function
parseCodeGenv3
(output: string)
lib/v3/prompts_parsers/codeGen.ts:149
↓ 9 callers
Function
parseDataAnalysisResponse
( response: string, userDefinedVariables: string[] = [], )
lib/parsers/dataAnalysis.ts:1
↓ 9 callers
Function
parseOpusOrGPTDataAnalysis
( output: string, actions: Pick<Action, "name">[], )
lib/v2/prompts/dataAnalysis.ts:73
↓ 9 callers
Function
streamWithEarlyTermination
( prompt: ChatGPTMessage[], params: ChatGPTParams, model: string, shouldTerminate: (rawOutput: string)
lib/v2/edge-runtime/utils.ts:11
↓ 8 callers
Function
filterKeys
( obj: InputObject, keysToKeep: string[], )
lib/utils.ts:224
↓ 8 callers
Function
getIntroText
(orgInfo: { name: string; description: string })
lib/prompts/chatBot.ts:283
↓ 8 callers
Function
getMissingArgCorrections
( action: Action, command: FunctionCall, previousConversation: ChatGPTMessage[], model: string, )
lib/edge-runtime/missingParamCorrection.ts:10
↓ 8 callers
Function
getParam
( parameters: Record<string, any>, key: string, allowObjects: boolean = false, )
lib/edge-runtime/utils.ts:162
↓ 8 callers
Function
parseGPTStreamedData
(gptOutString: string)
lib/parsers/parsers.ts:7
↓ 8 callers
Function
replaceVariables
( input: string, variables: { [key: string]: any }, )
lib/edge-runtime/utils.ts:339
↓ 7 callers
Function
deduplicateArray
( arr: ArrType, )
lib/utils.ts:183
↓ 7 callers
Function
deduplicateChunks
( chunks: SimilaritySearchResult[], nTextChunksInclude: number, )
lib/edge-runtime/utils.ts:183
↓ 7 callers
Function
endpointUrlFromAction
(action: { api_host: string; path: string; })
lib/edge-runtime/requests.ts:187
↓ 7 callers
Function
fillNoChoiceRequiredParams
(paramsFromAI: Params, schema: OpenAPIV3_1.SchemaObject)
lib/actionUtils.ts:74
↓ 7 callers
Function
formatChatHistoryToAnthropicFormat
( chatHistory: ChatGPTMessage[], )
lib/v3/prompts_parsers/explanation.ts:179
↓ 7 callers
Function
formatDescriptionTS
(description: string | undefined | null)
lib/prompts/tsConversion.ts:8
↓ 7 callers
Function
getFilledNoChoiceRequiredFields
( schema: OpenAPIV3_1.SchemaObject | undefined, parentRequired: boolean = true, )
lib/actionUtils.ts:31
↓ 7 callers
Function
getRelevantMessages
( chatHistory: GPTMessageInclSummary[], )
lib/edge-runtime/dataAnalysis.ts:273
↓ 7 callers
Function
getVarNames
(calledActions: CalledAction[])
lib/prompts/dataAnalysis.ts:139
↓ 7 callers
Function
groupItems
( items: UIQuestionMessageData[], variables: { id: string; name: string }[], )
pages/approval/index.tsx:458
↓ 7 callers
Function
parseFilteringOutputv3
( output: string, possibleOutputs: string[], )
lib/v3/prompts_parsers/filtering.ts:62
↓ 7 callers
Function
parseFollowUpSuggestions
(text: string)
lib/parsers/parsers.ts:98
↓ 7 callers
Function
parseMatchingOutput
( text: string, variables: ApprovalVariable[], )
lib/v3/prompts_parsers/matching.ts:191
↓ 7 callers
Function
parseRoutingOutput
( output: string, streaming: boolean, )
lib/v2/prompts/routing.ts:113
↓ 7 callers
Function
processMultipleMatches
( matches: Action[], slug: string[], )
pages/api/mock/[...slug].ts:46
↓ 7 callers
Function
removeUrlsFromMarkdown
( markdown: string, existingStore?: StringMapping, )
lib/edge-runtime/apiResponseSimplification.ts:117
↓ 7 callers
Function
splitIntoTextChunks
( sectionText: string, ignoreLines: string[], )
lib/embed-docs/utils.ts:66
↓ 6 callers
Function
addAssistantHistory
( oldHistory: GPTMessageInclSummary[], )
lib/v2/edge-runtime/ai.ts:964
↓ 6 callers
Function
addNewMessageToDB
( llmOut: string, type: ApprovalAnswerMessage["message_type"], generated_output: GPTMessageI
lib/v3/edge-runtime/ai.ts:92
↓ 6 callers
Function
chunkString
( text: string, chunkSize: number, overlap: number, )
lib/utils.ts:143
↓ 6 callers
Function
convertIsoToHumanReadable
(dateStr: string)
lib/v3/utils.ts:34
↓ 6 callers
Function
convertToGraphData
( executeCodeResponse: ExecuteCode2Item[], )
lib/v2/edge-runtime/dataAnalysis.ts:481
↓ 6 callers
Function
getAssistantFnMessagePairs
( responseMessages: (FunctionMessage | AssistantMessage)[], )
lib/edge-runtime/angelaUtils.ts:183
↓ 6 callers
Function
getJsonMIMEType
( inputDict: Record<string, inObj> | undefined | null, )
lib/edge-runtime/utils.ts:111
↓ 6 callers
Function
getMatchingAction
( org_id: number, actions: Action[], method: RequestMethod, slug: string[], )
pages/api/mock/[...slug].ts:76
↓ 6 callers
Function
hideLongGraphOutputs
( chatGptPrompt: ChatGPTMessage[], fnNames?: string[], )
lib/v2/edge-runtime/ai.ts:89
↓ 6 callers
Method
isHit
()
lib/edge-runtime/llmResponseCache.ts:138
↓ 6 callers
Function
operationIdToFunctionName
( operationId: string | undefined, )
pages/api/swagger-to-actions.ts:304
↓ 6 callers
Function
removeMDLinksImgs
(text: string)
lib/embed-docs/utils.ts:276
↓ 6 callers
Function
requestToFunctionName
( method: string, methodObj: OpenAPIV3_1.OperationObject, path: string, )
pages/api/swagger-to-actions.ts:318
↓ 6 callers
Function
streamResponseToUser
( res: ReadableStream, streamInfo: (step: StreamingStepInput) => void, originalToPlaceholderMap?: Record
lib/edge-runtime/angelaUtils.ts:49
↓ 6 callers
Function
stripBasicTypescriptTypes
(jsCodeString: string)
lib/parsers/dataAnalysis.ts:71
↓ 6 callers
Function
updatePastAssistantMessage
( command: FunctionCall, nonSystemMessages: GPTMessageInclSummary[], )
lib/edge-runtime/angelaUtils.ts:11
↓ 5 callers
Function
ensureXandYinData
( graphData: BertieGraphData, )
lib/v2/edge-runtime/dataAnalysis.ts:644
↓ 5 callers
Function
filterConversationForFollowUps
( conversation: GPTMessageInclSummary[], )
lib/prompts/suggestFollowUps.ts:56
↓ 5 callers
Function
formatDescription
( description: string | undefined | null, )
lib/v2/prompts/chatBot.ts:11
↓ 5 callers
Function
formatDescription
( description: string | undefined | null, )
lib/prompts/chatBot.ts:8
↓ 5 callers
Function
getCalledActions
( assistantFnMessagePairs: (AssistantMessage & { functionMessages: FunctionMessage[]; })[], actions:
lib/edge-runtime/dataAnalysis.ts:213
↓ 5 callers
Function
getMockedProperties
( openApiProperties: { [key: string]: any }, requestPath: string, method: RequestMethod, requestParame
pages/api/mock/[...slug].ts:264
↓ 5 callers
Function
getParam
( parameters: Record<string, any>, key: string, allowObjects: boolean = false, )
supabase/functions/execute-code-2/utils.ts:152
↓ 5 callers
Function
getPathParameters
( path: string, querySlugs: string[], )
pages/api/mock/[...slug].ts:106
↓ 5 callers
Function
getType
( type: typeType | undefined, enums: any[] | undefined, )
lib/prompts/chatBot.ts:27
↓ 5 callers
Function
isDate
(str: string)
lib/utils.ts:556
↓ 5 callers
Function
isID
(str: string)
lib/utils.ts:493
↓ 5 callers
Function
isUrl
(str: string)
lib/utils.ts:507
↓ 5 callers
Function
parseClaude3StreamedData
( claudeOutString: string, )
lib/parsers/parsers.ts:64
↓ 5 callers
Function
parseErrorHtml
(str: string)
lib/edge-runtime/utils.ts:312
↓ 5 callers
Function
removeRepetition
(str: string)
lib/embed-docs/utils.ts:257
↓ 5 callers
Function
splitTextByHeaders
( markdownText: string, )
lib/embed-docs/utils.ts:17
↓ 5 callers
Function
stripExampleFunctions
(rawOutput: string)
lib/edge-runtime/angelaUtils.ts:172
↓ 5 callers
Function
stripTrailingAndCurly
(str: string)
lib/utils.ts:74
↓ 4 callers
Function
fillVariables
( requests: { text: string; embedded_text: string; variable_values: Record<string, any>; pri
lib/v3/utils.ts:53
↓ 4 callers
Function
formatReqBodySchema
( schema: OpenAPIV3_1.SchemaObject | undefined, nestingLevel: number = 0, isRequired: boolean = false,
lib/prompts/chatBot.ts:52
↓ 4 callers
Function
getIntroText
(orgInfo: { name: string; description: string })
lib/v2/prompts/chatBot.ts:221
next →
1–100 of 445, ranked by callers