MCPcopy Create free account

hub / github.com/The-Pocket/PocketFlow-Typescript / functions

Functions267 in github.com/The-Pocket/PocketFlow-Typescript

↓ 76 callersMethodrun
(shared: S)
src/index.ts:11
↓ 49 callersMethodnext
(node: T)
src/index.ts:16
↓ 36 callersMethodon
(action: Action, node: BaseNode)
src/index.ts:17
↓ 4 callersMethodpost
(shared: S, prepRes: unknown, execRes: unknown)
src/index.ts:7
↓ 4 callersMethodsetParams
(params: P)
src/index.ts:15
↓ 3 callersMethod_orchestrate
(shared: S, params?: P)
src/index.ts:65
↓ 3 callersFunctioncreateQaFlow
()
tests/qa-pattern.test.ts:67
↓ 3 callersMethodprep
(shared: S)
src/index.ts:5
↓ 2 callersMethod_exec
(prepRes: unknown)
src/index.ts:39
↓ 2 callersFunctioncallLLM
(prompt: string)
tests/mapreduce-pattern.test.ts:5
↓ 2 callersMethodclone
()
src/index.ts:27
↓ 2 callersFunctiongetEmbedding
(text: string)
tests/rag-pattern.test.ts:5
↓ 2 callersFunctionmockLLM
(prompt: string)
tests/multi-agent-pattern.test.ts:12
↓ 1 callersMethod_exec
(prepRes: unknown)
src/index.ts:4
↓ 1 callersMethod_run
(shared: S)
src/index.ts:8
↓ 1 callersMethod_run
(shared: S)
src/index.ts:73
↓ 1 callersFunctioncallLlm
(question: string)
tests/qa-pattern.test.ts:9
↓ 1 callersFunctioncallLlm
(prompt: string)
tests/rag-pattern.test.ts:36
↓ 1 callersFunctioncreateIndex
(embeddings: number[][])
tests/rag-pattern.test.ts:11
↓ 1 callersMethodexec
(prepRes: unknown)
src/index.ts:6
↓ 1 callersMethodexec
(prepRes: unknown)
src/index.ts:77
↓ 1 callersMethodexecFallback
(prepRes: unknown, error: Error)
src/index.ts:38
↓ 1 callersMethodgetNextNode
(action: Action = "default")
src/index.ts:21
↓ 1 callersFunctionmain
* Main function to run the image filter application
cookbook/pocketflow-parallel-batch-flow/src/index.ts:8
↓ 1 callersFunctionmain
()
cookbook/pocketflow-batch-flow/src/main.ts:6
↓ 1 callersFunctionmain
()
cookbook/pocketflow-hello-world/hello-world.ts:25
↓ 1 callersFunctionmain
()
cookbook/pocketflow-batch-node/src/main.ts:6
↓ 1 callersMethodprep
(shared: S)
src/index.ts:88
↓ 1 callersMethodprocess
* Run the flow with initial shared data
cookbook/pocketflow-parallel-batch-flow/src/flows/image_processing_flow.ts:42
↓ 1 callersFunctionprocessImage
(imagePath: string, filter: string)
cookbook/pocketflow-parallel-batch-flow/src/utils/process_image.ts:11
↓ 1 callersFunctionreadDirectory
(directoryPath: string)
cookbook/pocketflow-parallel-batch-flow/src/utils/read_directory.ts:9
↓ 1 callersFunctionsearchIndex
(index: { embeddings: number[][] }, queryEmbedding: number[], options: { topK: number })
tests/rag-pattern.test.ts:16
Method_exec
(items: unknown[])
src/index.ts:51
Method_exec
(items: unknown[])
src/index.ts:57
Method_run
(shared: S)
src/index.ts:80
Method_run
(shared: S)
src/index.ts:91
Methodconstructor
()
cookbook/pocketflow-parallel-batch-flow/src/nodes/image_processing_node.ts:33
Methodconstructor
* Constructor * @param itemsPerBatch Number of images to process in each batch * @param concurrency Number of parallel batches to run
cookbook/pocketflow-parallel-batch-flow/src/flows/image_processing_flow.ts:17
Methodconstructor
(private text: string)
cookbook/pocketflow-hello-world/hello-world.ts:8
Methodconstructor
(maxRetries: number = 1, wait: number = 0)
src/index.ts:35
Methodconstructor
(start: BaseNode)
src/index.ts:64
Methodconstructor
(delay: number = 0.1, maxRetries: number = 1, wait: number = 0)
tests/parallel-batch-flow.test.ts:17
Methodconstructor
(maxRetries: number = 1, wait: number = 0)
tests/parallel-batch-flow.test.ts:47
Methodconstructor
( private number: number, maxRetries: number = 1, wait: number = 0 )
tests/flow-basic.test.ts:11
Methodconstructor
( private number: number, maxRetries: number = 1, wait: number = 0 )
tests/flow-basic.test.ts:25
Methodconstructor
( private number: number, maxRetries: number = 1, wait: number = 0 )
tests/flow-basic.test.ts:41
Methodconstructor
(maxRetries: number = 1, wait: number = 0)
tests/flow-basic.test.ts:57
Methodconstructor
(maxRetries: number = 1, wait: number = 0)
tests/flow-basic.test.ts:71
Methodconstructor
( private failUntilAttempt: number, maxRetries: number = 3, wait: number = 0.1 )
tests/flow-basic.test.ts:84
Methodconstructor
( private operation: string, maxRetries: number = 1, wait: number = 0 )
tests/flow-basic.test.ts:114
Methodconstructor
(shouldFail: boolean = true, maxRetries: number = 1, wait: number = 0)
tests/fallback.test.ts:17
Methodconstructor
(shouldFail: boolean = true, maxRetries: number = 1, wait: number = 0)
tests/fallback.test.ts:54
Methodconstructor
(maxRetries: number = 1, wait: number = 0)
tests/fallback.test.ts:91
Methodconstructor
(maxRetries: number = 1, wait: number = 0)
tests/fallback.test.ts:111
Methodconstructor
(succeedAfterAttempts: number = 2, maxRetries: number = 3, wait: number = 0.01)
tests/fallback.test.ts:137
Methodconstructor
(errorType: string = "standard", maxRetries: number = 1, wait: number = 0)
tests/fallback.test.ts:170
Methodconstructor
(maxRetries: number = 1, wait: number = 0)
tests/batch-flow.test.ts:18
Methodconstructor
(maxRetries: number = 1, wait: number = 0)
tests/batch-flow.test.ts:56
Methodconstructor
( chunkSize: number = 10, maxRetries: number = 1, wait: number = 0 )
tests/batch-node.test.ts:17
Methodconstructor
(maxRetries: number = 1, wait: number = 0)
tests/batch-node.test.ts:57
Methodconstructor
(maxRetries: number = 1, wait: number = 0)
tests/batch-node.test.ts:85
Methodconstructor
()
tests/batch-node.test.ts:230
Methodconstructor
()
tests/batch-node.test.ts:273
Methodconstructor
(delay: number = 0.1, maxRetries: number = 1, wait: number = 0)
tests/parallel-batch-node.test.ts:15
Methodconstructor
(maxRetries: number = 1, wait: number = 0)
tests/parallel-batch-node.test.ts:40
Methodconstructor
(maxRetries: number = 1, wait: number = 0)
tests/parallel-batch-node.test.ts:59
Methodconstructor
(private number: number, maxRetries: number = 1, wait: number = 0)
tests/flow-composition.test.ts:10
Methodconstructor
(private number: number, maxRetries: number = 1, wait: number = 0)
tests/flow-composition.test.ts:20
Methodconstructor
(private number: number, maxRetries: number = 1, wait: number = 0)
tests/flow-composition.test.ts:32
Methodconstructor
(private number: number, maxRetries: number = 2, wait: number = 0.01)
tests/flow-composition.test.ts:142
Methodconstructor
(chunkSize: number)
tests/mapreduce-pattern.test.ts:198
Methodconstructor
(processingDelay: number = 0)
tests/multi-agent-pattern.test.ts:264
Methodexec
* Read all files from src/images directory, filter for image files
cookbook/pocketflow-parallel-batch-flow/src/nodes/image_scanner_node.ts:25
Methodexec
* Generate a summary report of all images and filters applied
cookbook/pocketflow-parallel-batch-flow/src/nodes/completion_report_node.ts:22
Methodexec
* Process a single image with the specified filter
cookbook/pocketflow-parallel-batch-flow/src/nodes/image_processing_node.ts:65
Methodexec
(prepRes: string)
cookbook/pocketflow-batch-flow/src/nodes.ts:37
Methodexec
(prepRes: { filterType: FilterType; imageBuffer: Buffer; })
cookbook/pocketflow-batch-flow/src/nodes.ts:66
Methodexec
(prepRes: { imageBuffer: Buffer; imageName: string; filterType: FilterType; })
cookbook/pocketflow-batch-flow/src/nodes.ts:118
Methodexec
(chunk: SalesRecord[])
cookbook/pocketflow-batch-node/src/nodes.ts:54
Methodexec
(finalStats: SharedData['finalStats'])
cookbook/pocketflow-batch-node/src/nodes.ts:106
Methodexec
(number: number)
tests/parallel-batch-flow.test.ts:27
Methodexec
(prepResult: number[])
tests/parallel-batch-flow.test.ts:63
Methodexec
(item: number)
tests/parallel-batch-flow.test.ts:132
Methodexec
()
tests/flow-basic.test.ts:92
Methodexec
(currentValue: number)
tests/flow-basic.test.ts:127
Methodexec
(_: unknown)
tests/qa-pattern.test.ts:26
Methodexec
(question: string)
tests/qa-pattern.test.ts:50
Methodexec
(prepResult: null)
tests/fallback.test.ts:29
Methodexec
(prepResult: null)
tests/fallback.test.ts:66
Methodexec
(prepResult: any)
tests/fallback.test.ts:99
Methodexec
(prepResult: null)
tests/fallback.test.ts:122
Methodexec
(prepResult: null)
tests/fallback.test.ts:149
Methodexec
(prepResult: null)
tests/fallback.test.ts:182
Methodexec
(prepRes: string | undefined)
tests/core-abstraction-examples.test.ts:25
Methodexec
(chunk: string)
tests/core-abstraction-examples.test.ts:126
Methodexec
(text: string)
tests/core-abstraction-examples.test.ts:173
Methodexec
(prepRes: number)
tests/batch-flow.test.ts:34
Methodexec
(prepRes: any)
tests/batch-flow.test.ts:64
Methodexec
(prepRes: any)
tests/batch-flow.test.ts:174
Methodexec
(prepRes: any)
tests/batch-flow.test.ts:203
next →1–100 of 267, ranked by callers